Cusid Cusgroupid Productid
5 NULL NULL
ppid cusgroupid list bulk cost billing
854 NULL 45.00 42.00 42.00 42.00
855 2 39.00 36.00 33.00 30.00
I want to compare two table,
expect result is
1, if cusgroupid is 2 only select that row
ppid cusgroupid list bulk cost billing
855 2 39.00 36.00 33.00 30.00
2, if cusgroupid is null only select that row
ppid cusgroupid list bulk cost billing
854 NULL 45.00 42.00 42.00 42.00
Please help!
Still not quit sure what you need but does this get you any further?
or perhaps
or