I have a table that has 3 fields, ID, Name, Address. (Name and Address are type String)
There are instances, where the Address is left Null. How do i write an SQL to get all address that are not Null.
My workings so far;
select * from Hotel where Address != NULL
Zero results were printed, after executing this command (even though there are such records stored in the DB). How should i alter the SQL ?
I am using MySQL
You need to use
IS NOT NULLinstead of!= NULLCheck out this link