Microsoft
Software
Hardware
Network
Question : Select min value from multiple tables
Lets say I have 4 tables all with different loc_id values(10,15,20,10). How do I select the min value found in all 4 tables.
select min(loc_id) from table1
select min(loc_id) from table2
select min(loc_id) from table3
select min(loc_id) from table4
Results:
1| 10
--------
1| 15
--------
1| 20
-------
1|10
what I would like is 1 row with the value:10
Answer : Select min value from multiple tables
SELECT MIN(locID) from
(
select min(loc_id) locid from table1
union
select min(loc_id) from table2
union
select min(loc_id) from table3
union
select min(loc_id) from table4 )A
Random Solutions
Single-user 404 on <a rel="nofollow" href="https://[server]/exchange/[username]" target="_blank">https://[server]/exchange/<wbr />[username]<wbr /></a> OWA access
WCF Transport Level
Acer Aspire 3500 Laptop - Can I delete a Partition and increase main Drive Partition
Word VBA for rotating pictures
windows vista repair
How do I get MsAccess to include commas as part of the text and not a delimiter when exportig with GetString?
Dropping a column that is indexed.
Linked tables and Sql Server Password
can not add windows xp drivers into server 2008
Can I read the stdout from a Shell() call back into VBA?