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
what is the bond code in materialized view?
Is coalesce faster than isnull?
What are actual parameters and formal parameters?
What is sqlcommand?
Explain what is a view?
What is view? Can we update view
What is dynamic query?
What are functions in sql?
Why is sql better than hql?
What is on delete restrict?
Explain foreign key in sql?
What is function and procedure?
Enlist the characteristics of pl/sql?
how is myisam table stored? : Sql dba
How do I edit a stored procedure?