MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 16th, 2004, 08:07 AM
davictor davictor is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 3 davictor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 sec
Reputation Power: 0
How to query using DeMorgan's Theorem

I am having trouble using DeMorgan's Theorem in a Access query. My problem states to find courses that are in building 13 (the results was 8). Call the result Set A. Next I'm to find couses in building 36 and call it Set B (result 24). I get lost when I have to construct the SQL code to find the result sets:
a. the result of set A or B (use WHERE building = 13 or 36)
b. The result of the complement of (a): NOT(set A OR setB)
What thell does this mean? NOT set A or set B = 0, right?
c. The result of NOT (set A) AND NOT (set B). Same thing zero, correct?

I would appreciate any help in getting through this code. I don't know where to begin so I can't test the results. It seems like it's not necessary. If I look at set A and set B, then try to find the result of data that's not in set A or B, I get zero, right. PLEASE HELP!

Last edited by davictor : March 16th, 2004 at 08:09 AM. Reason: wrong results numbers

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > How to query using DeMorgan's Theorem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway