View Single Post
  #2 (permalink)  
Old 06-25-04, 12:27 PM
sufyan sufyan is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Melbourne, AU
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Best I can think of at the moment is:

PHP Code:

mysqlSELECT MAX(table1.timestamp), MAX(table2.timestampFROM table1table2;

+-----------------------+-----------------------+
MAX(table1.timestamp) | MAX(table2.timestamp) |
+-----------------------+-----------------------+
|        
20040626031407 |        20040626031424 |
+-----------------------+-----------------------+
1 row in set (0.00 sec
and then use PHP to compare the two values and output the greater value. But there *might* be a better way to do it with just SQL. Maybe someone can figure it out...
Reply With Quote