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 number function in sql?
What are string functions in sql?
Is a foreign key always unique?
Does inner join remove duplicates?
What is the limitation on the block size of pl/sql?
What are analytic functions in sql?
what are the features and advantages of object-oriented programming? : Sql dba
what is a database lock ? : Sql dba
What kind of join is join?
What will you get by the cursor attribute sql%rowcount?
what is the different between now() and current_date()? : Sql dba
What types of commands can be executed in sql*plus?
how many ways we can we find the current date using mysql? : Sql dba
Explain what is a subquery ?
Is keyword pl sql?