You would check if there are records that do not meet the criteria:
not exists(select * from Persons where not Name = 'Bob')
Since null comparison rules differ between C # and SQL, you will need a condition for null values if the field allows them:
not exists(select * from Persons where Name <> 'Bob' or Name is null)
Guffa source share