Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 98c8904

Browse files
committed
Expanded lesson1 plan, changes to README
1 parent 6b235dd commit 98c8904

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

Lesson1.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,30 @@ In this class, students will be introduced to relational data terminology (row,
44

55
Objective: Students should be able to retrieve data from a database table using SELECT statements that include WHERE, GROUP BY, and ORDER BY.
66

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+
715
## Reference Material
816

917
- [TutorialsPoint MySQL Introduction](http://www.tutorialspoint.com/mysql/mysql-introduction.htm)
1018
- [Official MySQL Documentation](https://dev.mysql.com/doc/refman/5.7/en/)
1119
- [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)
1321

1422
## Homework
1523

1624
Design queries that retrieve the following data sets. Compare with classmates to see if your answers were correct.
1725

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.

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,25 @@ By the end of this module, students should have a familiarity with and basic und
1818
- Non-relational data and NoSQL
1919
- MongoDB as an example of a NoSQL database
2020

21+
## The Practice Database
2122

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
2328

2429
In this class, students will be introduced to retrieving data from a MySQL database using SELECT queries.
2530

2631
Objective: Students should be able to retrieve data from a database table using SELECT statements that include WHERE, GROUP BY, and ORDER BY.
2732

28-
## Lesson 2: Practical Database Usage
33+
### Lesson 2: Practical Database Usage
2934

3035
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.
3136

3237
Objective: Students should be able to build CRUD functionality using SQL statements, including INSERT INTO, UPDATE WHERE, etc.
3338

34-
## Lesson 3: Data Models, Relationships, and Schemas
39+
### Lesson 3: Data Models, Relationships, and Schemas
3540

3641
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.
3742

0 commit comments

Comments
 (0)