Can I help to return true or false for output with this kind of query?
Hey guys,
Can I help to return true or false for output with this kind of query?
select (select 1 from a where fk = b.id) as output from b
I could change it to select true from, but I would still get null if the inner select does not find a record
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rajanikant HawaldarRank #110 · 20.2K reputationPosted Apr 1, 2021, 11:29 AM EDT
Salman BegRank #284 · 8.8K reputationPosted Apr 1, 2021, 8:09 AM EDT