Link to home
Start Free TrialLog in
Avatar of Maritimed
Maritimed

asked on

POSTGRESQL Testing for and selecting only NOT NULL records

I am new to Postgresql and am struggling with how to test for NOT null records. I'm using ODBC from within VFP as follows:

SQLEXEC(connhndl,"select id as shipid,name as shipto,city as shipcity, state_id from res_partner where not null state_id","shipto")

What is the correct syntax to achieve this?
ASKER CERTIFIED SOLUTION
Avatar of Dan Craciun
Dan Craciun
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Maritimed
Maritimed

ASKER

Thanks, exactly what I was looking for!
Glad I could help!