in sql table following column r there
i want find 1st paid ,2nd paid,3rd paid date for same
|service_type|date |vehicle_no|
|------------|------|_---------|
|paid |23 jan|MH12H2007 |
| | | |
|paid |26 feb|MH12H2007 |
| | | |
| | | |
|paid |28 mar|MH12H2007 |
i want o/p like below
vehicle no| 1st paid date | 2nd paid date|3rd paid |latest
paid date|

pls help me out

Answer Posted / ajit nayak

select distinct vehicle_no, wm_concat( date )
from vehicle_service
group by vehicle_no;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to assign sql query results to pl sql variables?

679


What is oracle and pl sql?

837


what are different types of collation sensitivity? : Sql dba

760


How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?

801


How many types of normalization are there?

673


what is sql profiler? : Sql dba

796


How do I remove sql developer from windows 10?

697


How we can update the view?

815


Are left and right joins the same?

723


What are tables in sql?

739


What are the three forms of normalization?

765


How to prepare for oracle pl sql certification?

784


What is the difference between null value, zero, and blank space?

773


what are set operators in sql? : Sql dba

729


explain advantages of myisam over innodb? : Sql dba

805