Is there any way to count all fields with null values for specific record excluding PrimaryKey column?
Example:
ID Name Age City Zip
1 Alex 32 Miami NULL
2 NULL 24 NULL NULL
As output I need to get 1 and 3. Without explicitly specifying column names.
This should solve your problem:
Not a smart solution, but it should do the work.
If you do not want explicit column names in query, welcome to dynamic querying
Result:
Update:
Here is a better version. Thanks to Martin Smith.
Update:
And with a bit faster XQuery expression.