Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way to determine if field contains NULL or no
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00567112
Message ID:
00567115
Vues:
18
This message has been marked as a message which has helped to the initial question of the thread.
Not necessarily faster, but:

select sum(nvl(field1, 1)) as Field1NullsCnt...where isnull(Field1)

or select count(*) ... where isnull(field1)

>Hi everybody,
>
>Suppose, you have a file with 20000 records. Is there a way to check, if field contains NULLs or not for the whole file except for scanning through it and check each field, which would be time consuming...
>
>I just thought about another idea: select sum(iif(isnull(field1,1,0)) as Field1NullsCnt, etc.
> but it would be slow too...
>
>Do you have other suggestions?
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform