Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help With Select
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00519030
Message ID:
00519071
Vues:
12
First, you need to precede the field names with the table name and a period so we can tell where the fields are coming from. A definition of the fields would also be helpful. And a definition of what is in the 2 tables.

>I am trying to write a select that will give me one record for each sku and a total qty sold. This is what I have so far. My question is where do I put the code to limit the qty sold to a specific date range? I’ve tried adding a where clause, but then I don’t sku’s that don’t have sales history. Any ideas?
>
>select saq_sku, saq_stloc, sum(sal_soldqty);
>from scsaqty;
>left outer join scsasld;
>on saq_stloc == sal_stloc and saq_sku == sal_sku;
>where between(sal_solddate,dBgnDate,dEndDate);
>group by saq_sku, saq_stloc
>
>Thanks
>
>Pat
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform