Actually no need for WHERE 1=1, it would work without that too.
SEL col1,col2,col3, MAX(eff_date), COUNT(table2.xyz), ...
FROM table1, table2
GROUP BY 1,2,3
↧