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
@@ -61,28 +60,32 @@ To understand, query, and insert information into a relational database, a techn
61
60
### Lesson
62
61
63
62
-[Slides](https://drive.google.com/open?id=1xK7_t_yJcu4RcBkj0Gv-t5uyBCNr0g4cHKqAJSxNwY0) | [Video Walkthrough of Slides](https://drive.google.com/file/d/1V0bk3fH_8PsRE3Vz4J3qe3TTiqBClT6y/view)
64
-
65
63
- Look through the rest of the links in the Materials Section. [SQL Fiddle](http://sqlfiddle.com) is the tool where you can implement your sql knowledge. Practically implement creating a database schema and perform operations on it using the tool.
66
64
67
-
####Relational Database Basics
65
+
### Relational Database Basics
68
66
69
67
- The specific problems a database solves
70
68
71
-
-Persistence of information
69
+
-Storage of information
72
70
- Centralized information
73
71
- Search stored information
74
-
- Form relationships between sets of information
72
+
- Form relationships between tables containing information
73
+
74
+
-[Common column data types](https://www.postgresql.org/docs/8.4/datatype.html#DATATYPE-TABLE)
75
+
76
+
-`varchar` (Just like **string** available in different programming languages like JS)
77
+
-`integer` (For holding Numeric Values)
78
+
-`boolean` (For storing true or false)
79
+
-`date` (stores the dates only)
80
+
81
+
#### Primary key
82
+
83
+
Every table must have a unique primary key, which is ofen a single integer column that increments automatically like a counter, but primary keys can be other types as well.
75
84
76
-
- Few basic column types
77
-
-`varchar`
78
-
-`text`
79
-
-`integer`
80
-
-`primary key`, `auto increment`
81
-
- exact type varies depending on database type
82
85
- The [four basic SQL operators](https://blog.sqlauthority.com/2008/05/13/sql-server-four-basic-sql-statements-sql-operations/) and their use
83
86
84
87
-`SELECT`
85
-
- The SELECT statement is used to select data from a database.
88
+
- The SELECT statement is used to read rows from a database table.
86
89
- selecting specific columns: \*, specific columns, AS column aliasing. Below are the syntax for the same.
87
90
```sql
88
91
SELECT*FROM table_name;
@@ -135,19 +138,7 @@ To understand, query, and insert information into a relational database, a techn
135
138
```sql
136
139
DELETE FROM table_name WHERE condition;
137
140
```
138
-
-
139
-
_The above examples are from [w3schools.](https://www.w3schools.com/sql/sql_select.asp)_
140
-
141
-
- Other types of non-relational, non-sql databases that will be encountered
- Neo4j is a graph database management system developed by Neo4j, Inc. Described by its developers as an ACID-compliant transactional database with native graph storage and processing.
- MongoDB is a document database: each record in a MongoDB collection is document. Documents are a structure composed of file and value pairs, similar to JSON objects or other mapping data types.
150
-
- [streaming(cassandra)](https://dzone.com/articles/cassandra-sink-for-spark-structured-streaming): Give the read to this article so that you can get idea about cassandra which is another non-sql database. You can even try out the code given in the article later to get complete understanding.
141
+
_The above examples are from [w3schools.](https://www.w3schools.com/sql/sql_select.asp)_
151
142
152
143
### Guided Practice
153
144
@@ -162,7 +153,7 @@ To understand, query, and insert information into a relational database, a techn
162
153
163
154
### Independent Practice
164
155
165
-
**(IMP: While working on the following activities you can refer back to the prerequisites at any point of time for better understanding.)**
156
+
**(IMPORTANT: While working on the following activities you can refer back to the prerequisites at any point of time for better understanding.)**
166
157
167
158
**Activity #1**
168
159
@@ -203,6 +194,23 @@ Solve the quizzes mentioned below
203
194
- How does SELECT command work?
204
195
- How do you model data for relational databases?
205
196
197
+
### Common Mistakes & Misconceptions
198
+
199
+
- The term "database" can mean a collection of tables, a running database application like Postgres, or a physical/virtual machine running the application . You have to consider the context for better understanding.
200
+
201
+
### Resources for Non-Relational Databases (OPTIONAL)
202
+
203
+
Different types of [non-relational databases](https://medium.com/@mark.rethana/introduction-to-nosql-databases-c5b43f3ca1cc) (non-sql databases):
- Neo4j is a graph database management system developed by Neo4j, Inc. Described by its developers as an ACID-compliant transactional database with native graph storage and processing.
- MongoDB is a document database: each record in a MongoDB collection is document. Documents are a structure composed of file and value pairs, similar to JSON objects or other mapping data types.
212
+
- [streaming(cassandra)](https://dzone.com/articles/cassandra-sink-for-spark-structured-streaming): Give the read to this article so that you can get idea about cassandra which is another non-sql database. You can even try out the code given in the article later to get complete understanding.
213
+
206
214
### Supplemental Resources
207
215
208
216
- [Medium: Omar El Gabry's Tutorials on Databases, Modeling, Design Process, & Normalization](https://medium.com/omarelgabrys-blog/database-introduction-part-1-4844fada1fb0)
0 commit comments