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

A certain load is being imposed on the table and that too, every hour. The traffic in the morning is relatively low, and that of the night is very high. As per this situation, which is the most advisable utility and how is that utility supposed to be loaded?

1188


What are the different table types that are supported by teradata?

975


Difference between inner join and outer join?

978


What does Amp contain and what are all the operations that it performs?

974


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

909


What is meant by a dispatcher?

977


What is meant by a Channel Driver?

1178


What are the different design perspectives used in teradata?

953


Difference between star and snowflake schemas?

1102


Describe the set operators in teradata.

973


In a table can we use primary key in one column and in another column both unique and not null constrains.if yes how?

1127


What is spool space? Why do you get spool space errors?

975


What are the main components of teradata system?

1090


What are the functions of a Parser?

1061


What are the components used in smp and massively parallel processing (mpp) machines?

1028