Postgresql – Sql joins with the last entry
I've have an sql database similar to the following: Note: there is a missing column personId in event. There are tables: Person that has many Events. Travel, playsBasquetBall and playsFooball are types of event. How can I make a query…