I have: SELECT A.p, A.i ,A.o, B.it, B.pr FROM A INNER JOIN B ON A.i=B.i AND A.p=B.p WHERE A.p="x" and B.pr="y";
I need to order the A.o and B.it rows..
I have the rows A.o and B.it which are numbers. I would like them both ORDER BY. A straight ORDER BY doesn't work, possibly because of the inner join.
I'd like them to look like this, along with the other columns displayed also.
A.i B.i
1 0
1 1
1 2
2 0
2 1
2 1
Thanks.
I need to order the A.o and B.it rows..
I have the rows A.o and B.it which are numbers. I would like them both ORDER BY. A straight ORDER BY doesn't work, possibly because of the inner join.
I'd like them to look like this, along with the other columns displayed also.
A.i B.i
1 0
1 1
1 2
2 0
2 1
2 1
Thanks.