Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help With Select
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00519030
Message ID:
00519086
Views:
18
Then remove the LEFT OUTER part.

>>Start simple. What does the following do?

>>select scsaqty.saq_sku, sum(scsasld.sal_soldqty) TotSold ;
> from scsaqty ;
> join scsasld ;
> on scsaqty.saq_sku == scsasld.sal_sku ;
> where between(scsasld.sal_solddate, ?dBgnDate, ?dEndDate) ;
> group by scsaqty.saq_sku>
>This code will only give me sku's that that have been sold in the date range. The scsasld table will have an entry evertime a sku is sold. If a sku was never sold it would't have any entries in the scsasld file.
>
>I need to have every sku from the scsaqty table and the total sold from the scsasld table even if none were sold durring the date range.
>
>Pat
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform