https://github.com/hfg43/vet_clinic_db
https://github.com/hfg43/vet_clinic_db
database postgresql
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/hfg43/vet_clinic_db
- Owner: HFG43
- License: mit
- Created: 2023-08-15T01:01:33.000Z (almost 3 years ago)
- Default Branch: develop
- Last Pushed: 2023-08-22T17:08:14.000Z (almost 3 years ago)
- Last Synced: 2025-04-24T06:53:06.509Z (about 1 year ago)
- Topics: database, postgresql
- Language: PLpgSQL
- Homepage:
- Size: 67.4 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
README
# π Table of Contents
- [π About the Project](#about-project)
- [π Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [π Live Demo](#live-demo)
- [π» Getting Started](#getting-started)
- [Setup](#setup)
- [Prerequisites](#prerequisites)
- [Usage](#usage)
- [Run tests](#run-tests)
- [Deployment](#triangular_flag_on_post-deployment)
- [π₯ Authors](#authors)
- [π Future Features](#future-features)
- [π€ Contributing](#contributing)
- [βοΈ Show your support](#support)
- [π Acknowledgements](#acknowledgements)
- [π License](#license)
Vet Clinic is a project where I put in practice the use of PGSQL, by generating an animals database.
**[Vet Clinic]** is a first project usign PGSQL to practice creating Tables, making queries for individual and multiple tables, and to generate a performance audit.
Database
- **[Use Gitflow]**
- **[Create a Relational dataBase using PostgreSQL]**
- **[Create a Table and insert data]**
- **[Make different SQL queries]**
- **[Use Transaction to ensure safe inserts, updates & deletions]**
- **[Use Agregation for SQL queries]**
- **[Make queries for multiple tables]**
- **[Add Join table for visits]**
- **[Add many to many relationships]**
- **[Use nested queries]**
- **[Performance Audite]**
This repository includes files with plain SQL that can be used to recreate a database.
### Prerequisites
In order to run this project you need to have PostgreSQL installed:
Linux:
`sudo apt-get install postgresql`
Windows:
`https://www.postgresql.org/download/windows/`
### Setup
Clone this repository to your desired folder:
cd my-folder
git clone https://github.com/HFG43/Vet_clinic_db
### Usage
To run the project, execute the following command:
```sh
CREATE DATABASE vet_clinic;
```
After creating the DataBase use [schema.sql](./schema.sql) to create animals table.
```sh
CREATE TABLE table_name(
column1 datatype,
columnN datatype
);
```
Use [data.sql](./data.sql) to populate tables with sample data.
```sh
INSERT INTO animals VALUES (column1, ...columnN);
```
Check [queries.sql](./queries.sql) for examples of queries that can be run on a newly created database.
```sh
SELECT [define column(n) or use * to select all] FROM animals WHERE [CONDITION];
```
To run tests, run the following command:
No tests available yet.
### Deployment
No Deployment available
π€ **HernΓ‘n GΓΌemes**
- GitHub: [@githubhandle](https://github.com/HFG43)
- Twitter: [@twitterhandle](https://twitter.com/HFG_43)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/hern%C3%A1n-g%C3%BCemes-a440591b/)
π€ **Andrea Manuel**
- GitHub: [@AndreaM2429](https://github.com/AndreaM2429)
- Twitter: [@AndreaManuelOr1](https://twitter.com/AndreaManuelOr1)
- LinkedIn: [Andrea Manuel](https://www.linkedin.com/in/andreamanuel24/)
- [ ] **[Generate a performance audit]**
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](../../issues/).
If you like this project you could clone the repo and work with it or do the changes in a new branch. Also you could let a message with your thoughts.
I would like to thank Microverse for providing the necessary resources for this project.
This project is [MIT](./LICENSE) licensed.