how can we write a column values horizontal by using sql stmt;
ex:
select name from table_name;(actual output)
a
b
c
d
require output is
a b c d

Answer Posted / ramaraju

select listagg(cust,' ') within group(order by cust) from t2;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does oracle use sql?

517


List out the acid properties and explain?

566


What is query optimization in sql?

550


describe transaction-safe table types in mysql : sql dba

510


How many types of keys are there in sql?

559






What is relationship? How many types of relationship are there?

594


what are date and time intervals? : Sql dba

567


how do you know if your mysql server is alive? : Sql dba

602


Does sql full backup truncate logs?

533


What are the types of operators available in sql?

554


How do you rename a table in sql?

534


Explain the rollback statement?

580


What is data definition language?

623


what is bcp? When does it used? : Sql dba

526


Why do you partition data?

536