Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benawi/vet-clinic-database
A relational database used to create the initial data structure for a vet clinic
https://github.com/benawi/vet-clinic-database
postgresql
Last synced: about 5 hours ago
JSON representation
A relational database used to create the initial data structure for a vet clinic
- Host: GitHub
- URL: https://github.com/benawi/vet-clinic-database
- Owner: Benawi
- Created: 2023-07-17T13:41:48.000Z (over 1 year ago)
- Default Branch: develop
- Last Pushed: 2023-07-25T19:46:11.000Z (over 1 year ago)
- Last Synced: 2024-04-23T19:22:15.876Z (9 months ago)
- Topics: postgresql
- Language: PLpgSQL
- Homepage:
- Size: 137 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
###
π°Vet-clinic-databaseπ# π Table of Contents
- [π About the Project](#about-project)
- [π Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [π» Getting Started](#getting-started)
- [π₯ Authors](#authors)
- [π Future Features](#future-features)
- [π€ Contributing](#contributing)
- [βοΈ Show your support](#support)
- [π Acknowledgements](#acknowledgements)- [π License](#license)
# π Vet-clinic-database
This repository includes files with plain SQL that can be used to recreate a database:- Use [schema.sql](./schema.sql) to create all tables.
- Use [data.sql](./data.sql) to populate tables with sample data.
- Check [queries.sql](./queries.sql) for examples of queries that can be run on a newly created database.
## π Built With
### Vet-clinic-database [Requirements](https://github.com/microverseinc/curriculum-databases/blob/main/db-structure/sneak_peek.md)
- [x] Populate data to the table
- [x] Transactions allow making changes in isolation and rolling back if needed
- [x] Demonstrates BEGIN TRANSACTION, COMMIT, and ROLLBACK
- [x] Allows verifying changes before committing
- [x] Demonstrates deleting subsets of rows
- [x] Creates a savepoint within a transaction
- [x] Allows rolling back to a mid-transaction savepoint
- [x] Basic aggregation queries like COUNT, AVG, MIN, and MAX functions
- [x] Conditional filtering WHERE clause to filter result setg, group results by a column like animal type and apply aggregates per group
- [x] `owners` table to store owner information
- [x] `species` table to store animal species
- [x] `animals` table to store animal data, with foreign keys linking to owners and species
- [x] Queries implemented using SQL JOINS to answer questions like:
- What animals belong to an owner
- List animals by species
- List owners and their animals
- Count animals per species
- Other analytics like most owned animals
- [x] Apply types of relationships between tables
- [x] Database performance audit
### π€ Habtamu Alemayehu
- GitHub: [Benawi](https://github.com/Benawi)
- Linkdin: [Habtamu](https://www.linkedin.com/in/habtamualemayehu/)
### π€ Bwambale
- GitHub: [Benawi](https://github.com/wolterbwamabale)
- Linkdin: [Bwambale](https://www.linkedin.com/in/Bwambale-benny-wolter/)
## π Future Features
- Database performance audit.π―
Contributions, [issues](https://github.com/Benawi/Vet-clinic-database/issues), and feature requests are welcome!
Give me βοΈ If you like this project!
- I thank the Microverse program for giving us this great chance.
This project is [MIT](./MIT.md) licensed.