What is the SQL solution for checking for a certain number of blank columns?
In our database, we store survey responses, and let's say that in order for a survey to be considered valid, the respondent has to answer 28 questions.
How would I ask the question to the database to find out if at least 28 columns on any given row are not null? I currently have something worked out w/ programming in the upload procedure, but I get the sneaking suspicion that there's a better way. Isn't there always? ;-)
Thanks!
Paul Prewett
In our database, we store survey responses, and let's say that in order for a survey to be considered valid, the respondent has to answer 28 questions.
How would I ask the question to the database to find out if at least 28 columns on any given row are not null? I currently have something worked out w/ programming in the upload procedure, but I get the sneaking suspicion that there's a better way. Isn't there always? ;-)
Thanks!

Paul Prewett

