Click here to Skip to main content
15,887,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
the table has two columns in there 9 row that like
---------------------------
dist           tail
--------------------------
pune          daund
Ahmednagar    karjat
Ahmednagar    parner
Ahmednagar    shrigonda
pune          baramati
pune          purandar
satara        karad
satara        pacgani
satara        mahableshowar
-------------------------  


*how to sort records in the table in the format like below table format

----------------------------------------------------------------

dist1  tail1       dist2       tail2       dist3      tail3   
----------------------------------------------------------------
pune   daund     Ahmednagar   karjat       satara     karad
pune   baramati  Ahmednagar   parner       satara     pacgani
pune  baramati   Ahmednagar   shrigonda     satara    mahableshowar
-------------------------------------------------------------------  


give me ans-----------
Posted
Updated 28-Sep-11 0:53am
v2
Comments
Om Prakash Pant 28-Sep-11 6:34am    
what is the sequence of data? is it random or how the data is placed?
ramchandra parkale 28-Sep-11 6:50am    
not sequence data

1 solution

You can't do this in a SQL query.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900