Quick SQL Help Needed (IS NULL)

Soldato
Joined
26 Jan 2003
Posts
3,704
Location
Nottm
I'm selecting from a column that either has to be

NULL
or
'FRED'

How do I write this in the predication (where clause)?

e.g. WHERE columnA IS NULL OR 'FRED'
 
Gah! I tried that....

But, it didn't work because I had an 'AND' before it, when I didn't need it as it was the first where clause, damn copy and paste!

Doh!
 
Back
Top Bottom