Skip to content

Commit 60475bd

Browse files
committed
Add small suggested PR tweaks from #1396
1 parent 577c23b commit 60475bd

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

databases/relational-databases.md

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,27 @@ To understand, query, and insert information into a relational database, a techn
6565
### Relational Database Basics
6666

6767
- The specific problems a database solves
68+
6869
- Storage of information
6970
- Centralized information
7071
- Search stored information
7172
- Form relationships between tables containing information
72-
73-
- [Few basic column data types](https://www.w3schools.com/sql/sql_datatypes.asp)
73+
74+
- [Common column data types](https://www.postgresql.org/docs/8.4/datatype.html#DATATYPE-TABLE)
75+
7476
- `varchar` (Just like **string** available in different programming languages like JS)
75-
- `int` (For holding Numeric Values)
76-
- `boolean or bool` (For storing true, false or null)
77+
- `integer` (For holding Numeric Values)
78+
- `boolean` (For storing true or false)
7779
- `date` (stores the dates only)
78-
- `primary key`
79-
- exact type varies depending on database type
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.
84+
8085
- The [four basic SQL operators](https://blog.sqlauthority.com/2008/05/13/sql-server-four-basic-sql-statements-sql-operations/) and their use
8186

8287
- `SELECT`
83-
- The SELECT statement is used to select/retrieve data from a database.
88+
- The SELECT statement is used to read rows from a database table.
8489
- selecting specific columns: \*, specific columns, AS column aliasing. Below are the syntax for the same.
8590
```sql
8691
SELECT * FROM table_name;
@@ -133,7 +138,7 @@ To understand, query, and insert information into a relational database, a techn
133138
```sql
134139
DELETE FROM table_name WHERE condition;
135140
```
136-
_The above examples are from [w3schools.](https://www.w3schools.com/sql/sql_select.asp)_
141+
_The above examples are from [w3schools.](https://www.w3schools.com/sql/sql_select.asp)_
137142

138143
### Guided Practice
139144

@@ -191,19 +196,20 @@ Solve the quizzes mentioned below
191196
192197
### Common Mistakes & Misconceptions
193198
194-
- A database can be referred to as a table or collection of tables, a database server, or SQL. You have to consider the context for better understanding.
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.
195200
196201
### Resources for Non-Relational Databases (OPTIONAL)
197202
198-
- Different types of [non-relational databases](https://medium.com/@mark.rethana/introduction-to-nosql-databases-c5b43f3ca1cc) (non-sql databases):
199-
- key-value [(redis)](https://www.shellhacks.com/en/redis-set-get-key-value-redis-cli/)
200-
- Redis is a key-value database (also known as a key-value store) that uses a simple key/value method to store data.
201-
Strings are the simplest data type in Redis and are simple key/value entries.
202-
- graph [(Neo4j)](https://github.com/JNOSQL/artemis-demo/tree/master/artemis-demo-java-se/graph-neo4j)
203-
- 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.
204-
- document [(mongo)](https://docs.mongodb.com/getting-started/cpp/documents/)
205-
- 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.
206-
- [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.
203+
Different types of [non-relational databases](https://medium.com/@mark.rethana/introduction-to-nosql-databases-c5b43f3ca1cc) (non-sql databases):
204+
205+
- key-value [(redis)](https://www.shellhacks.com/en/redis-set-get-key-value-redis-cli/)
206+
- Redis is a key-value database (also known as a key-value store) that uses a simple key/value method to store data.
207+
Strings are the simplest data type in Redis and are simple key/value entries.
208+
- graph [(Neo4j)](https://github.com/JNOSQL/artemis-demo/tree/master/artemis-demo-java-se/graph-neo4j)
209+
- 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.
210+
- document [(mongo)](https://docs.mongodb.com/getting-started/cpp/documents/)
211+
- 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.
207213
208214
### Supplemental Resources
209215

0 commit comments

Comments
 (0)