Kirti, What about solution suggested by Stephane Faroult:
select * from (select * from T connect by col1 = prior col2 and col1 > col2) x where rownum <= (select count(*) from T) / ? Igor Neyman, OCP DBA [EMAIL PROTECTED] ----- Original Message ----- To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]> Sent: Thursday, March 13, 2003 3:24 PM > All they wanted was to "pair up" those city codes. > DAL -- AUS followed by AUS -- DAL, > AUS -- HOU followed by HOU -- AUS > etc... > and on separate lines. > So, cross-tab did not have the right format. > > I sent them Jacques Kilchoer's solution (he also sent me a simplified one, without the UNION), and it was acceptable. > Problem solved, as there are no more questions :) > > - Kirti > > -----Original Message----- > Sent: Thursday, March 13, 2003 1:46 PM > To: Multiple recipients of list ORACLE-L > > > > Questions I would have for those who wrote the requirements: > Of possible combinations of the form ABC XYZ XYZ ABC, which do they want? > > As can be seen from the answers sent to the list, there is more than one set > of responses that give this pattern. If they only want "half" of the > possible patterns, which half is the correct half? > > -- > Please see the official ORACLE-L FAQ: http://www.orafaq.net > -- > Author: Deshpande, Kirti > INET: [EMAIL PROTECTED] > > Fat City Network Services -- 858-538-5051 http://www.fatcity.com > San Diego, California -- Mailing list and web hosting services > --------------------------------------------------------------------- > To REMOVE yourself from this mailing list, send an E-Mail message > to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in > the message BODY, include a line containing: UNSUB ORACLE-L > (or the name of mailing list you want to be removed from). You may > also send the HELP command for other information (like subscribing). > > -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Igor Neyman INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).