There is a table Remark that contains data as shown below:
       SerialNo | RemarkNo  | Desp
=============================================
             10 |         1 | rainy
             10 |         2 | sunny
             11 |         1 | sunny
             11 |         2 | rainy
             11 |         3 | cloudy
             12 |         1 | rainy
If I run a query SELECT * FROM remark WHERE remark_no IN (SELECT MAX(remark_no) FROM remark GROUP BY serial_no);, I still get the above result:
What query will return the following result:
             10 |         2 | sunny
             11 |         3 | cloudy
             12 |         1 | rainy
That is, the last record in each group should be returned??
 
     
     
     
    