Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple query
Message
De
16/05/2008 13:12:48
 
 
À
16/05/2008 12:48:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01317664
Message ID:
01317678
Vues:
9
>Hello all
>
>We need to run a query to generate a list of any active table1.dbf records with table1.x1 fields that have data in the x1 fields with no matching x1 in the table2 table.
>
>I submitted the query should be
>
>SELECT d.userid, d.x1
>  FROM table1 d
>  WHERE d.active
>    AND !EMPTY(d.x1)
>    AND d.x1 NOT in (select x1 FROM table2) ORDER BY 2
>
>
>My co-worker says this is wrong.
>
>who is right?
>
>thanks

The way I'm reading this query...........

Table2 is a list of valid x1 values. You are trying to find records in table1 with invalid x1 values.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform