-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
500 lines (469 loc) · 17.4 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Git Introduction II - Remote Repositories</title>
<meta name="description" content="Introduction to Git Remote Repositories">
<meta name="author" content="Luis Ibanez">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="revealjs/css/reveal.min.css">
<link rel="stylesheet" href="revealjs/css/theme/sky.css" id="theme">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="revealjs/lib/css/zenburn.css">
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
<script>
document.write( '<link rel="stylesheet" href="revealjs/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
</script>
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h1>Databases</h1>
<h3>Introduction to Relational Database Management Systems (DBMS)</h3>
<p>
<small>Created by Nic DePaula</small>
</p>
</section>
<section>
<a rel="license" href="http://creativecommons.org/licenses/by/3.0/deed.en_US">
<img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png">
</a>
<br>
<span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/InteractiveResource" property="dct:title" rel="dct:type">Intro do Databases</span>
by
<span xmlns:cc="http://creativecommons.org/ns#" property="cc:attributionName">Nic DePaula</span>
is licensed under a
<a rel="license" href="http://creativecommons.org/licenses/by/3.0/deed.en_US">Creative Commons Attribution 3.0 Unported License</a>.
</section>
<section>
<h3>What is a database?</h3>
<div>
<br>
</div>
<div>"One or more large structured sets of persistent data, usually associated with software to update and query the data. A simple database might be a single file containing many
records, each of which contains the same set of fields where each field is a certain fixed width. "<br>
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
<font style="font-size: 18px;">database. (n.d.). The Free On-line Dictionary of Computing. Retrieved January 24, 2014, from Dictionary.com website:
http://dictionary.reference.com/browse/database</font>
<br>
</div>
</section>
<section>
<h3 style="font-style: normal; font-variant: normal;">WHAT IS A DATABASE?</h3>
<div>
<br>
</div>
<div>
<div>"a collection of related tables and other structures" </div>
<div>or</div>
<div>"a self-describing collection of related records"</div>
<div> <font style="font-size: 18px;">(Kroenke and Auer (2011), Database Concepts)</font>
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>Simply put: </div>
<div>a collection of structured or organized data</div>
</div>
</section>
<section>
<h2>Database System </h2>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
<div>Composed of four components:</div>
<div>
<br>
</div>
<div>1) users</div>
<div>2) the database application</div>
<div>3) database management system (DBMS)</div>
<div>4) the database</div>
</div>
</section>
<section>
<h3>A (relational) database</h3>
<div>
<br>
</div>
<div>For relational databases, emphasis on: </div>
<div>"self-describing" and "related tables"</div>
<div>
<br>
</div>
<div>Self-describing: " a description of the structure of the database is contained within the database itself"</div>
<div><font style="font-size: 18px;">(Kroenke and Auer (2011), Database Concepts)</font>
</div>
<br>
<div>Related tables: tables have a "relation" within themselves and with other tables. Multiple tables are related by some identifier included in both tables.</div>
</section>
<section>
<h2>The "relation" in Relational Database</h2>
<br>
<div>A relation is a set of "tuples" that have the same properties or attributes.</div>
<br><div>In db world a tuple is a set of attribute-value pairs, such as <br>{name:John, age:29}</div>
<div>
<img src="http://upload.wikimedia.org/wikipedia/commons/7/7c/Relational_database_terms.svg" style="width: 400px; height: 200px; max-height: none; max-width: none;">
</div>
<p> <div> <font style="font-size: 18px;">Image from: http://upload.wikimedia.org/wikipedia/commons/7/7c/Relational_database_terms.svg </font> </div></p>
</section>
<section>
<h2>
<font color="#000000">Related tables through identifier:</font>
</h2>
<div>
<div style="text-align: left;">
<font color="#000000">
<span>EmployeeTable</span>
</font>
</div>
<table frame="VOID" cellspacing="0" cols="4" rules="NONE" border="0">
<colgroup>
<col width="86">
<col width="116">
<col width="110">
<col width="78">
</colgroup>
<tbody>
<tr>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" width="86" height="19" align="LEFT">
<b>
<font face="Calibri,Calibri" color="#000000">empID</font>
</b>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" width="116" align="LEFT">
<b>
<font face="Calibri,Calibri" color="#000000">last_name</font>
</b>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" width="110" align="LEFT">
<b>
<font face="Calibri,Calibri" color="#000000">first_name</font>
</b>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" width="78" align="LEFT">
<b>
<font face="Calibri,Calibri" color="#000000">dept_num</font>
</b>
</td>
</tr>
<tr>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" height="18" align="RIGHT" sdval="201" sdnum=
"1033;">
<font face="Calibri,Calibri" color="#000000">201</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT">
<font face="Calibri,Calibri" color="#000000">Zhang</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT">
<font face="Calibri,Calibri" color="#000000">Jing</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="RIGHT" sdval="20" sdnum=
"1033;">
<font face="Calibri,Calibri" color="#000000">20</font>
</td>
</tr>
<tr>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" height="17" align="RIGHT" sdval="205" sdnum=
"1033;">
<font face="Calibri,Calibri" color="#000000">205</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT">
<font face="Calibri,Calibri" color="#000000">Jung</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT">
<font face="Calibri,Calibri" color="#000000">Mary</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="RIGHT" sdval="20" sdnum=
"1033;">
<font face="Calibri,Calibri" color="#000000">20</font>
</td>
</tr>
<tr>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" height="17" align="RIGHT" sdval="229" sdnum=
"1033;">
<font face="Calibri,Calibri" color="#000000">229</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT">
<font face="Calibri,Calibri" color="#000000">Lee</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT">
<font face="Calibri,Calibri" color="#000000">Michael</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="RIGHT" sdval="10" sdnum=
"1033;">
<font face="Calibri,Calibri" color="#000000">10</font>
</td>
</tr>
</tbody>
</table>
<br>
<div style="text-align: left;">DepartmentTable</div>
<table frame="VOID" cellspacing="0" cols="3" rules="NONE" border="0">
<colgroup>
<col width="86">
<col width="86">
<col width="86">
</colgroup>
<tbody>
<tr>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" width="86" height="19" align="LEFT">
<b>
<font face="Calibri,Calibri" color="#000000">dept_num</font>
</b>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" width="86" align="LEFT">
<b>
<font face="Calibri,Calibri" color="#000000">dep_nam</font>
</b>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" width="86" align="LEFT">
<font color="#000000">
<b>dep_location</b>
</font>
</td>
</tr>
<tr>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" height="18" align="RIGHT" sdval="20" sdnum=
"1033;">
<font face="Calibri,Calibri" color="#000000">10</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT">
<font face="Calibri,Calibri" color="#000000">Executive</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT">
<font color="#000000">Building 1</font>
</td>
</tr>
<tr>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" height="17" align="RIGHT" sdval="20" sdnum=
"1033;">
<font face="Calibri,Calibri" color="#000000">20</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT">
<font face="Calibri,Calibri" color="#000000">Marketing</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT">
<font color="#000000">Building 2</font>
</td>
</tr>
<tr>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" height="17" align="RIGHT" sdval="10" sdnum=
"1033;">
<font face="Calibri,Calibri" color="#000000">30</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT">
<font face="Calibri,Calibri" color="#000000">Accounting</font>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT">
<font color="#000000">Building 3</font>
</td>
</tr>
<tr>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" height="17" align="LEFT">
<b>
<font face="Calibri,Calibri" color="#000000">
<br>
</font>
</b>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT">
<b>
<font face="Calibri,Calibri" color="#000000">
<br>
</font>
</b>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT">
<b>
<font face="Calibri,Calibri" color="#000000">
<br>
</font>
</b>
</td>
</tr>
</tbody>
</table>
</div>
</section>
<section>
<h2>Metadata</h2>
<div>
<br>
</div>
<div>Data about the data. </div>
<div>
<br>
</div>
<div>This could be data about the structure of the database, such as: names of tables, names of columns, properties of the fields and so on...</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>Metadata could also include more information about the origins of the data, such as time of collection, context and others.</div>
</section>
<section>
<h2>Database management System </h2>
<div>(DBMS)</div>
<div>
<br>
</div>
<div>A complex software application that enables the creation, processing and management of databases.</div>
<div>
<br>
</div>
<div>
<br>
</div>
</section>
<section>
<h2>Functions of a DBMS</h2>
<div>
<div style="font-size: 35.87535858154297px; font-style: normal; font-variant: normal;">
<br>
</div>
<div style="font-style: normal; font-variant: normal;">
<ul style="font-size: 35.87535858154297px;">
<li>Create database and tables</li>
<li>Create supporting structures (eg indexes)</li>
<li>Read database data</li>
<li>Modify data</li>
<li>Maintain database structure</li>
<li>Enforce rules</li>
<li>Control concurrency</li>
<li>Provide security</li>
<li>Perform backup and recover</li>
</ul>
<br>
<div style="text-align: left;">
<font style="font-size: 18px;">Kroenke and Auer (2011), Database Concepts.</font>
</div>
</div>
</div>
</section>
<section>
<h2>Application Programs</h2>
<div>
<br>
</div>
<div>Communicate with the DBMS to:</div>
<div>
<br>
</div>
<div>
<ul>
<li>Create and process forms</li>
<li>Process user queries</li>
<li>Create and process reports</li>
<li>Execute application logic</li>
<li>Control application</li>
</ul>
<div style="text-align: left;">
<br>
</div>
</div>
<div style="text-align: left;">
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div style="text-align: left;">DBMS, such as Access, may include applications that carry out these tasks</div>
</blockquote>
</div>
</section>
<section>
<h2>Personal vs.Enterprise Database Systems</h2>
<br>
<div>
<font style="font-size: 32px;">Personal:</font>
</div>
<br>
<div>
<font style="font-size: 32px;">Usually reserved for a defined and small number of data types and uses. For example: lab research on particular results of a certain type of experiments;
database for small retail business; and so on...</font>
</div>
<div>
<font style="font-size: 32px;">
<br>
</font>
</div>
<div>
<br>
</div>
</section>
<section>
<h2> Personal Vs. Enterprise Database Systems </h2>
<br>
<p>
<font style="font-size: 32px;">
<font>Enterprise:<br>
</font>
</font>
<font style="font-size: 32px;">
<span>More complex system that support large number of tables and operations. Usually will have different applications communicating with the DBMS.</span>
</font>
</p>
</section>
<section>
<h2>Enterprise Level Database System</h2>
<div>
<img src="http://management-class.co.uk/public_html/courseware/learner_support/images/ist210image.jpg" style="width: 617.7190304366197px; height: 435.5367965987234px; max-height: none;
max-width: none;">
<br>
</div>
<div>
<font style="font-size: 18px;">
</font>
</div>
<div>
<font style="font-size: 18px;">Image from: http://management-class.co.uk/public_html/courseware/learner_support/images/ist210image.jpg</font>
<br>
</div>
</section>
</div>
</div>
<script src="revealjs/lib/js/head.min.js"></script>
<script src="revealjs/js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'revealjs/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'revealjs/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'revealjs/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'revealjs/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'revealjs/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'revealjs/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
</body>
</html>