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 steps involved in the process flow of the sql statement through channel attached system?

1160


Explain vproc in teradata?

1042


Explain and compare pros and cons of snow flake schemas?

1087


Why does varchar occupy 2 extra bytes?

1270


what is object level locking ? where do appear this type of locking ?

3538


What is spool space?

1221


What are tpump utility limitations?

1176


What are the various indexes in teradata?

1094


If the PMON is not working then how do you manage and monitor all processes, resources and sessions etc.

2220


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

1242


If a Node is busy what are the steps you can take to avoid ?

2456


If RDBMS is halted what will you do ?

2220


What are the available join types in teradata?

1113


What are the functions of a teradata dba?

1126


Backup Script was blocked you are unable to archive the data now. how do you analyze it and where do you identify ?

2087