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 is spool space? Why do you get spool space errors? How do trouble-shoot them?
What are the available join types in teradata?
My table got locked during mload due to a failed job. What do I do to perform other operations on it?
Highlight the limitations of TPUMP Utility.
how many modules are there in telecome domain?how to explain the architecture?
What is the opening step in basic teradata query script?
What are the joins in teradata?
How to Extract data from multiple legacy systems?
What do you mean by caching in teradata?
How to find duplicates in a table?
What are the different functions included in the server software?
Explain teradata utilities?
Explain the meaning of Amp?
Difference between inner join and outer join?
Can you fastexport a field, which is primary key by putting equality on that key?