table that contains table sql code example Example: sql table contains IF (SELECT COUNT(*) FROM foos WHERE bar = 'baz') > 0