i’m knew with window function
I have two tables which i join together (One user could have many project). Each Project has their own date (date_project)
I need query all users with thier projects and add a column in the end which contain information about last project date
(last project date==ordered by date_project DESC) which i believe must be compute by window function.
How can i achieve this?
Expected result
|id|date_project|user_id(FK)|user.name|last_project|
| | | | | |
Table User
|id | name
| |
Table Project
|id|date_project|user_id(FK)|
| | | |
2
Answers
Fiddle