I'm IN ORACLE SQL I do not know how to make the next query, to see if you can help me. I have the following table, in which there are 2 different products, inserted in different dates and times, and with different quantities:
Producto1 1/12/17 15:30 5u
Producto1 5/12/17 16:00 3u
Producto1 5/12/17 12:12 1u
Producto2 1/12/17 15:05 8u
Producto2 6/12/17 11:45 7u
And I want you to return the record with the most recent date and time of each product, but do not repeat the product. So:
Producto1 5/12/17 16:00 3u
Producto2 6/12/17 11:45 7u
How do I do it? Thanks in advance!