SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Other Forums
 SQL Server 6.5 \ SQL Server 7.0
 Wants Help
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rohit.manj
Starting Member

India
11 Posts

Posted - 07/19/2010 :  01:47:45  Show Profile  Reply with Quote
Hi to all i hav 72 columns 30 of them are d1 ,d1 upto d31.some of them are filled and i want to count only filled columns .Please help me

CRhudmude

Trevinator
Starting Member

8 Posts

Posted - 10/16/2012 :  19:58:06  Show Profile  Reply with Quote
try this

select COUNT(*)
from *
where COUNT(*) IS NOT NULL;
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000