USE [Clinica]
GO
/****** Object:  View [Clinica].[VWDiasDisponibleCentroMedico]    Script Date: 18-08-2025 21:38:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE view [Clinica].[VWDiasDisponibleCentroMedico]
as
select distinct 
case
	when DiaSemana = 1 then 'Lunes' 
	when DiaSemana = 2 then 'Martes' 
	when DiaSemana = 3 then 'Miércoles' 
	when DiaSemana = 4 then 'Jueves' 
	when DiaSemana = 5 then 'Viernes' 
	when DiaSemana = 6 then 'Sábado' 
	when DiaSemana = 7 then 'Domingo' end DiaSemana,
	IdCentroMedico, DiaSemana as IdDiaSemana
 from Clinica.AgendaDisponibleCentroMedico
GO
