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
↧