You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-3Lines changed: 31 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,27 @@ Lectures and homework centers around an online store (products, manufacturers, c
5
5
6
6
7
7
## Course Description
8
-
----------------------
8
+
9
+
This course is an introduction to Database Design and Structured Query Language (SQL). Stu- dents will be exposed to relational databases including table design, relationships, dependencies, and normalization forms. Additionally, the course will cover data modeling using Entity-Relation (ER) models. Data models found in business, medicine, biology, and science will be considered.
10
+
9
11
This course is an introduction to Database Design and Structured Query Language (SQL). Students will be exposed to relational databases including table design, relationships, dependencies, and normalization forms. Additionally, the course will cover data modeling using Entity-Relation (ER) models. Data models found in business, medicine, biology, and science will be considered.
10
12
13
+
14
+
DSC 301 is required for Data Science major and also counts toward data science and computer science minors. DSC 301 satisfies an Advanced Studies requirement in the Core.
15
+
16
+
11
17
## Learning Outcomes
12
-
---------------------
18
+
19
+
1. Recognize the utility of databases in the modern era
20
+
2. Define and identify the main characteristics of relational databases
21
+
3. Select, insert, update, and delete database records using SQL
22
+
4. Summarize data using SQL aggregate functions
23
+
5. Combine and manipulate data from multiple related tables using various table joins with one-to-one, one-to-many, and many-to-many relationships
24
+
6. Create data models to aid in the design process and to communicate design
25
+
7. Design database(s) that ensure data integrity and consistency by applying normalization rules
26
+
8. Write efficient queries, optimize a database, and apply performance tuning techniques including: creating indexes and writing stored procedures.
27
+
9. Create stored programs, triggers, events, transactions, and views
28
+
13
29
14
30
Upon successful completion of this course, students will be able to:
15
31
1. Describe the structure of relational databases
@@ -20,7 +36,7 @@ Upon successful completion of this course, students will be able to:
20
36
6. Combine and manipulate data from multiple tables across a database
21
37
22
38
## Topics
23
-
----------------------
39
+
24
40
The course will cover
25
41
1. Relational database management systems (RDBMS)
26
42
2. Table design, including primary/foreign keys, and referential data integrity
@@ -32,3 +48,15 @@ Selecting, inserting, updating, and deleting data Summarizing and grouping data
# Final Exam for Introduction to database design and SQL
2
+
3
+
__Directions__ Questions 1 - 5 are short answer. Questions 6 - 10 require writing SQL statements using the Flights and Store database. Upload this file in .md or .sql format.
4
+
5
+
1. What is SQL an acryomn for? Do the same for the following acryomns. DQL, DML, DDL, DBMS, ANSI, ACID.
6
+
7
+
2. What are the "5-V's" of data?
8
+
9
+
3. What is a primary key? Give an example of a natural key and a surrogate key?
10
+
11
+
4. State at least two rationale for normalizing tables.
12
+
13
+
5. Is SQL case-sensitive?
14
+
15
+
6. Select all flights from Seattle that depart late heading to Dallas (DFW).
16
+
17
+
7. Determine flights to all cities excpet CLT, DFW, and ERW that arrived late. Limit your results to 100.
18
+
19
+
8. Using the conversion, 1 mile = 1.6 kilometers, determine the mean distance of all flights to on Christmas (12/25) in kilometers.
20
+
21
+
9. List product id that have "bird" in their name or description.
22
+
23
+
10. List all customers that bought books (even if there are not any, write the SQL statements that would produce the results).
`main.tex` is the control file. Directory `sets` contains homework problem sets sequential numbered to match the order of presented in the course. The `listings` package used to typeset programming code (i.e., SQL syntax) is contained in the `coding.tex` file. Colors and frame box packages are also included in `coding.tex`.
4
+
5
+
6
+
## Directory Structure and Contents
7
+
```
8
+
|-- readme.md (this file)
9
+
|-- HW2.pdf
10
+
|-- HW3.pdf
11
+
|-- HW4.pdf
12
+
|-- HW5.pdf
13
+
|-- HW6.pdf
14
+
|-- HW7.pdf
15
+
|-- HW8.pdf
16
+
|-- HW9.pdf
17
+
| |-- solutions
18
+
| | |-- HW2-sols.pdf
19
+
| | |-- HW3-sols.pdf
20
+
| | |-- HW4-sols.pdf
21
+
| | |-- HW5-sols.pdf
22
+
| | |-- HW6-sols.pdf
23
+
| | |-- HW7-sols.pdf
24
+
| | |-- HW8-sols.pdf
25
+
| | |-- HW9-sols.pdf
26
+
| |-- latex
27
+
| | |-- 2.tex
28
+
| | |-- 3.tex
29
+
| | |-- 4.tex
30
+
| | |-- 5.tex
31
+
| | |-- 6.tex
32
+
| | |-- 7.tex
33
+
| | |-- 8.tex
34
+
| | |-- 9.tex
35
+
```
36
+
37
+
38
+
## Source file parameters
39
+
You will need to edit the file settings specific the course and homework. These parameters start on Line 2 of `main.tex`.
0 commit comments