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
What are the two parts of design view?
What is pl sql package?
Why is nosql good?
What is a trigger in sql?
Can ddl statements be used in pl/sql?
Explain what is sql*plus?
What is crud stand for?
Explain alias in sql?
what is try_catch block in procedure
Can we use rowid as primary key?
What is the limitation on the block size of pl/sql?
What is the use of function in sql?
What are the steps for performance tuning.
How to rename a column in the output of sql query?
What is trigger types in sql?