Can anyone please tell me how do i write a sql query in rails in which
only one field in not null and the others are null.
FOr e.g. i want to find all records in which email is not null and all
the other fields are null. I do not want to mention the null fields
explicitly in query because there are many of them.