Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sales in month
Message
From
17/01/2011 05:03:32
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Sales in month
Miscellaneous
Thread ID:
01496346
Message ID:
01496346
Views:
126
Hi

this is actually a Mysql query.

I have a table with a range of yearmonths (say 200501 to 200702)

and a table with yearmonth,model_id,amount_sold with some yearmonths for some models missing if none where sold in the month.

I want a query which gives me all yearmonths in my range, all models and amounts_sold including 0 months where none of a particular model has been sold.

Any thoughts on the easiest way to achieve that.

Thanks

Nick
Next
Reply
Map
View

Click here to load this message in the networking platform