Beruflich Dokumente
Kultur Dokumente
Indicadores
Martnez San German Jess Apolinar
30/11/2015
Consulta
select (e.FirstName+''+e.LastName) as Nombre,sum(od.Quantity*od.UnitPrice)as
Venta,
YEAR(o.OrderDate) as Ao from Employees e
join Orders o on e.EmployeeID=o.EmployeeID
join [Order Details] od on o.OrderID=od.OrderID
group by e.FirstName, e.LastName,YEAR(o.OrderDate)
order by YEAR(o.OrderDate) asc
1996
AndrewFuller
AnneDodsworth
JanetLeverling
LauraCallahan
MargaretPeacock
MichaelSuyama
NancyDavolio
RobertKing
StevenBuchanan
22834.7
11365.7
19386.8
23161.4
53269.8
17886.1
38789
18104.8
23378.2
60000
50000
40000
30000
Series1
20000
10000
0
Series2
1997
AndrewFuller
AnneDodsworth
JanetLeverling
LauraCallahan
MargaretPeacock
MichaelSuyama
NancyDavolio
RobertKing
StevenBuchanan
74958.6
29577.55
111788.61
59776.52
139477.7
45992
97533.58
66689.14
32595.05
90000
80000
70000
60000
50000
40000
30000
20000
10000
0
Series1
Series2
1998
AndrewFuller
AnneDodsworth
JanetLeverling
LauraCallahan
MargaretPeacock
MichaelSuyama
NancyDavolio
RobertKing
StevenBuchanan
79955.96
42020.75
82030.89
50363.11
57594.95
14475
65821.13
56502.05
21007.5
90000
80000
70000
60000
50000
40000
30000
20000
10000
0
Series1
Series2
Producto
select p.ProductName,sum(od.Quantity) as Venta,
YEAR(o.OrderDate)as fecha from Products p
join [Order Details] od on p.ProductID=od.ProductID
join Orders o on od.OrderID=o.OrderID
where YEAR(o.OrderDate)=1996
group by p.ProductName, YEAR(o.OrderDate)
order by YEAR(o.OrderDate) asc
ao 1996
Alice Mutton
Aniseed Syrup
Boston Crab Meat
Camembert Pierrot
Carnarvon Tigers
Chai
Chang
Chartreuse verte
Chef Anton's Cajun Seasoning
Chef Anton's Gumbo Mix
coca
Cte de Blaye
DVD
Escargots de Bourgogne
Filo Mix
Flotemysost
focos
Geitost
Genen Shouyu
Gnocchi di nonna Alice
Gorgonzola Telino
Grandma's Boysenberry Spread
Gravad lax
Guaran Fantstica
Gudbrandsdalsost
Gula Malacca
Gumbr Gummibrchen
Gustaf's Knckebrd
Ikura
Inlagd Sill
Ipoh Coffee
234
30
204
370
106
125
226
266
107
129
40
140
6
155
48
261
80
197
25
96
444
36
29
158
149
138
160
6
105
193
136
114
90
146
5
141
155
30
163
52
120
260
152
140
71
63
156
228
252
30
211
110
12
231
133
120
25
15
135
90
40
133
37
106
55
118
274
250
124
123
85
154
450
400
350
300
250
200
150
100
50
0
Wimmers gute
Tunnbrd
Teatime Chocolate
Schoggi Schokolade
Rd Kaviar
Queso Manchego La
Pavlova
NuNuCa Nu-
Maxilaku
Konbu
Ikura
Gudbrandsdalsost
Gorgonzola Telino
focos
DVD
Carnarvon Tigers
Alice Mutton
Tunnbrd
Uncle Bob's Organic Dried Pears
Valkoinen suklaa
Vegie-spread
Wimmers gute Semmelkndel
Zaanse koeken
105
25
30
109
124
16
Series1
Ao 1997
select p.ProductName,sum(od.Quantity) as Venta,
YEAR(o.OrderDate)as fecha from Products p
join [Order Details] od on p.ProductID=od.ProductID
join Orders o on od.OrderID=o.OrderID
where YEAR(o.OrderDate)=1997
group by p.ProductName, YEAR(o.OrderDate)
order by YEAR(o.OrderDate) asc
Alice Mutton
Aniseed Syrup
Boston Crab Meat
Camembert Pierrot
Carnarvon Tigers
Chai
Chang
Chartreuse verte
Chef Anton's Cajun Seasoning
Chef Anton's Gumbo Mix
Chocolade
Cte de Blaye
Escargots de Bourgogne
Filo Mix
Flotemysost
Geitost
Genen Shouyu
Gnocchi di nonna Alice
Gorgonzola Telino
Grandma's Boysenberry Spread
Gravad lax
Guaran Fantstica
Gudbrandsdalsost
Gula Malacca
Gumbr Gummibrchen
Gustaf's Knckebrd
Ikura
Inlagd Sill
Ipoh Coffee
Jack's New England Clam
Chowder
Konbu
Lakkalikri
527
190
596
665
282
304
435
283
264
19
130
223
177
313
454
356
97
971
656
100
28
421
430
396
382
209
346
378
258
549
142
447
65
116
490
208
501
98
183
92
353
264
114
152
432
413
419
571
352
374
236
752
124
630
256
392
344
171
260
385
451
96
610
396
269
346
482
377
305
298
494
287
324
1000
900
800
700
600
500
400
300
200
100
0
Zaanse koeken
Thringer
Spegesild
Singaporean Hokkien
Rssle Sauerkraut
Ravioli Angelo
Perth Pasties
Original Frankfurter
Mozzarella di Giovanni
Manjimup Dried
Laughing Lumberjack
Ipoh Coffee
Gumbr
Gravad lax
Genen Shouyu
Escargots de
Carnarvon Tigers
Alice Mutton
Valkoinen suklaa
Vegie-spread
Wimmers gute Semmelkndel
Zaanse koeken
150
189
281
359
Series1
Ao 1998
select p.ProductName,sum(od.Quantity) as Venta,
YEAR(o.OrderDate)as fecha from Products p
join [Order Details] od on p.ProductID=od.ProductID
join Orders o on od.OrderID=o.OrderID
where YEAR(o.OrderDate)=1998
group by p.ProductName, YEAR(o.OrderDate)
order by YEAR(o.OrderDate) asc
Alice Mutton
Aniseed Syrup
Boston Crab Meat
Camembert Pierrot
Carnarvon Tigers
Chai
Chang
Chartreuse verte
Chef Anton's Cajun Seasoning
Chef Anton's Gumbo Mix
Chocolade
Cte de Blaye
Escargots de Bourgogne
Filo Mix
Flotemysost
Geitost
Genen Shouyu
Gnocchi di nonna Alice
Gorgonzola Telino
Grandma's Boysenberry Spread
Gravad lax
Guaran Fantstica
Gudbrandsdalsost
Gula Malacca
Gumbr Gummibrchen
Gustaf's Knckebrd
Ikura
Inlagd Sill
Ipoh Coffee
Jack's New England Clam
Chowder
Konbu
Lakkalikri
527
190
596
665
282
304
435
283
264
19
130
223
177
313
454
356
97
971
656
100
28
421
430
396
382
209
346
378
258
549
142
447
65
116
490
208
501
98
183
92
353
264
114
152
432
413
419
571
352
374
236
752
124
630
256
392
344
171
260
385
451
96
610
396
269
346
482
377
305
298
494
287
324
1000
900
800
700
600
500
400
300
200
100
0
Zaanse koeken
Thringer
Spegesild
Singaporean Hokkien
Rssle Sauerkraut
Ravioli Angelo
Perth Pasties
Original Frankfurter
Mozzarella di Giovanni
Manjimup Dried
Laughing Lumberjack
Ipoh Coffee
Gumbr
Gravad lax
Genen Shouyu
Escargots de
Carnarvon Tigers
Alice Mutton
Valkoinen suklaa
Vegie-spread
Wimmers gute Semmelkndel
Zaanse koeken
150
189
281
359
Series1