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 / ksks
Make use of UNPIVOT to split one record into many rows:
select id,address from T1 unpivot (address for address_type in (address1,address2,address3))
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the components provided on node?
Which is faster fastload or multiload?
List out teradata data types?
What is the primary index in teradata?
What is upsert statement in teradata?
What is meant by a Clique?
what are the uses of fact table and dimension table in banking project?
What is a node in teradata?
if collect stats but it show low confidence why?
What are the uses of client software involved in teradata?
Explain the parallel data extension in teradata?
What are the frequently used data types in teradata?
What are the various indexes in teradata? How to use them?
What is logical data model?
During the Display time, how is the sequence generated by Teradata?