Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Write a query to display the current date in sql?

1033


How can we link a sql database to an existing android app?

1038


What is the usage of when clause in trigger?

1065


Why do we use partitions in sql?

1057


what is the difference between delete and truncate statement in sql? : Sql dba

1256


What are crud methods?

1043


How do you use a while loop in pl sql?

1021


What are the various restrictions imposed on view in terms of dml?

971


Explain how exception handling is done in advance pl/sql?

1004


Does execute immediate commit?

1224


Can a view be mutating? If yes, then how?

1036


What is pessimistic concurrency control? : Transact sql

1095


Any attempt to navigate programmatically to disabled form in a call_form stack is allowed?

1109


What is output spooling in sql*plus?

1042


What are the types of views in sql?

1108