select * from tablename where name is not null