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 / ajit
select Replace ( Wm_concat( a ), ',' ) Actout
from Tablename;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
The select into statement is most often used to create backup copies of tables or for archiving records?
Determine if oracle date is on a weekend?
What is the plv (pl/vision) package offers?
What is the difference between rename and alias?
What is the use of function in sql?
what is data control language? : Sql dba
Why plvtab is considered as the easiest way to access the pl/sql table?
Can instead of triggers be used to fire once for each statement on a view?
Why triggers are used?
Can we write dml inside a function in sql server?
How do you update f as m and m as f from the below table testtable?
What is the use of primary key?
how many sql dml commands are supported by 'mysql'? : Sql dba
how can we take a backup of a mysql table and how can we restore it. ? : Sql dba
Is stored procedure faster than query?