Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,460 --> 00:00:01,040
‫Welcome back.
2
00:00:01,300 --> 00:00:08,110
‫So we just left off with our friend Jeff, having a really hard time keeping track of orders, things
3
00:00:08,110 --> 00:00:13,320
‫were getting bigger and bigger and harder and harder to manage just with a spreadsheet.
4
00:00:13,750 --> 00:00:17,320
‫So we advised them that a database might be useful.
5
00:00:18,040 --> 00:00:22,790
‫So how would Jeff implement a database, let's say, an Amazon?
6
00:00:23,200 --> 00:00:29,650
‫Well, remember, a database is just software and hardware that holds that data and allows us to manipulate
7
00:00:29,650 --> 00:00:30,100
‫that data.
8
00:00:30,250 --> 00:00:35,560
‫So Jeff on his computer decides to install a database management system.
9
00:00:35,710 --> 00:00:43,990
‫Let's say he picks PostgreSQL, he installs it, and then he starts putting the data that we had in
10
00:00:43,990 --> 00:00:47,800
‫a spreadsheet into PostgreSQL, into a database.
11
00:00:48,310 --> 00:00:51,250
‫Now, again, something that we're going to learn about throughout this course.
12
00:00:51,490 --> 00:00:54,300
‫But for now, I've simplified the diagrams for us.
13
00:00:54,610 --> 00:01:00,280
‫So now Amazon decides that we're going to use a database, not a spreadsheet, because our company is
14
00:01:00,280 --> 00:01:00,670
‫growing.
15
00:01:01,060 --> 00:01:04,930
‫So they start creating a different way to organize data.
16
00:01:04,930 --> 00:01:09,420
‫That kind of looks like a spreadsheet, like an Excel sheet, but a little bit different.
17
00:01:10,210 --> 00:01:14,410
‫One is we have customers that is each customer.
18
00:01:15,390 --> 00:01:24,060
‫Now has a customer I.D., a unique customer ID that we can identify the customer with, so I'm customer
19
00:01:24,060 --> 00:01:32,010
‫one Saulius to Brunos three MO is for the beauty of this is that if I ever moved, I have one location
20
00:01:32,130 --> 00:01:34,710
‫where Jeff could look to see my new address.
21
00:01:35,010 --> 00:01:39,290
‫So there's only one record of myself and my address.
22
00:01:39,300 --> 00:01:42,430
‫So Jeff knows exactly where to ship my product.
23
00:01:43,250 --> 00:01:46,160
‫Next, we create the products data.
24
00:01:46,200 --> 00:01:50,940
‫So this is another table that we're creating and products just like customers.
25
00:01:52,010 --> 00:01:55,380
‫Have an ID to uniquely identify them.
26
00:01:55,400 --> 00:01:58,360
‫We have the description of the product, but also the price.
27
00:01:58,400 --> 00:02:04,790
‫Again, if we ever add products to our company, to Amazon, then we can just add it all in one location
28
00:02:05,180 --> 00:02:07,420
‫if we want to change the price or offer discounts.
29
00:02:07,480 --> 00:02:10,220
‫We can change the price in one location.
30
00:02:10,910 --> 00:02:13,310
‫Then, of course, we need our orders.
31
00:02:13,310 --> 00:02:17,870
‫In order for us to make money with Amazon, we need to actually sell stuff.
32
00:02:18,170 --> 00:02:20,300
‫So how do we keep track of orders?
33
00:02:20,720 --> 00:02:26,150
‫Well, each order, just like we had with customers and products, are going to have a unique ID.
34
00:02:27,140 --> 00:02:31,700
‫But this is the beauty of something like a database.
35
00:02:32,820 --> 00:02:38,910
‫Older one who ordered the first order while customer I.D. is right here.
36
00:02:39,850 --> 00:02:43,850
‫What's the customer ID want, so Andre ordered something.
37
00:02:44,140 --> 00:02:45,680
‫This is when I ordered it.
38
00:02:46,030 --> 00:02:47,950
‫What product did Andre Order?
39
00:02:47,980 --> 00:02:51,640
‫Well, what's two product ID two is a toy duck.
40
00:02:51,670 --> 00:02:56,510
‫OK, Andre ordered a toy duck and then the quantity is one.
41
00:02:56,770 --> 00:03:04,960
‫So now I know exactly who ordered it, what product, how many, what the prices and also the address
42
00:03:04,960 --> 00:03:05,560
‫to shipping.
43
00:03:05,980 --> 00:03:12,190
‫Now pause the video and see if we can connect all of these relations for the rest of the three orders.
44
00:03:13,410 --> 00:03:17,370
‫Once you're done, let's take a look at what we've just created.
45
00:03:18,280 --> 00:03:27,130
‫We've essentially created relations, right, instead of having everything in one Excel sheet, we now
46
00:03:27,130 --> 00:03:29,680
‫have these tables that link to one another.
47
00:03:30,190 --> 00:03:32,350
‫Each table has a relation to one another.
48
00:03:32,350 --> 00:03:35,920
‫For example, the customer IDs are matched over here.
49
00:03:36,790 --> 00:03:40,140
‫We have the product ID that's matched over here.
50
00:03:40,690 --> 00:03:45,220
‫All of these are related with one another connected.
51
00:03:46,520 --> 00:03:54,200
‫And because there's only one location for us to change things, for example, let's say the address
52
00:03:54,200 --> 00:03:57,200
‫changes, I know exactly where to update those customers.
53
00:03:57,200 --> 00:04:00,350
‫I know exactly where to update the product or even the orders.
54
00:04:01,850 --> 00:04:08,810
‫And this is one of the big things with the database's, especially when it comes to a relational database
55
00:04:09,320 --> 00:04:16,580
‫where we're able to create large, massive amounts of data beyond what an Excel sheet might be able
56
00:04:16,580 --> 00:04:22,880
‫to do, but also organize it in a way that is really intuitive, although it might be really hard for
57
00:04:22,880 --> 00:04:29,360
‫you to understand how to look at this data right now for a computer when we start using things like,
58
00:04:29,750 --> 00:04:36,290
‫well, a computer understands this a lot better than a confusing Excel sheet with many, many rows,
59
00:04:36,290 --> 00:04:41,030
‫many, many cells that are not linked or connected properly.
60
00:04:41,980 --> 00:04:49,360
‫So to finish off this video, I want you to go back to our playground over here and start seeing how
61
00:04:49,540 --> 00:04:57,610
‫these tables are organized, for example, go to the orders table and try to figure out what this first
62
00:04:57,610 --> 00:04:58,640
‫order was.
63
00:04:58,990 --> 00:05:01,630
‫We see that there's an order I.D., there's a customer ID.
64
00:05:01,630 --> 00:05:08,200
‫Find out who the customer is, who the employee is that sold this product and the shipwright, who's
65
00:05:08,200 --> 00:05:08,980
‫the shipper?
66
00:05:10,470 --> 00:05:15,840
‫Once you start to decipher tables like that, well, that's when things get more and more interesting.
67
00:05:17,210 --> 00:05:23,750
‫Congratulations, we just managed to help Jeff become the superstar that he is now.
68
00:05:24,410 --> 00:05:25,280
‫You're welcome, Jeff.
69
00:05:25,820 --> 00:05:26,180
‫All right.
70
00:05:26,180 --> 00:05:27,410
‫I'll see you in the next video.
7320
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.