I have 2 tables:
- TenantServer
- Result
The [TenantServer] has a 1-to-Many relationship with the [Result] table. As a TenantServer can have multiple Results. An example below shows the TenantServer (DBName) column with multiple Results (Type and Date).
What I'm trying to do is get the 1 latest row foreach DBName and Type, for example:
WintrixVictorMillwell, Log, (date here)
WintrixRAC, Log, (date here)
WintrixComfort, Log, (date here)
Each DBName can have 2 different types also, these are "Log" and "Full"
I'm not sure how I would acheive this, so far I've been able to get the latest rows since the last 24 hours but i cant seem to figure out how to get 1 latest row for each of them.