Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Concatenate o/p of two select statements - response (7) by mohan.mscss

$
0
0
Hi Teradatauser2, All the queries which is posted here will get product join except the query which is posted from Mathuram especially when you are performing with more than one table process. if we are going to show max/or any one common value along with all the data is based on single table then we can go with the below query sel empno, max(empno) over() from employee So when it comes to more than one table process and to show one common value in all the rows is based on one table then we can go with Mathuram query which will avoid product join. if you would like to merge all the tables which are processed then we can go with the below sel col1, table2.*, max(table2.c1)over() from table1   Regards, Mohan K    

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>