Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL finding differences
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL finding differences
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01078054
Message ID:
01078054
Views:
51
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
Next
Reply
Map
View

Click here to load this message in the networking platform