I have a table that looks like this.
orderid | orderdetailid | desc
0000 1 razr
0001 1 razr
0002 1 v3
0003 1 nokia
0004 1 motorola
..
..
..
1234 1 nokia
1234 2 razr
1234 3 samsung
...
...
5421 1 samsung
5421 2 nokia
I want create a temp table or view to look something like this
orderid | orderdetailid
1234 1
1234 2
1234 3
5421 1
5421 2
thanks
bcd
orderid | orderdetailid | desc
0000 1 razr
0001 1 razr
0002 1 v3
0003 1 nokia
0004 1 motorola
..
..
..
1234 1 nokia
1234 2 razr
1234 3 samsung
...
...
5421 1 samsung
5421 2 nokia
I want create a temp table or view to look something like this
orderid | orderdetailid
1234 1
1234 2
1234 3
5421 1
5421 2
thanks
bcd