mister_grimmy
12-11-2002, 06:36 AM
Next problem :D
I've got a table which contains a folder_id. Many of the values are duplicated as documents can be stored in the same folder so roughly speaking...
document no folder_id
12 4
42 1
23 2
65 3
78 1
90 9
12 3
I need to extract the folder_id so that I can get a list of folder_id in numerical order.
If i just selected the folder_id and sorted it (order by) then i'd get 1,1,2,3,3,4,9. Now I don't want the duplicate numbers.
I tried using a group by command which gave me
4,1,2,3,9 which is fine. How would I go about sorting this into the correct order (i.e. 1,2,3,4,9)?
Cheers for anyones help
I've got a table which contains a folder_id. Many of the values are duplicated as documents can be stored in the same folder so roughly speaking...
document no folder_id
12 4
42 1
23 2
65 3
78 1
90 9
12 3
I need to extract the folder_id so that I can get a list of folder_id in numerical order.
If i just selected the folder_id and sorted it (order by) then i'd get 1,1,2,3,3,4,9. Now I don't want the duplicate numbers.
I tried using a group by command which gave me
4,1,2,3,9 which is fine. How would I go about sorting this into the correct order (i.e. 1,2,3,4,9)?
Cheers for anyones help