Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Really Tough Database Design Question

  • Please log in to reply
No replies to this topic

#1 Underwhelmed


  • Members
  • 67 posts
  • Gender:Male
  • Location:Naperville, IL
  • Local time:03:40 PM

Posted 18 February 2005 - 01:46 AM

Okay, here's the problem :thumbsup:, I'm trying to build a course manager and one of the requirements is the ability for prerequisites. The problem I am having is that I cannot for the life of me figure out how to get the relationships correct when there can be a NAND & XOR relationship between multiple courses.

For example, I have 5 courses, MATH101, MATH201, MATH312, HIST412, CSCI320.
  • MATH101 has no prereq's
  • MATH201 has MATH101 as prereq
  • MATH312 has no prereq's
  • HIST412 has no prereq's
  • CSCI320 has (MATH201 AND MATH312) OR (HIST412) as prereq's
So how can I get the CSCI320 Course prereq's? :flowers:

How could this be stored in a database? There could be multiple courses within each AND along with multiple instances of the XOR. I'm pretty stumped as to how to store this.

Here's something that I found on it, but he didn't truely answer the question.


If anyone has any ideas, I would appreciate it.

Tacos. That is all you ever need know.

My Development Blog

BC AdBot (Login to Remove)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users