Need help with Query (1 Viewer)

userZ

Registered User.
Local time
Today, 17:47
Joined
Oct 14, 2014
Messages
12
Access DB:
TableA:
ID, team, group, date, time, game, result, city, country

Need a query that extracts the last (max (date plus time)) game a team has played where city name starts with "abc" or "def".

select ID, team, group, date, time, game, result, city from TableA .....

:banghead:
 

namliam

The Mailman - AWF VIP
Local time
Today, 17:47
Joined
Aug 11, 2003
Messages
11,695
sounds like school work, what does your textbook say?

Next word will be "Where" and you will need a "group by" too :p
 

userZ

Registered User.
Local time
Today, 17:47
Joined
Oct 14, 2014
Messages
12
No, it is not a school work. It is a fun project.
 

Ranman256

Well-known member
Local time
Today, 11:47
Joined
Apr 9, 2015
Messages
4,337
Your table is designed wrong. You need other tables....
TTeams
TeamID, team name,

TRoster
PersonID,name,position, TeamID

TMatches
MatchID, date,homeID,VisitorID,location,homeScore,VisitScore
 

Users who are viewing this thread

Top Bottom