USE [Clinica]
GO
/****** Object:  View [Caja].[VWCaja]    Script Date: 18-08-2025 21:40:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE   VIEW [Caja].[VWCaja] AS

	SELECT
		c.IdCaja, c.Descripcion, m.IdCentroMedico, m.Descripcion as CentroMedico, ec.IdTipoEstadoCaja, ec.Descripcion as TipoEstadoCaja
	FROM
		Caja.Caja c
	JOIN Clinica.CentroMedico m ON c.IdCentroMedico = m.IdCentroMedico
	JOIN Caja.TipoEstadoCaja ec on c.IdTipoEstadoCaja = ec.IdTipoEstadoCaja;
GO
