I am trying to create a query where the resultant is a combination of information from a table and a query and eliminate duplicates.
I have created a database where I run a query to display a schedule based on the information in three different tables. To display this information it will prompt the user for the date that they would like to see and it then displays the schedule. The schedule query displays, Date, Name, Platoon, Shift, and Status (worked or off).
I have also created a Benefits Table to enter when a person is scheduled off for vacation. It consists of Date, Name, Status (vacation, personal), start time, end time.
What I am trying to accomplish is running a query, based on a specific date, that will display the information from the Schedule Query and the Benefits Table. What needs to happen is, if there is an entry for a specific person on the date in question, the information from the Benefits Table will display for that person and not the information from the Schedule Query and still display all of the schedule query information for all other employees.
For Example:
Date Name Platoon Shift Status
02/04/04 Smith, John 1 05:00-15:30 Worked (from Schedule Query)
02/04/04 Doe, John 1 06:00-16:30 Vacation (from Benefits Table)
Thank you for the help.
I have created a database where I run a query to display a schedule based on the information in three different tables. To display this information it will prompt the user for the date that they would like to see and it then displays the schedule. The schedule query displays, Date, Name, Platoon, Shift, and Status (worked or off).
I have also created a Benefits Table to enter when a person is scheduled off for vacation. It consists of Date, Name, Status (vacation, personal), start time, end time.
What I am trying to accomplish is running a query, based on a specific date, that will display the information from the Schedule Query and the Benefits Table. What needs to happen is, if there is an entry for a specific person on the date in question, the information from the Benefits Table will display for that person and not the information from the Schedule Query and still display all of the schedule query information for all other employees.
For Example:
Date Name Platoon Shift Status
02/04/04 Smith, John 1 05:00-15:30 Worked (from Schedule Query)
02/04/04 Doe, John 1 06:00-16:30 Vacation (from Benefits Table)
Thank you for the help.