Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
0
1
00:00:01,024 --> 00:00:01,792
Hi Everyone
1
2
00:00:02,304 --> 00:00:08,448
So we have learnt one of the most important commands in the SQL language, you now know how to group your resultset
2
3
00:00:08,704 --> 00:00:11,264
And get aggregate values against it
3
4
00:00:12,032 --> 00:00:13,824
Let us test If you can get
4
5
00:00:14,080 --> 00:00:19,968
For Each product ID the total sales value in dollars, the total sales quantity
5
6
00:00:20,224 --> 00:00:22,528
So if you remember there is a quantity column
6
7
00:00:22,784 --> 00:00:24,064
I want you to
7
8
00:00:24,320 --> 00:00:26,880
Add up all quantity for each product ID
8
9
00:00:28,160 --> 00:00:30,464
The number of orders for each product ID
9
10
00:00:31,488 --> 00:00:32,768
Maximum sales value
10
11
00:00:33,024 --> 00:00:37,376
Minimum sales value and average sales value for each product ID
11
12
00:00:38,656 --> 00:00:44,800
Once you run this query what you will get is a dashboard that is something what management of this company
12
13
00:00:45,056 --> 00:00:45,824
Would like to see
13
14
00:00:47,616 --> 00:00:53,760
The next activity is to get the list of product IDS where quantity of product sold is greater than
14
15
00:00:54,016 --> 00:00:54,528
10
15
16
00:00:55,296 --> 00:00:57,088
Show with the group by statement
16
17
00:00:57,600 --> 00:00:58,624
There is having
17
18
00:00:58,880 --> 00:00:59,392
Statement
18
19
00:01:00,928 --> 00:01:02,464
Use having to
19
20
00:01:02,720 --> 00:01:04,256
Filter out only those
20
21
00:01:04,512 --> 00:01:07,840
Product IDS where quantity of product sold is more than 10
21
22
00:01:09,888 --> 00:01:11,168
Once you are done this, you will ready to move on to the next lecture
1848
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.