Click here to Skip to main content
15,892,768 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I want to get number of null or not null columns in a row.Please help
Posted
Comments
King Fisher 3-May-14 3:46am    
google it .Lots of answer Related to this

Try:
SQL
SELECT COUNT(*) FROM MyTable WHERE myColumn IS NULL

And
SQL
SELECT COUNT(*) FROM MyTable WHERE myColumn IS NOT NULL
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900