COL1 CO2 1 1000.00 2 2000.00 3 3000.00 4 4000.00 5 5000.00
COL1 CO2 1 1500.00 2 2000.00 3 77000.00 4 80000.00 5 51500.00
UNION
SELECT MAX(CO2) FROM ( SELECT CO2 FROM TBL1 UNION SELECT CO2 FROM TBL2 )X
JOIN
SELECT MAX(col2) FROM ( SELECT col1, col2 FROM Table1 UNION ALL SELECT col1, col2 FROM Table2 ) AS T
select max(t.col1 ) from ( select *From table3 union all select *From table2 )as t
select top 1 col1 from ( select * From table3 union all select * From table2 )as t order by col1 desc
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)