Hey guys,
I am trying to design a query based on the following tables:
Table: Person Table: Travel
-------------- --------------
personID ---------| tripID
givenName | tripdate
familyname key port
address | flight
dob |---->personID
direction
I basically want to get result of:
personID, givenName, familyName, address, dob, tripdate, port, flight, direction:
Where the query only returns values where more than one person in the first table travelled on a given trip. ie I want to exclude trips where only one person in the db travelled on the flight.
I have tried starting with a count query as a basis, but have not had much luck.
Appreciate any advice,
BG
I am trying to design a query based on the following tables:
Table: Person Table: Travel
-------------- --------------
personID ---------| tripID
givenName | tripdate
familyname key port
address | flight
dob |---->personID
direction
I basically want to get result of:
personID, givenName, familyName, address, dob, tripdate, port, flight, direction:
Where the query only returns values where more than one person in the first table travelled on a given trip. ie I want to exclude trips where only one person in the db travelled on the flight.
I have tried starting with a count query as a basis, but have not had much luck.
Appreciate any advice,
BG