Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all ,
I'm trying to do something in QV .
The issue that i have a table like this .
ID1 ID2
1 1
1 23
1 2
2 43
6 64
1 8
2 55
6 77
6 80
what i want to have is :
ID1 ID2 Order
1 1 1
1 2 2
1 8 3
1 23 4
2 43 1
2 55 2
6 64 1
6 77 2
6 80 3
Thx
Didnt get you ?
Maybe like this:
INPUT:
LOAD * INLINE [
ID1, ID2
1, 1
1, 23
1, 2
2, 43
6, 64
1, 8
2, 55
6, 77
6, 80
];
LOAD ID1,
ID2,
AutoNumber(ID2,ID1) as Order
Resident INPUT order by ID1, ID2;
drop table INPUT;
hi
according to swuehl , see the attachement.
thanks swuehl.
ID2 seems to be sorted as String.
Try Num#(ID2) as ID2 in the load and sort afterwards.
Ciao
Klaus
Thanx everybody swuehl's solution is what i want .