Hi,
How can I get desired data results from Sample Data given using SQL statement Preferably without using Cursors and simple as possible.
Sample Data:
OrderID CustomerID ProductID
2 2 2
3 3 null
4 3 2
5 2 2
6 4 3
7 5 4
8 2 10
11 3 5
13 5 8
14 6 9
Desired Results:
OrderID CustomerID ProductID
2 2 2
4 3 2
5 2 2
7 5 4
8 2 10
11 3 5
13 5 8