Sorting for stragg function column [message #253896] |
Wed, 25 July 2007 04:44 |
sibgat
Messages: 45 Registered: November 2006 Location: Chennai
|
Member |
|
|
Hi,
For the below query/ result can i able to sort 'C,I,J,N,T,M' to bring my result for clo_id 1 to be 'C,I,J,M,N,T'
SELECT lt.clo_id, stragg (lf.cuf_cd) bb
FROM cnrlft01 lf JOIN cnrclt01 lt ON lt.clo_id = lf.clo_id
WHERE lt.cus_id = 1407 AND lf.cus_id = 1407
GROUP BY lt.clo_id
CLO_ID BB
1 'C,I,J,N,T,M'
2 'S'
3 'S'
4 'D,E'
5 'J'
6 'T'
7 'C'
8 'C'
9 'T'
10 'C'
11 'A'
Thanks in advance
Regards
Sibghat
|
|
|
|