If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > people m/c skills

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-30-07, 08:55
shashi_s shashi_s is offline
Registered User
 
Join Date: Apr 2007
Posts: 21
people m/c skills

Hi,
I have a business problem in which
there are m/c (machine) operators.
each machine operator can operate only certain number of machines.
There are about 18-20 different m/c's.
some operators can operate all machines.
How do i put it into a db?

i came across 2 solutions
1. create a table for each operator and list the m/c's they can operate
2. create a table with the 1st column as the m/c number and one column for each operator. which will act like a 2d table.

Is ther also a way to create or alter a table within a stored procedure? (Using MySql)

thanks !!!
Reply With Quote
  #2 (permalink)  
Old 05-30-07, 11:06
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Do you have a link to a URL for this assignment (as posted for your class), or can you scan the paper handout into a PDF for us to review before we start working on this for you?

-PatP
Reply With Quote
  #3 (permalink)  
Old 05-30-07, 20:35
shashi_s shashi_s is offline
Registered User
 
Join Date: Apr 2007
Posts: 21
Thanks a lot PAT !!!
Its no assignment !
Reply With Quote
  #4 (permalink)  
Old 05-30-07, 23:26
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Ok, maybe you picked a really poor example (one that is frequently used as a final project in elementary database design classes), and picked a poor time (right at the end of the school quarter), and a poor way to present your question (it just has the sound of an assignment to me).

What creates the logical link between the operator and the machine? Asking the same question another way: what determines which operator can use what machine?

Are there certifications involved, and does a certificate automatically imply that the operator can use the machine, or does a certificate just make the operator eligable? Are there time periods involved (for example, does the link ever expire)? Do you have "classes" of machines, where one operator gets logically "blessed" for many machines with a single "grant" of permission?

One of the things that lead me to assume an assignment was the lack of this kind of detail... These are natural thoughts and considerations for most people trying to solve a real world problem.

Oh yeah, your MySQL question about creating tables... What version of MySQL are you using?

Coach me a bit, we may be able to get somewhere yet.

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On