4 replies
by iwparisi Accepted solution
by tony hopkinson Accepted solution
Select p.Id,p.YearName,p.degree
From ProfessorTable p,
(Select Year-Name,Max(Start-Date) as
LatestStart From YearTable) latest
Where p.YearName = latest.YearName
That will give you all the professors with the latest startdate for each year-name. That there is only one is an assumption not born by the schema you provided.
PS take the hyphens out of the field names, use legal identifiers, saves all sort of irritating difficulties.
by iwparisi Accepted solution
by tony hopkinson Accepted solution
Access, oh dear I was doing proper SQL.
In access I beleive you'd create one query for
Select Year-Name,Max(Start-Date) as
LatestStart From YearTable) latest
Where p.YearName = latest.YearName
call it Q_Latest or something
Then create another and join it to the professors table by year-name.
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending