Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Count null value
Message
From
27/01/2009 08:49:21
 
 
To
27/01/2009 08:43:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01377290
Message ID:
01377294
Views:
21
This message has been marked as the solution to the initial question of the thread.
>Hi all,
>How can I count the fields with .NULL value?
>Im using an sql with "'count" but always getting the result 0.
>thanks
SELECT COUNT(*) as countnotnull
,   COUNT(NVL(NULLABLEFIELD,.T.)) as countnullalso;
,   COUNT(ICASE(ISNULL(NULLABLEFIELD),.T.)) AS countnullonly     FROM ...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform