forked from voe09/syllabus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ejones.html
651 lines (569 loc) · 20.8 KB
/
ejones.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Bootstrap -->
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="lib/style.css" rel="stylesheet" media="screen">
<title>4111: Introduction to Databases</title>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-inner">
<a class="navbar-brand active" href="#">4111 Spring 2016 (Section 2)</a>
<div class="collapse navbar-collapse ">
<ul class="nav navbar-nav" role="tablist">
<li><a href="#staff">Staff</a></li>
<li><a href="#grading">Grading</a></li>
<li><a href="#links">Links</a></li>
<li><a href="#schedule">Schedule</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<div class="page-header">
<h2>Introduction to Databases</h2>
</div>
<div class="row">
<div class="col-md-2"><b>Units:</b></div>
<div class="col-md-8"><p>3</p></div>
</div>
<div class="row">
<div class="col-md-2"><a id="staff" name="staff"></a><b>Instructor:</b></div>
<div class="col-md-8"><p><a href="http://www.evanjones.ca/">Evan Jones</a> <a href="mailto:[email protected]">[email protected]</a></p></div>
</div>
<div class="row">
<div class="col-md-2"><b>Staff:</b> </div>
<div class="col-md-8">
<p>Jincheng Li<br>
Ethan Liu<br>
Harry Lee<br>
Boyu Wang</p>
</div>
</div>
<div class="row">
<div class="col-md-2"><b>Meetings:</b></div>
<div class="col-md-8"><p>TuTh 8:40A-9:55A, 209 Havemeyer Hall</p></div>
</div>
<div class="row">
<div class="col-md-2"><b>Description:</b></div>
<div class="col-md-8">
This class will introduce core database topics for building database-backed applications, such as
data modeling, logical design of relational databases, relational algebra, and SQL.
We will also introduce database internals such as query processing, query optimization,
physical database design, and transaction processing.
Students are expected to be comfortable with data structures and Python.
</div>
</div>
<br>
<div class="row">
<div class="col-md-2"><b>Basic Info:</b></div>
<div class="col-md-8">
<a href="https://github.com/w4111/syllabus">Syllabus and Basic Information</a>
</div>
</div>
<br>
<div class="row">
<div class="col-md-2"><a id="grading" name="grading"></a><b>Grading:</b></div>
<div class="col-md-8">
Grading will be based on exams and successful completion of homeworks and projects.
<br><br>
<table class="table table-striped">
<tbody><tr><td>Homeworks (<a href="https://github.com/w4111/hw0">HW0</a> HW1 HW2 HW3 HW4)</td><td>15%
</td></tr><tr><td><a href="https://github.com/w4111/project1">Project 1</a> (<a href="https://github.com/w4111/project1/blob/master/part1.md">Part 1</a>)</td><td>15%
</td></tr><tr><td>Project 2</td><td>5%
</td></tr><tr><td>Midterm</td><td>25%
</td></tr><tr><td>Final</td><td>40%
</td></tr></tbody></table>
<a href="https://github.com/w4111/syllabus">See Syllabus for grading info</a>
</div>
</div>
<br>
<div class="row">
<div class="col-md-2" style="vertical-align: top"><a id="links" name="links"></a><b>Useful Links:</b></div>
<div class="col-md-8">
<!--Link to <a href="https://www.google.com/calendar/embed?showTitle=0&showDate=0&showPrint=0&showTabs=0&showCalendars=0&showTz=0&mode=WEEK&height=400&wkst=1&bgcolor=%23FFFFFF&src=columbia.edu_5552pjkf1resa92b2m80frtrmk%40group.calendar.google.com&color=%238C500B&ctz=America%2FNew_York">Office hours</a> google calendar (if it doesnt' load, incognito seems to help).
<br>-->
<!--Hand in most assignments on <a href="http://courseworks.columbia.edu/">CourseWorks</a>.
<br>-->
Discuss the class on <a href="https://piazza.com/class/ijk4fyuhr8v38q">Piazza</a>.
<small class="text-muted">Aside from personal questions, please use Piazza rather than emailing the staff!</small>
<br>
Check out <a href="https://github.com/w4111/">the course github repository</a>
(including lecture notes, code, homeworks, and slides!).
</div>
</div>
<h3>Ephemeral Announcments</h3>
<div class="row announce">
<div class="col-md-2 "></div>
<div class="col-md-8 ">
<p><b>Project 1 Part 1</b>: <a href="https://calendar.google.com/calendar/selfsched?sstoken=UU43X2NkLTFneDNifGRlZmF1bHR8NmZmOTM3Mjc4ZmI4OTgzODFkMzcwZjM3YTBhOTA0YmE">Please sign up for a 10 minute advising session</a>. More slots will be added over the next few days. Please complete Part 1 Step 1 before your meeting (<a href="https://github.com/w4111/project1">the project description is now available</a>).</p>
<p><b>Waiting list</b>: I am going to finalize the enrolled list on Wednesday, January 27th at 8 PM. This will give students who are added then time to have an advising session for Project 1. You will know your waiting list status on Thursday, January 28th. Currently, approximately 10 students who are enrolled have not completed HW0 (as of Jan 22 11 AM). <em>If</em> they all drop, that should mean anyone with waiting list priority <= 10 will be enrolled, but I can't make guarantees. Unless significantly more people drop over the next week, it seems unlikely that anyone with priority above 30 will be accepted.</p>
<p>I apologize for not being able to accomodate everyone, but I'm limited due to the room size (and lack of other rooms), as well as availability of IAs. Thank you for your understanding.</p>
</div>
</div>
<h3><a id="schedule" name="schedule"></a>Class Schedule </h3>
<table class="table table-striped">
<thead>
<tr>
<th> <p> <span>Date </span> </p> </th>
<th> <p> <span>Topic </span> </p> </th>
<!--<th > <p > <span >Objectives </span> </p> </th>-->
<th style="max-width: 200px"> <p> <span>Readings <!--<br> <i>To be read before class</i>--></span> </p> </th>
<th style="max-width: 200px;"> <p> <span>Assignments / Notes</span> </p> </th>
</tr>
</thead>
<tbody id="schedule_body">
<tr>
<td> <p> <span class="date">Tuesday <br>1/19</span> </p></td>
<td>
<div><a href="https://github.com/w4111/syllabus/raw/master/lectures/lecture_01.pdf">L1: Intro</a></div>
<div><a href="https://github.com/w4111/syllabus/raw/master/lectures/lecture_01.pdf">Introduction and Administriva</a></div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 1</span> </p>
</td>
<td style="max-width: 200px;">
<div><div style="width:100%" class="hw text-info bg-info">Assigned</div><a href="http://github.com/w4111/hw0">HW 0</a> due 1/21</div><br>
</td>
</tr>
<tr>
<td> <p> <span class="date">Thursday<br>1/21</span> </p></td>
<td>
<div><a href="https://github.com/w4111/syllabus/raw/master/lectures/lecture_02.pdf">L2: Entity-Relationship Modeling 1</a></div>
<div><a href="https://github.com/w4111/syllabus/raw/master/lectures/lecture_02.pdf">Inital ER modeling: entities, relationships, simple constraints</a></div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 2</span> </p>
</td>
<td style="max-width: 200px;">
<div><div style="width:100%" class="due text-warning bg-warning">Due</div><a href="http://github.com/w4111/hw0">HW 0</a> 8:40AM</div><br>
<div><div style="width:100%" class="hw text-info bg-info">Assigned</div><a href="https://github.com/w4111/project1/blob/master/part1.md">Project 1 Part 1</a>. Look for teammate</div><br>
</td>
</tr>
<tr>
<td> <p> <span class="date">Tuesday<br>1/26</span> </p></td>
<td>
<div><a href="https://github.com/w4111/syllabus/raw/master/lectures/lecture_03.pdf">L3: Entity-Relationship Modeling 2 / Historical Data Models</a></div>
<div><a href="https://github.com/w4111/syllabus/raw/master/lectures/lecture_03.pdf">Review, using ER models, history of data models</a></div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 2</span> </p>
</td>
<td style="max-width: 200px;">
<div><div style="width:100%" class="due text-warning bg-warning">Due</div>Formed team for Project 1 (no deliverable)</div><br>
<div class="notes">Project 1 Part 1 approval phase 1/25-2/1</div>
</td>
</tr>
<tr>
<td> <p> <span class="date">Thursday<br>1/28</span> </p></td>
<td>
<div><a href="https://github.com/w4111/syllabus/raw/master/lectures/lecture_04.pdf">L4: Relational Model</a></div>
<div><a href="https://github.com/w4111/syllabus/raw/master/lectures/lecture_04.pdf">Definitions, Constraints, Basic Queries</a></div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 3</span><br>(Optional) <a href="https://github.com/w4111/syllabus/raw/master/reading/goesaroundcomesaround.pdf">What Goes Around Comes Around</a></p>
</td>
<td style="max-width: 200px;">
<div class="notes">Project 1 Part 1 approval phase 1/25-2/1</div>
</td>
</tr>
<tr>
<td> <p> <span class="date">Tuesday<br>2/2</span> </p></td>
<td>
<div>L5: Relational Model 2 </div>
<div>ER and Relational Review</div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p><span>Chapter 3</span></p>
</td>
<td style="max-width: 200px;"></td>
</tr>
<tr>
<td> <p> <span class="date">Thursday<br>2/4</span> </p></td>
<td>
<div>L6: Relational Model 3 / Intro to Relational Algebra </div>
<div>Relational Algebra</div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 3<br></span> </p>
</td>
<td style="max-width: 200px;">
<div><div style="width:100%" class="due text-warning bg-warning">Due</div>Project 1 Part 1 2:30PM in class. Hard copy</div><br>
<div><div style="width:100%" class="hw text-info bg-info">Assigned</div>HW 1 due 2/11<br>Project 1 Part 2</div><br>
</td>
</tr>
<tr>
<td> <p> <span class="date">Tuesday<br>2/9</span> </p></td>
<td>
<div>L7: Relational Algebra 1 </div>
<div> </div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Sections 4.1 and 4.2</span> </p>
</td>
<td style="max-width: 200px;">
</td>
</tr>
<tr>
<td> <p> <span class="date">Thursday<br>2/11</span> </p></td>
<td>
<div>L8: Relational Algebra 2 </div>
<div>ER to relational supplemental notes</div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Sections 4.1 and 4.2</span> </p>
</td>
<td style="max-width: 200px;">
<div><div style="width:100%" class="due text-warning bg-warning">Due</div>HW 1 8:40AM in class. Hard copy.</div><br>
</td>
</tr>
<tr>
<td> <p> <span class="date">Tuesday<br>2/16</span> </p></td>
<td>
<div>L9: Relational Algebra 3 </div>
<div> </div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Sections 5</span> </p>
</td>
<td style="max-width: 200px;">
</td>
</tr>
<tr>
<td> <p> <span class="date">Thursday<br>2/18</span> </p></td>
<td>
<div>L10: SQL 1 </div>
<div>Knee deep in SQL</div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 5</span> </p>
</td>
<td style="max-width: 200px;">
<div><div style="width:100%" class="hw text-info bg-info">Assigned</div>HW 2</div><br>
</td>
</tr>
<tr>
<td> <p> <span class="date">Tuesday<br>2/23</span> </p></td>
<td>
<div>L11: SQL 2 </div>
<div> </div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 5</span> </p>
</td>
<td style="max-width: 200px;">
</td>
</tr>
<tr>
<td> <p> <span class="date">Thursday<br>2/25</span> </p></td>
<td>
<div>L12: SQL 3 </div>
<div>Order by and UDFs </div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 5</span> </p>
</td>
<td style="max-width: 200px;">
<div><div style="width:100%" class="due text-warning bg-warning">Due</div>Project 1 Part 2 8:40AM</div><br>
<div><div style="width:100%" class="hw text-info bg-info">Assigned</div>Project 1 Part 3</div><br>
</td>
</tr>
<tr>
<td> <p> <span class="date">Tuesday<br>3/1</span> </p></td>
<td>
<div>L13: SQL 4 </div>
<div>Triggers, WITH, Views</div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 5</span> </p>
</td>
<td style="max-width: 200px;">
<div><div style="width:100%" class="due text-warning bg-warning">Due</div>HW 2 Due 8:40AM</div><br>
</td>
</tr>
<tr>
<td> <p> <span class="date">Thursday<br>3/3</span> </p></td>
<td>
<div>L14: Review Session </div>
<div> </div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span></span> </p>
</td>
<td style="max-width: 200px;">
</td>
</tr>
<tr>
<td> <p> <span class="date">Tuesday<br>3/8</span> </p></td>
<td>
<div>L15: Midterm </div>
<div>Closed Book, cheat sheet: both sides of one half of an 8x11 page </div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span></span> </p>
</td>
<td style="max-width: 200px;">
</td>
</tr>
<tr>
<td> <p> <span class="date">Thursday<br>3/10</span> </p></td>
<td>
<div>L16: APIs </div>
<div>DBAPIs, Impedance Mismatches, SQL Injection</div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 6</span> </p>
</td>
<td style="max-width: 200px;">
</td>
</tr>
<tr>
<td> <p> <span class="date">Tues/Thurs<br>3/15 3/17</span> </p></td>
<td>
<div><b>Spring Recess! No lectures! Yay!</b></div>
</td>
<td style="max-width: 200px"></td>
<td style="max-width: 200px;"></td>
</tr>
<tr>
<td> <p> <span class="date">Tuesday<br>3/22</span> </p></td>
<td>
<div>L17: Normalization </div>
<div>Redundancy and Functional Dependencies</div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 19 except 19.8 (you do need to know 3NF at the level of lecture)</span> </p>
</td>
<td style="max-width: 200px;">
<div><div style="width:100%" class="hw text-info bg-info">Assigned</div>HW 3</div><br>
</td>
</tr>
<tr>
<td> <p> <span class="date">Thursday<br>3/24</span> </p></td>
<td>
<div>L18: Normalization/Physical Design </div>
<div>Money Matters: Hardware Costs</div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 8 (level of detail covered in class)</span> </p>
</td>
<td style="max-width: 200px;">
</td>
</tr>
<tr>
<td> <p> <span class="date">Tuesday<br>3/29</span> </p></td>
<td>
<div>L19: Physical Design </div>
<div> </div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 8 (level of detail covered in class)</span> </p>
</td>
<td style="max-width: 200px;">
<div><div style="width:100%" class="due text-warning bg-warning">Due</div>Project 1 Part 3 10AM</div><br>
</td>
</tr>
<tr>
<td> <p> <span class="date">Thursday<br>3/31</span> </p></td>
<td>
<div>L20: Query Proc 1 </div>
<div>Single operator optimizations</div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 12 (level of detail covered in class)<br>(Optional)<a href="http://www.cs.columbia.edu/~coms4111/docs/selinger.pdf">Access Path Selection in a Relational Database Management System</a></span> </p>
</td>
<td style="max-width: 200px;">
</td>
</tr>
<tr>
<td> <p> <span class="date">Tuesday<br>4/5</span> </p></td>
<td>
<div>L21: Query Proc 2 </div>
<div>Selinger Optimizer</div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 12 (level of detail covered in class)<br>(Optional)<a href="http://www.cs.columbia.edu/~coms4111/docs/selinger.pdf">Access Path Selection in a Relational Database Management System</a></span> </p>
</td>
<td style="max-width: 200px;">
<div><div style="width:100%" class="due text-warning bg-warning">Due</div>HW 3 10AM</div><br>
<div><div style="width:100%" class="hw text-info bg-info">Assigned</div>HW 4<br>Project 2</div><br>
<br>
</td>
</tr>
<tr>
<td> <p> <span class="date">Thursday<br>4/7</span> </p></td>
<td>
<div>L22: Transaction Processing 1 </div>
<div>Concurrency Control</div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 16 (level of detail covered in class). Ignore 16.5, 16.6. </span> </p>
</td>
<td style="max-width: 200px;">
</td>
</tr>
<tr>
<td> <p> <span class="date">Tuesday<br>4/12</span> </p></td>
<td>
<div>L23: Transaction Processing 2 </div>
<div>Recovery</div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span>Chapter 16 (level of detail covered in class). Ignore 16.5, 16.6. </span> </p>
</td>
<td style="max-width: 200px;">
</td>
</tr>
<tr>
<td> <p> <span class="date">Thursday<br>4/14</span> </p></td>
<td>
<div>L24: TBD Guest Lecture</div>
<div> </div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span></span> </p>
</td>
<td style="max-width: 200px;">
<div><div style="width:100%" class="due text-warning bg-warning">Due</div>HW 4 8:40AM in class. Hard copy.</div><br>
</td>
</tr>
<tr>
<td> <p> <span class="date">Tuesday<br>4/19</span> </p></td>
<td>
<div>L25: TBD Guest Lecture</div>
<div> </div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span></span> </p>
</td>
<td style="max-width: 200px;">
</td>
</tr>
<tr>
<td> <p> <span class="date">Thursday<br>4/21</span> </p></td>
<td>
<div>L26: TBD</div>
<div></div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span></span> </p>
</td>
<td style="max-width: 200px;">
<div><div style="width:100%" class="due text-warning bg-warning">Due</div>Project 2 10AM on FRIDAY 12/11</div><br>
</td>
</tr>
<tr>
<td> <p> <span class="date">Tuesday<br>4/26</span> </p></td>
<td>
<div>L27: Project Presentations, Misc </div>
<div>The Future and More</div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span></span> </p>
</td>
<td style="max-width: 200px;">
</td>
</tr>
<tr>
<td> <p> <span class="date">Thursday<br>4/28</span> </p></td>
<td>
<div>L28: Midterm 2 (cumulative)</div>
<div>Closed Book, 1/2 page cheat sheet</div>
</td>
<!--<td >
<p > <span > </span> </p>
</td>-->
<td style="max-width: 200px">
<p> <span></span> </p>
</td>
<td style="max-width: 200px;">
</td>
</tr>
</tbody>
</table>
</div>
</body></html>