As the title suggests... I\'m trying to figure out the fastest way with the least overhead to determine if a record exists in a table or not.
Sample query:
Below is the simplest and fastest way to determine if a record exists in database or not Good thing is it works in all Relational DB's
SELECT distinct 1 products.id FROM products WHERE products.id = ?;