imagine there are 50 columns. I dont wan’t any row that includes a null value. Are there any tricky way?
SQL 2005 server
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If it’s SQL Server 2005+ you can do something like:
Adding a null to a value results in a null, so the sum of all your columns will be
NULL.This may need to change based on your data types, but adding
NULLto either a char/varchar or a number will result in anotherNULL.