Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sales in month
Message
De
17/01/2011 05:03:32
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Sales in month
Divers
Thread ID:
01496346
Message ID:
01496346
Vues:
130
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform