Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
0
1
00:00:01,280 --> 00:00:02,048
Hi everyone
1
2
00:00:03,328 --> 00:00:05,632
Now you have learnt a very powerful tool
2
3
00:00:06,144 --> 00:00:07,424
Called subquery
3
4
00:00:08,448 --> 00:00:09,728
Using subquery
4
5
00:00:09,984 --> 00:00:11,776
You'll have to achieve this task
5
6
00:00:12,800 --> 00:00:13,824
If you remember
6
7
00:00:14,592 --> 00:00:15,872
Your sales table
7
8
00:00:16,640 --> 00:00:22,272
Contains only customer id as customer information and product id as product information
8
9
00:00:23,296 --> 00:00:27,136
Now if you want to create a master sales table which has
9
10
00:00:27,648 --> 00:00:31,232
Important customer details and product details also
10
11
00:00:32,000 --> 00:00:35,584
You will need to join the sales product and customer table
11
12
00:00:37,120 --> 00:00:39,168
I want you to subquery
12
13
00:00:39,680 --> 00:00:40,960
And achieve this task
13
14
00:00:41,216 --> 00:00:44,288
Where I want you to get all columns of sales table
14
15
00:00:45,056 --> 00:00:46,080
Customer name
15
16
00:00:46,336 --> 00:00:47,360
Customer age
16
17
00:00:47,616 --> 00:00:49,920
Product name and product category
17
18
00:00:50,176 --> 00:00:51,456
In the same result set
18
19
00:00:52,480 --> 00:00:58,368
So it will have two joins one will be in the subquery and the other one will be in the outer query
19
20
00:00:59,648 --> 00:01:02,208
This can also be done without using subquery
20
21
00:01:02,464 --> 00:01:04,768
By using a single join statement
21
22
00:01:05,280 --> 00:01:09,376
Try to do that also and compare your result if you face any difficulty
22
23
00:01:09,632 --> 00:01:12,192
Do post your doubt in the discussion forum
23
24
00:01:12,448 --> 00:01:18,592
Once you are done with this you will be able to use joins and subqueries very comfortably and you can move on to the next video lecture
2000
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.