Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need help with Select SQL
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00096128
Message ID:
00097512
Vues:
35
>>SELECT DISTINCT Client_num, Client_SRC, FName, LName ;
>>FROM Ver ;
>>UNION ;
>>SELECT DISTINCT Client_num, Client_SRC, FName, LName ;
>>FROM Bal ;
>>INTO CURSOR Billable_Clients
>>
>>Again, the UNION will filter any rows that appear in both tables.

>What happens if Jimmy Jones is in both ver and bal? I want him to show up in the final table, but only once.

As long as 'Jimmy Jones' has exactly the same Client_Num, Client_SRC, FName, and LName in Ver and Bal, the UNION clause will produce just 1 row in the final table/cursor.

Note: If you actually WANTED to see the rows repeated, you change 'UNION' to 'UNION ALL'.

>BTW - I love your flag!

Thanks! I think the Marshallese did a good job on it, too.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform