The above solution would work perfectly with the scenario you mentioned. However, if you have more than one column to concatenate in your results and there is absolutely NO relation between 2 tables then you can try something like below too.
SEL col1,col2,col3, MAX(eff_date), COUNT(table2.xyz), ...
FROM table1, table2
WHERE 1=1
GROUP BY 1,2,3
↧