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

what are different types of keys in sql?

602


Does truncate release storage space?

549


what is single byte over head in oracle..?

1863


Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.

520


Is sql difficult?

738






What is difference between sql function and stored procedure?

502


Which command is used to delete a package?

575


How do I run a program in pl sql?

493


What is a schema sql?

523


what is a constraint? : Sql dba

703


How does one use sql*loader to load images, sound clips and documents? : aql loader

668


What are sql commands?

496


What is the current version of sql?

528


Why do we use joins?

559


What is java sql package?

525