I need to extract the last records of each user from the table. The table schema is like below.
mytable
product | user_id |
-------------------
   A    |   15    |
   B    |   15    |
   A    |   16    |
   C    |   16    |
-------------------
The output I want to get is
product | user_id |
-------------------
   B    |   15    |
   C    |   16    |
Basically the last records of each user.
Thanks in advance!
 
     
     
     
    