lotek wrote:
Does llblgen have an equivelent to:
SELECT col1, col2,
CASE
WHEN EXISTS (SELECT * FROM othertable WHERE col1 = col1)
THEN 1
ELSE 0
END AS col3
FROM table
I basically want to see if a row exists in another table and return a boolean value if it does/doesnt. ( I want to get a typed list or entity collection)
Thanks!
Matt
Wouldn't this query be the same as:
SELECT col1
, col2
, CASE WHEN ot.col1 IS NULL THEN 0 ELSE 1 END col3
FROM table
LEFT JOIN othertable ot ON table.col1 = ot.col1
???
I'm pretty sure you can do that in LLBLGEN.
BOB