check if a value is in table sql code example Example: sql if exists if exists(select 1 from table where id = 4)