An open API service indexing awesome lists of open source software.

https://github.com/bilbottom/sql-models

Stand-alone SQL models.
https://github.com/bilbottom/sql-models

sql

Last synced: about 1 year ago
JSON representation

Stand-alone SQL models.

Awesome Lists containing this project

README

          

[![Python](https://img.shields.io/badge/Python-3.9+-blue.svg)](https://www.python.org/downloads/release/python-390/)
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
![GitHub last commit](https://img.shields.io/github/last-commit/Bilbottom/sql-models)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Bilbottom/sql-models/main.svg)](https://results.pre-commit.ci/latest/github/Bilbottom/sql-models/main)

---

# SQL Models

Stand-alone SQL models.

These can be used to enhance existing databases, or as reference material for training and learning.

Some are created by me, and others are from various sources which are credited below.

## Contents

### Date Dimension

Almost all data models can be improved by adding a calendar table which has dates over a range with useful info and such, such as weekday names.

This model extends this by including holidays and additional columns.

### [Football](sql_models/football/README.md)

The Euro 2016 football tournament.

This was built by [w3resource](https://www.w3resource.com/) and can be found at:

- [https://www.w3resource.com/sql-exercises/soccer-database-exercise/index.php](https://www.w3resource.com/sql-exercises/soccer-database-exercise/index.php)

### Human Resources

Employees, departments, and salaries.

This was built by [w3resource](https://www.w3resource.com/) and can be found at:

- [https://www.w3resource.com/sql-exercises/employee-database-exercise/index.php](https://www.w3resource.com/sql-exercises/employee-database-exercise/index.php)

### [Loans](sql_models/loans/README.md)

Loans and balances for a B2B bank.

### School

A typical school.

This was built by Microsoft and can be found at:

- [https://docs.microsoft.com/en-us/ef/ef6/resources/school-database](https://docs.microsoft.com/en-us/ef/ef6/resources/school-database)

### Website Backend

A simple website with users and events.

---

Additional databases can be found at:

- https://dzone.com/articles/collection-sql-server-sample-databases