Skip to content
Advertisement

How to count non-null/non-blank values in SQL

I have data like the following:

Data

And what I want is to count the PONo, PartNo, and TrinityID fields with a value in them, and output data like this:

Desired Output

How can I do this counting in SQL?

Advertisement

Answer

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement