2

My current query is:

Select Distinct
  SomeDay.SomeDayID, SomeDay.FolderName, SomeDay.FolderColor
from
  SomeDay, SomeDayEvent
where
  SomeDay.SomeDayID != 4,3,2,1;
1
  • 3
    You seem to have forgotten to ask a question. Commented Feb 21, 2012 at 12:26

3 Answers 3

8

I think you want:

Select Distinct
  SomeDay.SomeDayID, SomeDay.FolderName, SomeDay.FolderColor
from
  SomeDay, SomeDayEvent
where
  SomeDay.SomeDayID not in (4,3,2,1)
Sign up to request clarification or add additional context in comments.

Comments

0

This is your problem based only.

Select Distinct
SomeDay.SomeDayID, SomeDay.FolderName, SomeDay.FolderColor
from 
SomeDay, SomeDayEvent 
where
SomeDay.SomeDayID>4;

1 Comment

I quite like the answer but while that works for this particular instance of this particular problem what happens when he doesn't want id 5?
-1

That should be something like

Select Distinct
   SomeDay.SomeDayID, SomeDay.FolderName, SomeDay.FolderColor
from  
   SomeDay, SomeDayEvent
where
   SomeDay.SomeDayID != 4
and
   SomeDay.SomeDayID != 3
and
   SomeDay.SomeDayID != 2
and
   SomeDay.SomeDayID != 1;

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.