Skip to content
Advertisement

How to Filter multiple values for Where statement of SQL

Can any help on the below Query in the where statement in T-SQL?

I have ID & Product fields in table,in where condition need to exclude the ID not in(’11’,’22’,’33’) only when for Product=’c’

The statment should present

Expecting when the Product=’C’, exclude the ID

Advertisement

Answer

You can try this

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