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

Skip to content

Commit cdc13a7

Browse files
committed
update lesson plan with more details about topics
1 parent ad514a1 commit cdc13a7

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

Week1/README.md

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Lesson 1: Server setup and Basics of creation, insertion and retrieval of data
1+
# Lesson 1: MySQL and Node setup! Create, Insert and Select !
22

33
Objective : This module aims to incorporate JavaScript code to operate the MySQL database.
44
MySQL client can be used to demonstrate SQL queries however, students should know how to
@@ -71,7 +71,6 @@ const capitals = [
7171
"Madrid"];
7272
```
7373

74-
7574
### Relations = Table
7675

7776
* What is a relation (in the following sentences)?
@@ -82,28 +81,23 @@ const capitals = [
8281
Dan, 29, works in Amazon and lives in Seattle. His friend Ben who just celebrated
8382
his 24th birthday works in Facebook and lives in Redmond.
8483

85-
-
86-
8784
### DBMS implementations
8885

8986
* ** MySQL **
9087
* PostgreSQL
9188
* MongoDB (NoSQL)
9289
* Cassandra (NoSQL)
9390

94-
9591
### MySQL components
9692

9793
* MySQL server (runs as a service, default port: 3306)
9894
* mysql: monitor / terminal / client (to connect to the server and execute stuff)
9995
* mysqladmin: Administering a MySQL Server
10096

101-
102-
10397
### Create Table in MySQL
10498

105-
## Collection of rows and columns
106-
## SYNTAX
99+
#### Collection of rows and columns
100+
#### SYNTAX
107101
```
108102
CREATE TABLE table_name (column_name, column_type [, column2_name, column2_type]);
109103
```
@@ -116,30 +110,27 @@ CREATE TABLE table_name (column_name, column_type [, column2_name, column2_type]
116110
### Fill up the table in MySQL: INSERT rows
117111
A row (aka record or tuple) represents a single, implicitly structured data item in the table.
118112

119-
## SYNTAX
113+
#### SYNTAX
120114
```
121115
INSERT INTO table_name VALUES(value1, value2 [,value3,...]);
122116
```
123117
* INSERT INTO table_name VALUES(...values...)
124118
* INSERT INTO table_name (column names) VALUES(..values...)
125119
* INSERT INTO table_name SET column_name = {expr | DEFAULT}
126120

127-
128-
129121
### See the content : SELECT
130122

131123
* FROM clause : multiple tables
132124
* WHERE clause : Multiple conditions(AND, OR, NOT) Operators ( =, <>, BETWEEN, LIKE, IN)
133125
* Aggregation : SUM, AVG, COUNT
134126
* Joins : Natural join, inner join, left outer and right outer join
135-
## Simple SYNTAX for a single table
127+
#### Simple SYNTAX for a single table
136128
```
137129
SELECT */column_name FROM TABLE
138-
WHERE condition1 AND/OR
139-
condition2;
130+
WHERE condition1 [AND/OR
131+
condition2 ...];
140132
```
141133

142-
143134
### INSERT and SELECT together
144135

145136
```
@@ -152,14 +143,12 @@ FROM transferred_ employees
152143
WHERE transfer_date > '2008-01-01';
153144
```
154145

155-
156146
### Uniqueness and Keys
157147

158148
* Super key : set of columns that uniquely identify a row
159149
* Candidate key : minimal super key that can uniquely identify a row
160150
* Primary key : choice of candidate key chosen by database designer : cannot be null
161151

162-
163152
## Reference Material
164153

165154
- [TutorialsPoint MySQL Introduction](http://www.tutorialspoint.com/mysql/mysql-introduction.htm)

0 commit comments

Comments
 (0)