Skip to content
Advertisement

check if value is available in DB or not

I have a table which has the schema:

i need a query for the report which contains whether the name i give exists in the DB .

the name AD,BC,CA should be given by me and its not in any other table.

Thanks in advance

Advertisement

Answer

Use an outer join against a values list:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement