I have a table that looks like this. The query needs to return the last date entry for each location. How would I write this in SQL and LINQ?
Id Location Salary Date
1 Los Angeles $1500 Jan-05-1999
2 San Diego $250 Jan-07-1999
3 Los Angeles $300 Jan-08-1999
4 Boston $700 Jan-08-1999
5 Los Angeles $300 Jan-08-1999
The result would be:
2 San Diego $250 Jan-07-1999
4 Boston $700 Jan-08-1999
5 Los Angeles $300 Jan-08-1999