i have a query that get data from three tables in a specific order.but the outcome is not what i expected.so i want to add a field which is a number from 1 to X in the query and ordered by it. Just like below example.
cnt | XXX | XXXX | XXXX
----------------------------------------------
1 xxxx xxxxx xxxxx
2 xxxxxxx xxxxxx xxxxxxxx
3 xxxxxx xxxx xxxxx
4 xxxx xxx xxxx
5 xxx xxx xxxx
question
i don't know how to add a field in query that will auto increase the number when one record is created.
can someone give me some ideas about this problem?
thanks.
poporogue
cnt | XXX | XXXX | XXXX
----------------------------------------------
1 xxxx xxxxx xxxxx
2 xxxxxxx xxxxxx xxxxxxxx
3 xxxxxx xxxx xxxxx
4 xxxx xxx xxxx
5 xxx xxx xxxx
question
i don't know how to add a field in query that will auto increase the number when one record is created.
can someone give me some ideas about this problem?
thanks.
poporogue