I try to query a table with the following query:
select * from name where firstname NOT LIKE 'PETER%'
It is not returning any records where firstname is null. Is this some error or that is how it is? I come from a SQL Server background and getting confused with many things here.
NULL is not matched with
LIKE. You have to explicitly ask for it withOR firstname IS NULL