Jump to content

Archived

This topic is now archived and is closed to further replies.

  • 0
cpcbsa

Sql Select Statment To Count Only Fields With Data

Question

I Have tried to get support but they are not responding to my ticket and I have been struggling with this very simple task for a report. I need to create a calculated field that counts the number of fields with data in a column by district - do not count NULL fields. In normal SQL, you can use a count function which does not include NULL fields but this counts everything for some reason. Not sure what I am doing wrong but here is the statement which should pull the count of fields with data but instead counts all the fields by distrcit.. ANY help would be appreciated...

 

select count(Dropping_Unit) 
FROM CH_tbl_Base
WHERE District=[@field:DistrictName]
 
 
THANKS

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts


×
×
  • Create New...