Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL finding differences
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL finding differences
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01078054
Message ID:
01078054
Vues:
50
I have a sales table that has fname,lname,mname,cust_nbr and sales data for each item purchased. Each customer can be in the table multiple times, but his name - lname+fname+mname - should uniquely identify the client and the cust_nbr should also uniquely idenitfy the client. But in my sales table, I think there are are customer names - fname+lname+mname - that have different cust_nbr. How can I write a query to find where f_name+lname+mname are the same, but where they have different cust_nbr?

jim,henry,smith,12345
jim,henry,smith,44444 && not good, should have 12345 as the cust_nbr

Thanks

Brenda
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform