├── .gitignore ├── .vscode └── settings.json ├── README.md ├── section-02 ├── anagram.jpg ├── build-amazon.jpg └── database.jpg ├── section-03 ├── Network-model-1.jpg ├── codd.pdf ├── columns.jpg ├── database-approach-1.jpg ├── database-approach-2.jpg ├── dbms-1.jpg ├── dbms-2.jpg ├── dbms-3.jpg ├── file-processing-system.jpg ├── hierarchical-model.jpg ├── keys.jpg ├── limitations.jpg ├── network-model-2.jpg ├── olap.jpg ├── oltp.jpg ├── query-breakdown.jpg ├── relational-model-keywords.jpg ├── relational-model.jpg ├── rows.jpg ├── sequel-1974.pdf ├── sql-standards.jpg ├── tables.jpg └── xml.jpg ├── section-04 ├── docker-compose.yml ├── postgres.env └── postgres.jpg ├── section-05 ├── current-salary.jpg ├── first-value.jpg ├── last-value.jpg ├── split-apply-combine.jpg ├── sql-commands.jpg ├── sum.jpg ├── with-index.jpg ├── with-partial-index.jpg └── without-index.jpg ├── section-07 ├── common-attributes.jpg ├── create-database.jpg ├── create-dump.jpg ├── db-side.jpg ├── erd-2.jpg ├── erd.jpg ├── lifecycle.jpg ├── pg_hba.conf └── postgresql.conf ├── section-09 ├── candidate-key.jpg ├── cinema-1.jpg ├── cinema-2.jpg ├── crowsfeet.jpg ├── delete-anomalies.jpg ├── driveme-relationships.jpg ├── driveme-subject-areas.jpg ├── entities.jpg ├── insert-anomalies.jpg ├── intermediate-entities.jpg ├── many-to-many-erd.jpg ├── many-to-many-table.jpg ├── normalised.jpg ├── normalization.jpg ├── painting-many-to-many.jpg ├── painting-relationships.jpg ├── relation-instance.jpg ├── relation-key.jpg ├── relation-schema.jpg ├── sdlc.jpg ├── summary.jpg ├── super-key.jpg └── update-anomalies.jpg └── section-14 ├── package-lock.json ├── package.json └── server.js /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/README.md -------------------------------------------------------------------------------- /section-02/anagram.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-02/anagram.jpg -------------------------------------------------------------------------------- /section-02/build-amazon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-02/build-amazon.jpg -------------------------------------------------------------------------------- /section-02/database.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-02/database.jpg -------------------------------------------------------------------------------- /section-03/Network-model-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/Network-model-1.jpg -------------------------------------------------------------------------------- /section-03/codd.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/codd.pdf -------------------------------------------------------------------------------- /section-03/columns.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/columns.jpg -------------------------------------------------------------------------------- /section-03/database-approach-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/database-approach-1.jpg -------------------------------------------------------------------------------- /section-03/database-approach-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/database-approach-2.jpg -------------------------------------------------------------------------------- /section-03/dbms-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/dbms-1.jpg -------------------------------------------------------------------------------- /section-03/dbms-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/dbms-2.jpg -------------------------------------------------------------------------------- /section-03/dbms-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/dbms-3.jpg -------------------------------------------------------------------------------- /section-03/file-processing-system.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/file-processing-system.jpg -------------------------------------------------------------------------------- /section-03/hierarchical-model.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/hierarchical-model.jpg -------------------------------------------------------------------------------- /section-03/keys.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/keys.jpg -------------------------------------------------------------------------------- /section-03/limitations.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/limitations.jpg -------------------------------------------------------------------------------- /section-03/network-model-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/network-model-2.jpg -------------------------------------------------------------------------------- /section-03/olap.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/olap.jpg -------------------------------------------------------------------------------- /section-03/oltp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/oltp.jpg -------------------------------------------------------------------------------- /section-03/query-breakdown.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/query-breakdown.jpg -------------------------------------------------------------------------------- /section-03/relational-model-keywords.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/relational-model-keywords.jpg -------------------------------------------------------------------------------- /section-03/relational-model.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/relational-model.jpg -------------------------------------------------------------------------------- /section-03/rows.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/rows.jpg -------------------------------------------------------------------------------- /section-03/sequel-1974.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/sequel-1974.pdf -------------------------------------------------------------------------------- /section-03/sql-standards.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/sql-standards.jpg -------------------------------------------------------------------------------- /section-03/tables.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/tables.jpg -------------------------------------------------------------------------------- /section-03/xml.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-03/xml.jpg -------------------------------------------------------------------------------- /section-04/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-04/docker-compose.yml -------------------------------------------------------------------------------- /section-04/postgres.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-04/postgres.env -------------------------------------------------------------------------------- /section-04/postgres.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-04/postgres.jpg -------------------------------------------------------------------------------- /section-05/current-salary.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-05/current-salary.jpg -------------------------------------------------------------------------------- /section-05/first-value.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-05/first-value.jpg -------------------------------------------------------------------------------- /section-05/last-value.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-05/last-value.jpg -------------------------------------------------------------------------------- /section-05/split-apply-combine.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-05/split-apply-combine.jpg -------------------------------------------------------------------------------- /section-05/sql-commands.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-05/sql-commands.jpg -------------------------------------------------------------------------------- /section-05/sum.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-05/sum.jpg -------------------------------------------------------------------------------- /section-05/with-index.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-05/with-index.jpg -------------------------------------------------------------------------------- /section-05/with-partial-index.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-05/with-partial-index.jpg -------------------------------------------------------------------------------- /section-05/without-index.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-05/without-index.jpg -------------------------------------------------------------------------------- /section-07/common-attributes.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-07/common-attributes.jpg -------------------------------------------------------------------------------- /section-07/create-database.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-07/create-database.jpg -------------------------------------------------------------------------------- /section-07/create-dump.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-07/create-dump.jpg -------------------------------------------------------------------------------- /section-07/db-side.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-07/db-side.jpg -------------------------------------------------------------------------------- /section-07/erd-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-07/erd-2.jpg -------------------------------------------------------------------------------- /section-07/erd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-07/erd.jpg -------------------------------------------------------------------------------- /section-07/lifecycle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-07/lifecycle.jpg -------------------------------------------------------------------------------- /section-07/pg_hba.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-07/pg_hba.conf -------------------------------------------------------------------------------- /section-07/postgresql.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-07/postgresql.conf -------------------------------------------------------------------------------- /section-09/candidate-key.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/candidate-key.jpg -------------------------------------------------------------------------------- /section-09/cinema-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/cinema-1.jpg -------------------------------------------------------------------------------- /section-09/cinema-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/cinema-2.jpg -------------------------------------------------------------------------------- /section-09/crowsfeet.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/crowsfeet.jpg -------------------------------------------------------------------------------- /section-09/delete-anomalies.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/delete-anomalies.jpg -------------------------------------------------------------------------------- /section-09/driveme-relationships.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/driveme-relationships.jpg -------------------------------------------------------------------------------- /section-09/driveme-subject-areas.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/driveme-subject-areas.jpg -------------------------------------------------------------------------------- /section-09/entities.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/entities.jpg -------------------------------------------------------------------------------- /section-09/insert-anomalies.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/insert-anomalies.jpg -------------------------------------------------------------------------------- /section-09/intermediate-entities.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/intermediate-entities.jpg -------------------------------------------------------------------------------- /section-09/many-to-many-erd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/many-to-many-erd.jpg -------------------------------------------------------------------------------- /section-09/many-to-many-table.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/many-to-many-table.jpg -------------------------------------------------------------------------------- /section-09/normalised.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/normalised.jpg -------------------------------------------------------------------------------- /section-09/normalization.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/normalization.jpg -------------------------------------------------------------------------------- /section-09/painting-many-to-many.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/painting-many-to-many.jpg -------------------------------------------------------------------------------- /section-09/painting-relationships.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/painting-relationships.jpg -------------------------------------------------------------------------------- /section-09/relation-instance.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/relation-instance.jpg -------------------------------------------------------------------------------- /section-09/relation-key.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/relation-key.jpg -------------------------------------------------------------------------------- /section-09/relation-schema.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/relation-schema.jpg -------------------------------------------------------------------------------- /section-09/sdlc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/sdlc.jpg -------------------------------------------------------------------------------- /section-09/summary.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/summary.jpg -------------------------------------------------------------------------------- /section-09/super-key.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/super-key.jpg -------------------------------------------------------------------------------- /section-09/update-anomalies.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-09/update-anomalies.jpg -------------------------------------------------------------------------------- /section-14/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-14/package-lock.json -------------------------------------------------------------------------------- /section-14/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-14/package.json -------------------------------------------------------------------------------- /section-14/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chesterheng/sql-database/HEAD/section-14/server.js --------------------------------------------------------------------------------