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 / hari m

Hi Vennala

The posted query will work fine. But what if incase 'N'
no.of columns, like address1, address2..., address n.

The query will become lenghty with N no.of Unions.

Is there any script or procedure as alternative??

Please help me out in this regard.

Thanks,
Hari

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we collect statistics on multiple columns?

559


What are the different table types supported by teradata?

525


Can you fastexport a field, which is primary key by putting equality on that key?

705


What are the frequently used data types in teradata?

591


Explain teradata architecture in detail with a diagram.

607






If I wanted to run a TPump job only once per day - basically working on a file that is produced once per day - how would you set up the parameters for that sort of job ?

1889


Explain the advantages of partitioned primary index in a query?

557


Explain amp in teradata?

568


What are differences between teradata and ansi session modes in teradata?

617


What is the multi-insert?

605


What are the different design perspectives used in teradata?

543


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

541


What is the use of virtual processor connectivity in teradata?

561


What is dimensional modeling?

586


Explain fastload in teradata?

593