Connecting Tables

J

James

I am making a scheduling system. I have a table that will have many records
(One record is one date) and it has 20 fields (one field is one posistion/job
title). In 7 other tables I have the start times for each posistion (one
table is one day tblSundayPosition, tblMondayPosition, etc) (I cannot use one
table because there are more than 255 fields) and the start times. On a
report I need it to have the dates as the columns and the names of the
employees as the rows. (I know how to do that.) Instead of showing the
posistion the employee is in I need it to display the time in for that
position from the position tables (tblSundayPosition). If the date is on a
Sunday it will pull from tblSundayPosition, etc.

How do I accomplish the above connecting of tables? How do I display the
position in time on the report?
 
J

James

Thanks for your help. I have read some of those white papers, but nothing is
new to me. I understand table design and structure. I don't see anything
wrong with the way I have the tables setup. Can you be more specific?

PS I am not woried about the date thing. I have that figured out!
 
D

Duane Hookom

You don't have a good handle on normalization if you have tables for Sunday,
Monday,...
 
A

Amy Blankenship

I think her point is that you should be thinking of multiple records in
fewer tables rather than having a ton of columns to handle what should be
records.

Perhaps you should reread the articles with the thought in your head that
you might not necessarily be applying the concepts you've read in the past
as thoroughly as you've thought?

-Amy
 
A

Amy Blankenship

Absolutely. My husband and I met one of our dearest friends by sitting in
the front row of Rocky. After Frankenfurter had Steve on stage and sat in
his lap, he introduced himself after the play. And the rest is history...

-Amy
 
J

James

I was thinking the "her" thing was wrong, but I wasn't sure! I thought mabey
the name wasn't pronounced "Dwayne"!

Anyways, I see what you are talking about know. I don't know what I was
thinking making all of those fields. I should have known better. Here is
what I have now:
----------------------------------------------
tblSchedule
scheduleId(pk), positionId(fk), employeeId(fk), date (relationship to
tblDate that has the dates for one year. This will allow scrolling through
the dates with out having to create a new record)

tblPosition
posistionID(pk), shiftID(fk), PositionName, DefaultTimeIn, etc.

tblEmployee
employeeID(pk), FirstName, etc.

tblShift
shiftID(pk), ShiftName
 
F

Fred Boer

Dear Lynn, et. al. :

Oh yes...I see the MVP summit is set for this week! I expect you'll all have
a blast gallivanting about! Don't worry, I'll do my best to help hold down
the fort while you are gone. Of course, I can only deal with the simplest of
questions; however, with many of you away, I *might* actually be able to
respond to the "simple" questions before you all jump on them first! ;)

BTW, I hope there are hazing rituals for the new MVPs!! Being shaved bald,
perhaps? With pictures distributed? I've always been jealous of Jeff's thick
head of hair! <g>

Hoping you all have a great time!

Fred
 
A

Amy Blankenship

It's better, but hard to say if it's optimal without knowing more about how
you're using the data.

HTH;

Amy
 
A

Amy Blankenship

Is there a way I can go to this Summit thing next year? If so, I volunteer
to organize ;-)

-Amy
 
D

Duane Hookom

Sorry, this was an MVPs only event. I can share with you that Office 12 will
support PDF creation in all applications. You will be able to easily print a
report to a PDF file.
 
F

Fred Boer

Dear Duane and Amy:

Nice to hear that the Summit was "great"! Thanks for the picture, although
it *is* a little tame...

Hey Amy! Next year, let's you and I crash the party! I'll bring some
shears - you bring the fishnet stockings!

Cheers!
Fred
 
A

Amy Blankenship

Fred Boer said:
Dear Duane and Amy:

Nice to hear that the Summit was "great"! Thanks for the picture, although
it *is* a little tame...

Hey Amy! Next year, let's you and I crash the party! I'll bring some
shears - you bring the fishnet stockings!

hmmmm

:)
 
A

Amy Blankenship

How hard can it be to become an MVP? ;-)

-Amy

Duane Hookom said:
Sorry, this was an MVPs only event. I can share with you that Office 12
will support PDF creation in all applications. You will be able to easily
print a report to a PDF file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top