Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3324102
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:22:53+00:00 2026-05-17T23:22:53+00:00

imagine there are 50 columns. I dont wan’t any row that includes a null

  • 0

imagine there are 50 columns. I dont wan’t any row that includes a null value. Are there any tricky way?

SQL 2005 server

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:22:54+00:00Added an answer on May 17, 2026 at 11:22 pm

    If it’s SQL Server 2005+ you can do something like:

    SELECT fields
    FROM MyTable
    WHERE stuff
    EXCEPT -- This excludes the below results
    SELECT fields
    FROM MyTable
    WHERE (Col1 + Col2 + Col3....) IS NULL
    

    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 NULL to either a char/varchar or a number will result in another NULL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to check if a particular plugin is available? Imagine that
Good morning all. Is there any jsf control that escapes the html tags? Imagine
Imagine I have these columns in a table: id int NOT NULL IDENTITY PRIMARY
There is one thing that I do not understand... Imagine you have a text
is there any efficient and easy way to execute statements similar to: CREATE TABLE
Have you ever seen any of there error messages? -- SQL Server 2000 Could
I imagine there are many of you out there who have developed an application
On C# 3.0 and .NET 3.5, imagine there's an interface: public interface INameable {
If there were such a thing I would imagine the syntax to be something
Is there a secure Python intepreter? Imagine a Python VM you can run on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.