![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/09/2006, 16:47
|
![Avatar de Mithrandir](http://static.forosdelweb.com/customavatars/avatar33633_3.gif) | Colaborador | | Fecha de Ingreso: abril-2003
Mensajes: 12.106
Antigüedad: 21 años, 9 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 |