Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL question.
Message
De
25/11/1997 16:51:53
 
 
À
25/11/1997 06:37:38
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapour
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00062102
Message ID:
00062287
Vues:
21
>I have a transaction table A (brand, prod_id, prod_age, in, out). My user needs a delivery pick-up list report. The pick-up requirement is usually based on brand. For example, brand A, I need 300, brand B, I need 200, etc., '300' can be 20 from prod_1, 50 from prod_2, etc. The oldest product should be pick-up first for each brand. The requirement is stored in another table B (brand, req_qty)

let me try :
select a.brand, a.prod_id, b.req_qty, a.in, a.out ;
from a table_A, b table_B ;
where (a.brand = b.brand) order by 1

hope it helps. keep experimenting with sql, it's fun. just remember
to read their article on sql on the knowledge base because there's
something about not getting the correct records but i always use
_tally anyway.
rostand
"le rêve d'étoiles" - (Fr.) the dream of the stars Ü
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform