Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

SQL logic

$
0
0
Hi,

I have data as per the below scenario

ST PRODUCT FLAG
== ======= ====
CA PROD1 1
CA PROD2 1

i will have flag either o or 1 at times. when flag is 1 and product is PROD1 then i need to restrict st(CA). if flag is 0 then i should display all the values

Viewing all articles
Browse latest Browse all 13329