Oct 23, 2006 #1 james0816 Programmer Jan 9, 2003 295 US What is the best way to get the maximum value of a "like" field in two tables? (I.e. Table1 - Field1 - Values: 0002, 0003, 0005 Table2 - Field1 - Values: 0001, 0005 ) Result should be: 0005
What is the best way to get the maximum value of a "like" field in two tables? (I.e. Table1 - Field1 - Values: 0002, 0003, 0005 Table2 - Field1 - Values: 0001, 0005 ) Result should be: 0005
Oct 23, 2006 #2 r937 Technical User Jun 30, 2002 8,847 CA Code: select max(field1) as max_field1 from ( select field1 from table1 union select field1 from table2 ) as u r937.com | rudy.ca Upvote 0 Downvote
Code: select max(field1) as max_field1 from ( select field1 from table1 union select field1 from table2 ) as u r937.com | rudy.ca