|
|
Question : select last date from table
|
|
Hi! I have a table with this fields: id, date and user
I want to do something like that
Select id_plano, max(date), user from table where id = 'x'
but it doesnt work
Somebody could help me?
|
Answer : select last date from table
|
|
Actually, pedro and pepe BOTH have the last date. So which one wins?
Here's a start:
Select id, date, user from table where id = 'x' AND date = ( SELECT MAX(date) FROM table where id = 'x')
|
|
|
|
|