
30/04/2005, 11:55
|
 | | | Fecha de Ingreso: noviembre-2004
Mensajes: 2.344
Antigüedad: 20 años, 5 meses Puntos: 8 | |
Iid,no he leido Iif, pero como te dije SQLServer (por lo que he ledio) sería con case
SELECT S.ServNombre, T.TipoNombre, case when S.ServId in (Select ServIdServ From UsuariosServicios US inner join usuarios U on U.UsId=US.UsServIdUs inner join clientes C on C.UsIdCli=U.UsIdCli where UsServIdServ=" & combodeusuario.selectedvalue &") and C.UsIdCli=2 then 1 else 0 FROM TipoServicio T INNER JOIN Servicios S on S.ServId=T.ServIdServ |