xvpindqrjqkk
Programmer
Hi,
I've got a table of employees called "employee" and a table of worked shifts called "job".
"job" contains a column called "startdate" that contains a mySQL datetime field in the form 0000-00-00 00:00:00. The are linked by employeeid - primary key or "employee" and a fireign key in "job".
What I'm hoping to do is use this information to select all employeeid's from "employee" where the "job" table shows they have had 6 or less working days in the last 10 days.
Any suggestions anyone? I'm stumped!
I've got a table of employees called "employee" and a table of worked shifts called "job".
"job" contains a column called "startdate" that contains a mySQL datetime field in the form 0000-00-00 00:00:00. The are linked by employeeid - primary key or "employee" and a fireign key in "job".
What I'm hoping to do is use this information to select all employeeid's from "employee" where the "job" table shows they have had 6 or less working days in the last 10 days.
Any suggestions anyone? I'm stumped!