Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How many types of normalization are there?

909


Can we debug stored procedure?

966


What is the requirement of self-join?

1037


What are the differences between implicit and explicit cursors?

1016


How delete all records from table in sql?

936


What is trigger in pl sql?

961


How to use distinct and count in sql query? Explain

973


Can we create index on primary key?

923


What is out parameter used for eventhough return statement can also be used in pl/sql?

1025


which operator is used in query for pattern matching? : Sql dba

961


What is procedure and function?

936


How to know the last executed procedure?

1041


what are the drivers in mysql? : Sql dba

991


What is a composite primary key?

1037


What is sqlite format?

1122