Results 1 to 4 of 4
  1. #1
    cathal1292 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    1

    Employees in same entity

    Hi everyone I have 10 questions to do on access and I've done the rest yet can't get this one
    It says that employees are recorded in simulor entitys Yet one can be a maintance and other validation employee so some way of differentiating the employees employees must be found
    I've looked everywhere and can't get a approiate answer
    Any help will be apprecated
    Thanks in advance

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Create a separate table to keep track of the Many to Many relationship.

    One company can have many Job Descriptions.
    One employee can wear many hats.

    A separate table that has its own primary key, a foreign key for Job Description, and a foreign Key for Employee ID can support a query with a many to many relationship.

    Every time an employee takes on a new role, append your table.

  3. #3
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    Not sure of the question...is this it?
    Empoyees JOBS
    empkey1 Bob empkey1 Maint
    empkey2 Sam empkey1 Electric
    empkey2 VP

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,816
    As ItsMe describes, many-to-many relationship requires junction table. Call it EmpJobs. It needs at least two fields, one for EmpID and one for JobID. Create a record for each valid combination. Set the fields as compound unique index to avoid duplication of combination.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Entity Relationship diagram
    By hickie182 in forum Database Design
    Replies: 3
    Last Post: 12-15-2013, 02:19 PM
  2. Replies: 1
    Last Post: 09-03-2013, 03:43 PM
  3. Get an entity to not show in Print Preview
    By LukeJ Innov in forum Forms
    Replies: 1
    Last Post: 08-23-2013, 03:04 AM
  4. Query Entity Names, and Column Names
    By Accidental DBA in forum Queries
    Replies: 1
    Last Post: 07-22-2011, 02:38 PM
  5. Generalization-Specialization Entity Relationships
    By nj_sunflower in forum Database Design
    Replies: 1
    Last Post: 03-20-2011, 09:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums