I have this type of setup for a weekly schedule I'm trying to make:
Four tables:
Schedule-Fields=id,mon,t ues,wed,thur,fr i,week,group,us er
Schedule_Users-Fields=id,group ,fname,lname
Schedule_Items-Fields=id,item
Schedule_Groups-Fields=id,group
The idea here is to have a weekly schedule for our users as to where they
will be on any given day.
Example of results I want:
----------------------------------------------------------------------------
-------------------------------------------
Group 1
Bob Roberts-Monday(In Office), Tuesday(In Office), Wednesday(Vacat ion),
Thursday(LOA), Friday(Corp Office)
Steve Smith-Monday(In Office), Tuesday(In Office), Wednesday(Vacat ion),
Thursday(LOA), Friday(Corp Office)
----------------------------------------------------------------------------
-------------------------------------------
So here's the problem. I am building an interface so one user can update the
schedule and add users, groups, and items to the database. So I'm not sure
what the query is for this type of join so that the results show the item
from the items table with the value from the mon,tues,wed,th ur,fri fields
matching the id from the items. I have the rest of the query, but just not
that part. Any help would be great. Thanks in advance.
Jamie
Four tables:
Schedule-Fields=id,mon,t ues,wed,thur,fr i,week,group,us er
Schedule_Users-Fields=id,group ,fname,lname
Schedule_Items-Fields=id,item
Schedule_Groups-Fields=id,group
The idea here is to have a weekly schedule for our users as to where they
will be on any given day.
Example of results I want:
----------------------------------------------------------------------------
-------------------------------------------
Group 1
Bob Roberts-Monday(In Office), Tuesday(In Office), Wednesday(Vacat ion),
Thursday(LOA), Friday(Corp Office)
Steve Smith-Monday(In Office), Tuesday(In Office), Wednesday(Vacat ion),
Thursday(LOA), Friday(Corp Office)
----------------------------------------------------------------------------
-------------------------------------------
So here's the problem. I am building an interface so one user can update the
schedule and add users, groups, and items to the database. So I'm not sure
what the query is for this type of join so that the results show the item
from the items table with the value from the mon,tues,wed,th ur,fri fields
matching the id from the items. I have the rest of the query, but just not
that part. Any help would be great. Thanks in advance.
Jamie