mssql select all except null code example Example: sql select except null SELECT mycolumn FROM mytable WHERE mycolumn IS NOT NULL;