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...

Hi Friends

I have a sql question, We have the source data as below.

101 address1, address2, address3

and the output shoulb like below

101 address1
101 address2
101 address3

Required a SQL query for this output.

Please let me know if you have any sql query for this.

Thanks in advance.

Hari M

Answer Posted / vennela12

Hi Hari.....try this

select 101,address1 from tablet1
union all
select 101,address2 from tablet1
union all
select 101,address from tablet1

By
Vennela

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main components of teradata system?

1137


What are the various reporting tools in the market?

1072


In Teradata, what is the significance of UPSERT command?

1234


What is the purpose of indexes?

1077


Which is more efficient group by or distinct to find duplicates?

1090


What do you mean by fastexport in teradata?

1002


How you will check the version of teradata?

1168


What is database exceptions in teradata?

953


What is the opening step in basic teradata query script?

1038


What are the various etl tools in the market?

1073


What is the difference between fastload and multiload?

1381


My table got locked during mload due to a failed job. What do I do to perform other operations on it?

1098


In general, how do you optimze any sql in teradata?

1043


What are the joins in teradata and how many types of joins are there in teradata?

1005


What are the functions involved in shared information architecture?

1073