Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple VFP query, no optimization
Message
De
10/11/2000 17:48:06
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00440476
Message ID:
00440555
Vues:
12
>Is each PoNum unique, or do they overlap? In other words, can customer #1 have po #1, and customer #2 have po #1? If not, then you do not need an index on CustID+PoNum. To get the invoices for a customer:
>
>SELECT * FROM PastInvoices WHERE CustID = ?lcCustID
>
>To get a specific invoice:
>
>SELECT * FROM PastInvoices WHERE PoNum = ?lcPoNum
>
>Hope that helps, rather than confuses :).

These are po numbers that customers give us...so there are no guarantees about uniqueness. As a matter of fact, we have gotten a duplicate PO number within a customer (from a major retailer...I wouldn't expect that to happen). The only time we retrieve an invoice (or open order) this way is when a store calls and says "Where is po number 12345?"
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform