
28/09/2006, 16:47
|
 | Colaborador | | Fecha de Ingreso: abril-2003
Mensajes: 12.106
Antigüedad: 21 años, 10 meses Puntos: 25 | |
Probablemente algo tan simple como:
DECLARE @cotizaciones INT
SELECT @cotizaciones = dbo.Cmp_F_getNumCotizaciones(IdEmpresa,IdOficina,I dItem)
SELECT
@cotizaciones as NumCotizaciones,
(Case when @cotizaciones > 0 Then 'True' Else 'false' End) as chkEliminar
FROM dbo.Cmp_SolicitudCompra
WHERE dbo.Cmp_SolicitudCompra.IdEmpresa=@PI_IdEmpresa
AND dbo.Cmp_SolicitudCompra.IdOficina=@PI_IdOficina
__________________ "El hombre, en su orgullo, creó a Dios a su imagen y semejanza."Friedrich Nietzsche |