Results 1 to 3 of 3
  1. #1
    desmonda is offline Novice
    Windows 8 Access 2013 32bit
    Join Date
    Aug 2016
    Posts
    6

    Exclusion Constraints in Access


    How can I implement an exclusion constraint. For my assignment, I am designing a sport database. If you play netball, you cannot play tennis or volleyball as they clash so you must choose only one. How can I go about this? I am clueless and any help would be appreciated

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    In a query,Q1,Select all items for one sport.
    In Q2, use Q1 and join on player, and create an OUTER join for those where sport =null.

    this prevents a player from picking 2 sports.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Is this not a continuation of this previous post?

    As I mentioned there, it is always a good strategy to write down the big picture/entire business so as to get all the requirements identified in context.

    People
    Sports
    Exclusions
    Other Criteria

    Good luck.

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

Similar Threads

  1. Replies: 85
    Last Post: 06-29-2016, 11:36 PM
  2. Replies: 3
    Last Post: 12-20-2014, 04:15 PM
  3. Weekend/Holiday Exclusion:
    By DHook in forum Modules
    Replies: 5
    Last Post: 12-10-2014, 12:52 PM
  4. Need to use constraints
    By tsvetkovdimitar in forum Access
    Replies: 4
    Last Post: 11-19-2013, 01:39 PM
  5. Replies: 1
    Last Post: 11-07-2011, 11:42 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