SQL check if record exist
snippet in sql

SQL check if record exist

user6754

SELECT column_name(s)
FROM table_name
WHERE EXISTS
(SELECT column_name FROM table_name WHERE condition);