Ver Mensaje Individual
  #7 (permalink)  
Antiguo 26/09/2011, 12:24
Avatar de Highlander
Highlander
 
Fecha de Ingreso: junio-2006
Ubicación: Concepción, Chile
Mensajes: 475
Antigüedad: 17 años, 11 meses
Puntos: 4
Respuesta: Select ordenado por IN

Me sigue dando error con esta consulta:

Código:
SELECT NUT_DATA.Nutr_Val, NUT_DATA.Num_Data_pts FROM NUT_DATA INNER JOIN NUTR_DEF ON NUT_DATA.Nutr_No = NUTR_DEF.Nutr_No WHERE NDB_No = 93601 AND NUTR_DEF.SR_Order IN(300, 800, 600)
ORDER BY case 
when 300 then 1
when 800 then 2
when 600 then 3 
end

Msg 4145, Level 15, State 1, Line 3
An expression of non-boolean type specified in a context where a condition is expected, near 'then'.
__________________
Ingeniero (E) en Computación e Informática
The last man alone with god.