if(query not null) sqñ code example Example: Select without null values sql SELECT column_names FROM table_name WHERE column_name IS NOT NULL;