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 / prativa mishra
select xmlagg(xmlelement(g,column_name)).extract('//text()')
from table_name
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
When to use inner join and left join?
What is lookup table in sql?
Can we delete column in sql?
what is a trigger? : Sql dba
what is bcp? When is it used?
What is trigger point?
What found sql?
what is a control file ? : Sql dba
What is oracle pl sql developer?
Explain dml and ddl?
How do you truncate?
What are joins in sql?
What is trigger in sql? Explain
What is the purpose of cursors in pl/sql?
What are the types of keys?