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 scenarios in which full table scans occurs?

1008


Is multi insert ansi standard?

2201


How to load specific no.of records using bteq, or fastload,or multiload

1741


What are the uses of client software involved in teradata?

981


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

1095


How can you track login parameters of users in teradata?

1186


Highlight the differences between Primary Key and Primary Index.

1083


Mention the procedure via which, we can run Teradata jobs in a UNIX environment.

985


What is the use of having index on table?

997


How many sessions of MAX is PE capable of handling at a particular time?

1078


What are the enhanced features in teradata v2r5 and v2r6?

1128


What are some commonly used bteq scripts?

1005


What is a level of granularity of a fact table?

1149


What is called partitioned primary index (ppi)?

1006


Explain the term 'columns' related to relational database management system?

1061