Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL statement questions !
Message
 
À
31/12/2000 11:25:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00458194
Message ID:
00458344
Vues:
11
Kengwen,
Since you say you are counting records and don't want deleted records I'm assuming that you are not looking for the number of fields in a single record (your first line "specific fields in the table" is a little confusing). Use the deleted() function to avoid deleted records or SET DELETED ON before running the Select statement.
Select count(invoiceno) as Rcount;
from invoice;
where !deleted()
will get all records not deleted.

HTH
Barbara


>Hi,
> I want to count the no. of specific field in the table. i use the sql statement like below :
>
>Select count(invoiceno) as Rcount;
>from invoice;
>
>but i don't want then count record result include the records that had been marked deleted in the table. How to do it ?
>
>thanks.
>
>regards,
>kengwen
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform