in sql table follw columns r their
vehicle_no|servicetype|date|location|
1234 |1FS |1-JAN|PUNE|
4561 |2FS |5-JAN|PUNE|
1234 |PS |7-JAN|PUNE|
1234 |PS |15-JAN|MUMB|
i want o/p below
vehicleno|1fs|1fsdate|1fslocation|1ps|1PSDATE|1PSLOC|2PS|2PS
DATE|2PSLOCA
e.g
1234|1FS|1JAN|PUNE|1PS|7JAN|PUNE|2PS|15JAN|MUMBAI
PLS help me out to execute using sql query
Answer / mathivanan
select listagg(vehicle_no||'|'||servicetype||'|'||date||'|'||location,'|') within group (order by vehicle_no) from table_name
Is This Answer Correct ? | 0 Yes | 0 No |
What is a memo field?
When we can declare a column as Unique and Not Null both at the same time. What is the use pf Primary Key then?
2 Answers Accenture, Unisoft Infotech,
what is a control file ? : Sql dba
What is union?
What is the sql case statement?
Why is sql important?
Can we update views in sql?
wtite down triggr not any entry on Sunday
how can you create an empty table from an existing table? : Sql dba
What is the Query to print out the individual total number of duplicate row in sql.
Explain what is sql*plus?
How do I create a sql database?