Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IS NOT NULL 1

Status
Not open for further replies.

matrixindicator

IS-IT--Management
Sep 6, 2007
418
BE
Hello,

I know you can have a statement to say give me everything WHERE for a field is no value = IS NULL.
I want a query to say give me those records where there is for a column in a field A value. I scanned a few thread and along google, no fix.

Code:
WHERE Efunction IS NOT NULL";
This does not the job, he showed every record.
 
That's the correct way and it works for me. Are you sure the fields are Null and not simply empty? There's a difference.




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Code:
WHERE Efunctie <>''

Is there a way to check if it is null, the default value is Null
 
You can combined both:

Code:
[blue]WHERE[/blue] Efunctie [blue]IS NOT NULL[/blue] [green] AND [/green][red] Efunctie <> ''[/red]

So you get neither Null nor Empty fields.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top