T-SQL:
Below is my table on which i need to apply row wise filter on a col.
my criteria is that the Val should be : 0 AND (1 OR 1.1) AND 2
The original table is
name val
aaa 0
aaa 1
aaa 1.1
aaa 2
bbb 0
bbb 2
ccc 0
ccc 1
ccc 2
The expected result will be
name val
aaa 0
aaa 1
aaa 1.1
aaa 2
ccc 0
ccc 1
ccc 2
Could anyone suggest a solution. I am trying the Where clause but i am not able to give the conditions within the where clause. Appreciate any help