say you want to check if any rows match a query (just a true/false if the table contains any matches). which is preferred (and optionally, why)? or is there a better way?
SELECT COUNT(*) > 0 FROM someTable WHERE someField = someValue or
SELECT someField = someValue FROM someTable WHERE someField = someValue LIMIT 1 or
SELECT COUNT(*) > 0 FROM (SELECT someValue FROM someTable WHERE someField = someValue LIMIT 1) someAlias;