Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query question
Message
De
20/03/2015 15:30:02
 
 
À
20/03/2015 14:44:13
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MySQL
Application:
Web
Divers
Thread ID:
01617030
Message ID:
01617032
Vues:
50
J'aime (1)
>My nephew asked for some help on a query and so far I can't seem to think of a good way to do it. Here is his question.
>
>A one-to-many relationship where the parent table is a list of customers and the child table is a list of things they've bought. It's easy enough to select customers who have bought a television. It's also simple to select customers who have bought a television or a couch. But how do I select customers who have bought both a television and a couch? The following is returning customers who have bought both or one of the items:
>
>
>I don't have data to test with and I was hoping someone could had an idea.
>
>Thanks

I would have done essentially the same as Naomi but changing the HAVING clause to be
HAVING COUNT(*) = < number of items in list >
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform