how to retrieve records with or without null values from database in s