Vet Clinic Database is a relational database, based on a real-life example, to create the data structure for a vet clinic. The database consist of data about
- Animals
- Animals's owners
- Clinic employees
- Visits
Client
- Create Database animals table to store animals' information
- Insert data to the table and perform query to it
- Update animals table by altering the rows and create more tables.
- Primary key & foreign key mechanism for joining tables to model
one-to-many
relationships. - Join tables to model
many-to-many
relationships. - Database performance audit.
In order to run this project you need:
- PostgreSQL server installed and running
- psql installed
Clone this repository to your desired folder:
git clone git@github.com:KanzaTahreem/Vet-Clinic-Database.git
cd Vet-Clinic-Database
- Connect to your PostgreSQL server with
psql
> psql
postgres=#
- Create the database
vet_clinic
postgres=# CREATE DATABASE vet_clinic;
CREATE DATABASE
- Connect to your database
vet_clinic
. Inside your current session do
postgres=# \c vet_clininc
You are now connected to database "vet_clinic" as user "postgres".
vet_clinic=#
That's it! Congratulations, you have created your database and connected to it. Next, we will add a table. Learn more at PostgreSQL: Create a database
- Use schema.sql to create all tables.
- Use data.sql to populate tables with sample data.
- Check queries.sql for examples of queries that can be run on a newly created database.
👤 Author 1
- GitHub: @KanzaTahreem
- Twitter: @kanza_tahreem
- LinkedIn: Kanza Tahreem
👤 Author 2
- GitHub: @camilovelag
- Twitter: @camilovelag
- LinkedIn: camilovelag
- Add more data to the tables
- Perform multiple queries
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project and want to support me make cooler projects Give this project a Star.
This project is MIT licensed.