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


Please Help Members By Posting Answers For Below Questions

What is varchar data type in sql?

606


What is the usage of nvl function?

690


How can we find duplicate records in a table?

589


What are the limitations of sql express?

618


what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?

2086






what are the differences between require and include, include_once and require_once? : Sql dba

644


What is an inconsistent dependency?

673


How we can update the view?

686


Why use subqueries instead of joins?

696


What is clause in sql?

673


Are subqueries better than joins?

622


What is the purpose of the primary key?

661


What is difference between my sql and sql?

612


Where not exists in sql?

580


What is sp_helptext?

684