Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql question
Message
De
11/06/1998 16:23:09
 
 
À
11/06/1998 16:10:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Divers
Thread ID:
00107324
Message ID:
00107347
Vues:
21
Both table contain acctnum1 and acctnum2. Acctnum2 is a trailer, a different address for the same customer. For example Barnes and Noble has many stores, their accounts would look like the following
Acctnum1 Acctnum2
12345 0001
12345 0002
12345 0003
All would be Barnes and Noble but different addresses. A combination of the two is a key.

I'd like to do a join on a result set, and I don't know if thats possible.
It would be something like:

select * from customers where acctnum1, acctnum2 in (select distinct acctnum1, acctnum2 from invoices where invoicedate>05/01/1998)

I know this doesn't work so I was thinking I could do a join of the subquery with the customer file. I'm not sure how though.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform