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 the syntax for case when statement?
What can be achieved by using the teradata rdbms?
What is real time and near real time data warehousing?
How can bottlenecks be identified?
What are the enhanced features in teradata v2r5 and v2r6?
What type of indexing mechanism do we need to use for a typical data warehouse?
What is the use of virtual processor connectivity in teradata?
What are the different table types that are supported by teradata?
Explain teradata vs. Redshift?
Explain parsing engine in teradata?
Highlight the differences between Primary Key and Primary Index.
Explain vproc in teradata?
Explain amp in teradata?
Can any one explain me the difference between BTEQ and MLOAD,TUMP. All canbe used for same purpose but still differnt methods. why ?
What is the function of parser component in teradata?