K
Kara
words in caps are the column headings
The equipment table is holding the fields
--EQUIPMENTNAME
--TIME that the equipment was checked
--PROBLEM with the equipment, if there was one
--who was CALLED FOR REPAIR
--person that was NOTIFIED of the problem
--DATE, SHIFT, COMPUTERNUMBER(this is a unique number
given to each employee)
The primary keys are date, shift, computer number, and
equipment.
The workstation table is holding the fields
--POSITION where the workstation is located(location 1,
location 2) etc
--who REPORTED the problem
--PROBLEM with the wrkstation
--who the problem was REPORTED TO
--who was NOTIFIED of the problem
--DATE, SHIFT, COMPUTER NUMBER
Primary Keys date, shift,computer number, and position.
I have that many primary keys because there are three
shifts and they will each enter data into the tables.
Here is the SQL statement for the query....
SELECT equipment.first_check, equipment.second_check,
equipment.problem, equipment.call_rpr, equipment.notified,
tbl_workstation.position, tbl_workstation.rptd_by,
tbl_workstation.time, tbl_workstation.problem,
tbl_workstation.rptd_to, tbl_workstation.notified,
tbl_workstation.date, tbl_workstation.computernumber,
tbl_workstation.shift
FROM equipment LEFT JOIN tbl_workstation ON
(equipment.shift = tbl_workstation.shift) AND
(equipment.date = tbl_workstation.date) AND
(equipment.computernumber =
tbl_workstation.computernumber);
Kara
The equipment table is holding the fields
--EQUIPMENTNAME
--TIME that the equipment was checked
--PROBLEM with the equipment, if there was one
--who was CALLED FOR REPAIR
--person that was NOTIFIED of the problem
--DATE, SHIFT, COMPUTERNUMBER(this is a unique number
given to each employee)
The primary keys are date, shift, computer number, and
equipment.
The workstation table is holding the fields
--POSITION where the workstation is located(location 1,
location 2) etc
--who REPORTED the problem
--PROBLEM with the wrkstation
--who the problem was REPORTED TO
--who was NOTIFIED of the problem
--DATE, SHIFT, COMPUTER NUMBER
Primary Keys date, shift,computer number, and position.
I have that many primary keys because there are three
shifts and they will each enter data into the tables.
Here is the SQL statement for the query....
SELECT equipment.first_check, equipment.second_check,
equipment.problem, equipment.call_rpr, equipment.notified,
tbl_workstation.position, tbl_workstation.rptd_by,
tbl_workstation.time, tbl_workstation.problem,
tbl_workstation.rptd_to, tbl_workstation.notified,
tbl_workstation.date, tbl_workstation.computernumber,
tbl_workstation.shift
FROM equipment LEFT JOIN tbl_workstation ON
(equipment.shift = tbl_workstation.shift) AND
(equipment.date = tbl_workstation.date) AND
(equipment.computernumber =
tbl_workstation.computernumber);
Kara