J
JohnCreighton_
SELECT index.id, Category =
CASE
WHEN (SELECT Compond_link_types.id FROM
Compond_link_types WHERE Compond_link_types.id>0)
THEN 'Compound Link'
WHEN (SELECT Link_types.id FROM id FROM
Link_types.id WHERE Link_types.id>0)
THEN 'Normal Link'
ELSE 'Something Else'
END
FROM ([index] LEFT JOIN Compond_link_types ON index.id =
Compond_link_types.id)
LEFT JOIN Link_types ON index.id = Link_types.id;
http://www.craigsmullins.com/ssu_0899.htm
I'm trying to do a conditional query by following the above link. I
can't figure out what I did wrong. Did I make a syntax error or does
Microsoft use a different syntax then the sql in the link I found?
CASE
WHEN (SELECT Compond_link_types.id FROM
Compond_link_types WHERE Compond_link_types.id>0)
THEN 'Compound Link'
WHEN (SELECT Link_types.id FROM id FROM
Link_types.id WHERE Link_types.id>0)
THEN 'Normal Link'
ELSE 'Something Else'
END
FROM ([index] LEFT JOIN Compond_link_types ON index.id =
Compond_link_types.id)
LEFT JOIN Link_types ON index.id = Link_types.id;
http://www.craigsmullins.com/ssu_0899.htm
I'm trying to do a conditional query by following the above link. I
can't figure out what I did wrong. Did I make a syntax error or does
Microsoft use a different syntax then the sql in the link I found?