Last updated about 3 years ago
Databases
Resources
RDBMS Notes
Terminology
-
Tables - Collection of entities
-
Columns - Single Attribute
-
Rows - Single Entity (Record)
Normalization
Denormalization
Multiplicity (Foreign Relations)
-
One to One
-
One to Many
- Key stored in “Many” table
-
Many to Many
- Requires extra table to hold relations (junction table)
JOINS
Assume tables A and B with some primary-foreign key relationship.
-
A Inner Join B: Only records in A and B that match (intersection)
-
A Left Join B: All records in A + matching records in B (A + intersection)
-
A Right Join B: All records in B + matching records in A (B + intersection)
-
A Outer Join B: All records in A + All records in B (union)
-
A Cross Join B (Cartesian Product): All records in A x All records in B
Transaction
a logical unit of work against a database which may spread across one or more operations.
Database Implementations
-
Sqlite
-
Postgres
-
MySQL
-
VoltDB
-
Scylla
-
Redis
-
MongoDB
-
Realm
-
Neo4j
-
ArrangoDB
-
CouchDB
-
Cassandra
-
CockroachDB
-
DynamoDB (Amazon)
-
OracleDB (JSON/RDBMS)
-
Firebase Cloud Store
-
Firebase Realtime Store
-
InfluxDB
-
IndexDB (Browser)