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 will you get by the cursor attribute sql%notfound?
How to select all records from the table?
what are the differences between procedure-oriented languages and object-oriented languages? : Sql dba
What is the sql query to display the current date?
How does a trigger work?
How do you run a query?
Can we use threading in pl/sql?
What are the key differences between SQL and PL SQL?
What is data type in database?
What is trigger with example?
What is assignment operator in pl sql?
What is sqlservr exe?
Is pl sql a programming language?
what are the features and advantages of object-oriented programming? : Sql dba
What is relationship? How many types of relationship are there?