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: Lesson1.md
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,30 @@ In this class, students will be introduced to relational data terminology (row,
4
4
5
5
Objective: Students should be able to retrieve data from a database table using SELECT statements that include WHERE, GROUP BY, and ORDER BY.
6
6
7
+
## Main Topics
8
+
9
+
- The relational model of data
10
+
- The concept of a schema
11
+
- The properties of an 'entity' (or 'row')
12
+
- A basic SELECT statement
13
+
- Constructing more complex SELECT statements
14
+
7
15
## Reference Material
8
16
9
17
-[TutorialsPoint MySQL Introduction](http://www.tutorialspoint.com/mysql/mysql-introduction.htm)
10
18
-[Official MySQL Documentation](https://dev.mysql.com/doc/refman/5.7/en/)
11
19
-[Official MySQL Tutorial (pretty dense)](https://dev.mysql.com/doc/refman/5.7/en/tutorial.html)
12
-
20
+
-[Node MySQL Documentation on Github](https://github.com/mysqljs/mysql)
13
21
14
22
## Homework
15
23
16
24
Design queries that retrieve the following data sets. Compare with classmates to see if your answers were correct.
17
25
18
-
[Insert here - a set of English-language descriptions of datasets to retrieve]
26
+
- Find out how many todo items are on the list
27
+
- Find all the todo items that are marked as done
28
+
- Find all the todo items that are not marked as done
29
+
- Get all the todo items, sorted with the most recent first
30
+
- Get the single most recently added todo item
31
+
- Get all todo items about 'databases'
32
+
33
+
Build a simple Node application to connect to the class database (using `require('mysql')`). Run the above SQL statements through your Node app (either command-line input or hard-coded) and print the results on the command line.
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18,20 +18,25 @@ By the end of this module, students should have a familiarity with and basic und
18
18
- Non-relational data and NoSQL
19
19
- MongoDB as an example of a NoSQL database
20
20
21
+
## The Practice Database
21
22
22
-
## Lesson 1: Retrieving Data
23
+
The login information for the student practice database will be provided during the first class. If you don't have them, send us a message - you will need the username, password, hostname, port, and database name.
24
+
25
+
## Lesson Plan
26
+
27
+
### Lesson 1: Retrieving Data
23
28
24
29
In this class, students will be introduced to retrieving data from a MySQL database using SELECT queries.
25
30
26
31
Objective: Students should be able to retrieve data from a database table using SELECT statements that include WHERE, GROUP BY, and ORDER BY.
27
32
28
-
## Lesson 2: Practical Database Usage
33
+
###Lesson 2: Practical Database Usage
29
34
30
35
In this class, students will learn how to use more complex SQL queries to retrieve information across tables, and interact with data including write operations.
31
36
32
37
Objective: Students should be able to build CRUD functionality using SQL statements, including INSERT INTO, UPDATE WHERE, etc.
33
38
34
-
## Lesson 3: Data Models, Relationships, and Schemas
39
+
###Lesson 3: Data Models, Relationships, and Schemas
35
40
36
41
In the final week, additional theory will be covered to discuss more complex relational data. Students will learn about entity relationship modelling and how to convert these models to a database schema using normalisation and foreign-key constraints. Non-relational data will also be considered, as well as the benefits and drawbacks of relational and non-relational models.
0 commit comments