How do I check if a particular element exists in a table - how can I return true or false?
I have a table that has
select count(*) from table where userid = :userid and rownum <= 1); -- If exists then 1 else 0