M
Mike Fellows
i have a two tables i need to create two queries from
i have a personal table which i will be using the ID from and i have a
contact record table which has an ID
the relationship between the two tables is one to many (1 record to many
contact records)
im trying to create a query that shows everything in the Personal Table and
everything from the Contact Record table even if there isnt a record in the
contact record table
the contact record table also has a datetime field that i need to order by
my table examples are as follows
Personal:
ID (autonumber)
Surname (text)
Firstname (text)
contact1 (datetime)
ContactRecord
ID (Number)
ContactTime (DateTime)
basically the querie should be something like
select Personal.ID, Personal.Surname, Personal.Contact1,
ContactRecord.ContactTime where ContactRecord.ContactTime < 17:30 and
Personal.Contact1 is null
but obvioulsy this wont do exactly what i want due to theone to many
relationships and that there may not be a record in the contactrecord table
anyhelp with this will be greatly appreciated
Thanks
Mike Fellows
i have a personal table which i will be using the ID from and i have a
contact record table which has an ID
the relationship between the two tables is one to many (1 record to many
contact records)
im trying to create a query that shows everything in the Personal Table and
everything from the Contact Record table even if there isnt a record in the
contact record table
the contact record table also has a datetime field that i need to order by
17:30:00 and in the second querie <17:30:00 (which i cant achieve either)
my table examples are as follows
Personal:
ID (autonumber)
Surname (text)
Firstname (text)
contact1 (datetime)
ContactRecord
ID (Number)
ContactTime (DateTime)
basically the querie should be something like
select Personal.ID, Personal.Surname, Personal.Contact1,
ContactRecord.ContactTime where ContactRecord.ContactTime < 17:30 and
Personal.Contact1 is null
but obvioulsy this wont do exactly what i want due to theone to many
relationships and that there may not be a record in the contactrecord table
anyhelp with this will be greatly appreciated
Thanks
Mike Fellows