USE [Clinica]
GO
/****** Object:  View [Clinica].[VWBoxProfesional]    Script Date: 18-08-2025 21:40:49 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

create view [Clinica].[VWBoxProfesional]
as
select bp.IdBoxProfesional, cm.IdCentroMedico, cm.Descripcion as CentroMedico, p.IdProfesional, p.Nombres + ' ' + p.Apellidos as Profesional, b.IdBox, b.Descripcion as Box from Clinica.BoxProfesional bp
join Clinica.Profesional p on p.IdProfesional = bp.IdProfesional
join Clinica.Box b on b.IdBox = bp.IdBox
join Clinica.CentroMedico cm on cm.IdCentroMedico = b.IdCentroMedico
GO
