Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,640 --> 00:00:07,480
‫All right, everybody, it's exercise time, and in this exercise, we're going to build Amazon or at
2
00:00:07,480 --> 00:00:11,320
‫least understand how Amazon uses databases.
3
00:00:11,920 --> 00:00:15,010
‫Now, I want to take us back all the way into the 90s.
4
00:00:15,340 --> 00:00:19,730
‫That is Amazon before Jeff Bezos look like a superhero.
5
00:00:19,750 --> 00:00:22,130
‫We're talking Jeff Bezos in the 90s.
6
00:00:22,780 --> 00:00:25,000
‫Now, imagine you're starting Amazon.
7
00:00:25,160 --> 00:00:26,440
‫You just started.
8
00:00:26,680 --> 00:00:29,140
‫You're starting to deliver some books.
9
00:00:29,150 --> 00:00:31,500
‫You are getting your first customers.
10
00:00:31,540 --> 00:00:34,810
‫If you're a Jeff Bezos, what's your first thing that you're going to do?
11
00:00:35,710 --> 00:00:44,650
‫Well, maybe you will use a notebook, a pen and paper and say, Joe just ordered a Harry Potter book.
12
00:00:44,680 --> 00:00:51,010
‫I'm going to write down his name, grab their credit card information or check and grab their address
13
00:00:51,010 --> 00:00:52,780
‫so that I can ship them that book.
14
00:00:52,970 --> 00:01:00,010
‫Now, eventually, this notebook, pen and paper is going to overwhelm Jeff and he decides, you know
15
00:01:00,010 --> 00:01:01,930
‫what, let's use Excel.
16
00:01:01,960 --> 00:01:03,140
‫Let's use a spreadsheet.
17
00:01:03,490 --> 00:01:06,310
‫And Jeff starts using a spreadsheet.
18
00:01:07,210 --> 00:01:13,860
‫And now look at that, things look a lot better, a lot cleaner instead of pen and paper on the computer.
19
00:01:14,200 --> 00:01:16,260
‫Now Jeff has some orders.
20
00:01:16,660 --> 00:01:18,550
‫We have Andre myself.
21
00:01:18,550 --> 00:01:20,140
‫I ordered a toy duck.
22
00:01:20,140 --> 00:01:21,220
‫I wanted two of them.
23
00:01:21,220 --> 00:01:23,110
‫And this is my address now.
24
00:01:23,110 --> 00:01:23,910
‫My real address.
25
00:01:23,920 --> 00:01:24,970
‫Don't try and send me mail.
26
00:01:25,270 --> 00:01:29,120
‫We have Mo, who likes candy and just bought 100 candies.
27
00:01:29,140 --> 00:01:29,920
‫Wow, that's a lot.
28
00:01:30,310 --> 00:01:34,270
‫Bruno, again, has perfect hair and he buys a lot of hair gel.
29
00:01:34,270 --> 00:01:37,770
‫And then finally, Sally is buying a Harry Potter book.
30
00:01:38,530 --> 00:01:39,030
‫Awesome.
31
00:01:39,190 --> 00:01:41,950
‫So Jeff is keeping tracks of orders.
32
00:01:41,950 --> 00:01:46,600
‫He knows when to send those items because he has the address.
33
00:01:46,600 --> 00:01:49,120
‫He has a quantity, he has the name.
34
00:01:49,570 --> 00:01:51,160
‫Everything is great.
35
00:01:51,760 --> 00:01:53,830
‫But then comes a problem.
36
00:01:54,220 --> 00:01:57,070
‫The Excel sheet gets a little bit bigger.
37
00:01:57,640 --> 00:02:01,480
‫And now we have something confusing that Andre has done.
38
00:02:01,900 --> 00:02:08,170
‫You see, I wanted to get some cool glasses, so I order some cool glasses and there you go, order
39
00:02:08,170 --> 00:02:08,500
‫them.
40
00:02:08,500 --> 00:02:11,710
‫But once I see them, I didn't really like them.
41
00:02:11,710 --> 00:02:13,600
‫I don't think they were as cool as I thought.
42
00:02:13,600 --> 00:02:22,480
‫So while I, I decided to return them and a week later I decided, you know what, I wasn't thinking
43
00:02:22,480 --> 00:02:22,750
‫straight.
44
00:02:22,750 --> 00:02:26,080
‫Those cool glasses, they were actually very, very cool.
45
00:02:26,230 --> 00:02:31,180
‫So I decide to order another pair of glasses, but oh, just a heads up.
46
00:02:31,180 --> 00:02:33,790
‫I actually moved to Japan in the meantime.
47
00:02:34,240 --> 00:02:36,100
‫So Jeff looking is this is saying.
48
00:02:36,100 --> 00:02:36,870
‫Hold on, hold on.
49
00:02:37,060 --> 00:02:37,750
‫Well, OK.
50
00:02:37,750 --> 00:02:39,700
‫So is this the same Andre?
51
00:02:39,700 --> 00:02:41,680
‫There's two different addresses.
52
00:02:41,680 --> 00:02:47,230
‫There's a minus one here and in his head has to keep track of all these things, all these changes,
53
00:02:47,230 --> 00:02:50,020
‫and imagine having more and more rows.
54
00:02:50,020 --> 00:02:54,430
‫Imagine this Excel sheet getting bigger and bigger and bigger, more information, more data.
55
00:02:55,150 --> 00:02:57,160
‫Things start to get confusing.
56
00:02:57,880 --> 00:03:01,870
‫And this is why databases exist.
57
00:03:02,740 --> 00:03:09,010
‫Instead of this, let's imagine a better system that Jeff implements now for you.
58
00:03:09,220 --> 00:03:14,720
‫I want you to go to this length that will link in this lecture and try this out.
59
00:03:15,010 --> 00:03:17,410
‫This is an interactive playground.
60
00:03:17,770 --> 00:03:22,220
‫This is a website that actually has a database already as part of it.
61
00:03:22,330 --> 00:03:28,660
‫You can see here that this is your database and it has different tables with different records.
62
00:03:28,670 --> 00:03:30,220
‫So there's ninety one customers.
63
00:03:30,220 --> 00:03:31,720
‫There's eight categories.
64
00:03:32,380 --> 00:03:35,170
‫And there's also a playground for you to run.
65
00:03:35,180 --> 00:03:36,280
‫Ask all statements.
66
00:03:36,520 --> 00:03:41,740
‫Now, we haven't really learned about school yet, so this might be gibberish for you, but I just want
67
00:03:41,740 --> 00:03:43,600
‫you to click run school.
68
00:03:43,600 --> 00:03:47,680
‫And by the way, your school statement here might be different than mine.
69
00:03:47,710 --> 00:03:48,370
‫That doesn't matter.
70
00:03:48,370 --> 00:03:49,450
‫Just click run.
71
00:03:50,710 --> 00:03:59,320
‫This is essentially what a database does, we kind of get the same results as a spreadsheet, but we
72
00:03:59,320 --> 00:04:03,730
‫use ask you all statements and we grab information that we need.
73
00:04:04,090 --> 00:04:06,850
‫But it's not just one big Excel file, right?
74
00:04:07,030 --> 00:04:09,880
‫There's different pieces of data.
75
00:04:11,340 --> 00:04:18,990
‫So if I go to customers, I see all my customers, each customer has an ID, has different columns with
76
00:04:18,990 --> 00:04:24,330
‫important information like address, like the contact name if we go to orders.
77
00:04:26,240 --> 00:04:30,770
‫We have some order date, we have some customer ID, so who ordered the orders?
78
00:04:31,810 --> 00:04:35,350
‫If we go to products, we see all the products that we have.
79
00:04:36,790 --> 00:04:41,780
‫And all of these are grabbed using school statements.
80
00:04:42,790 --> 00:04:48,430
‫Now, I know this is still confusing, might not understand what the difference between this and an
81
00:04:48,430 --> 00:04:54,550
‫Excel spreadsheet is, but before we do, before I go into the next video and show you the exact difference
82
00:04:54,550 --> 00:05:02,980
‫and why this system might be more beneficial to Jeff, I want you to play around over here, start clicking
83
00:05:02,980 --> 00:05:09,160
‫on some of these categories around the school commands and just kind of understand what we're trying
84
00:05:09,160 --> 00:05:09,520
‫to do.
85
00:05:09,730 --> 00:05:17,650
‫Essentially, when we select staff from something, we get some data, see if we can modify this information
86
00:05:17,650 --> 00:05:24,280
‫right over here to perhaps match different databases and find out about our Amazon store.
87
00:05:25,150 --> 00:05:30,400
‫So play around, even though you have no idea maybe what these statements do, and in the next video,
88
00:05:30,400 --> 00:05:33,910
‫we're going to dive deeper into Jeff's Amazon database.
8264
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.