Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combining to SELECT statements (or two cursors)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00043707
Message ID:
00043709
Vues:
36
>I'm looking for advice on how I can either combine the following two select statements into one or how I can combine the result sets into one so I can use the data for a report.
>
>SELECT;
>udds1, udds2, name;
>FROM drivauth_view WHERE (ISNULL(udds1) = .f.);
>AND (EMPTY(udds1) = .f.);
>INTO CURSOR report1
>
>SELECT;
>udds1, udds2, name;
>FROM drivauth_view WHERE (ISNULL(udds2) = .f.);
>AND (EMPTY(udds2) = .f.)
>INTO CURSOR report2

Probably this:
SELECT;
udds1, udds2, name;
FROM drivauth_view
WHERE (NOT ISNULL(udds1) AND NOT EMPTY(udds1)) ;
Or (NOT ISNULL(udds2) AND NOT EMPTY(udds2))
INTO CURSOR rpt
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform