NitBravoA92 / vet-clinic-database

This project consists of the creation of the schema and all the necessary queries for a database of a veterinary clinic using postgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vet Clinic Database Project

πŸ“— Table of Contents

πŸ“– Vet Clinic Database

Vet Clinic Database consists of the creation of the schema and all the necessary queries for a database of a veterinary clinic using postgreSQL

πŸ›  Built With

Tech Stack

Database

Key Features

  • Creating a database using the sql 'CREATE DATABASE' statement.
  • Creating a table using the sql 'CREATE TABLE' statement.
  • Using the 'INSERT INTO' sql statement to record data in a table.
  • Using the 'SELECT' sql statement to query data from a table.
  • Using aggregate functions like COUNT, MAX, MIN and AVG.
  • Using SQL transactions
  • Use of JOINs clauses
  • Working with join tables

(back to top)

πŸ’» Getting Started

To get a local copy up and running, follow these steps.

Prerequisites

In order to run this project, you must have installed and configured the following tools in your local environment:

  • PostgreSQL

Setup

You must ensure that you have the postgreSQL installed and the server is started before continuing.

First clone this repository to your desired folder:

  git clone git@github.com:NitBravoA92/vet-clinic-database.git

Now, you need to create a database called vet_clinic.

Usage

In the command line, execute the following commands one by one in the same order as below:

Note: On all commands, you must replace the username with your database's username and path/to/the/project-folder/ with the path to the project folder in your local environment.

  psql -U username -d vet_clinic -f path/to/the/project-folder/schema.sql;

Running the above command will create a table named animals within it.

  psql -U username -d vet_clinic -f path/to/the/project-folder/data.sql

Running the above command will insert four new records into the animals table.

  psql -U username -d vet_clinic -f path/to/the/project-folder/queries.sql

When executing the above command, a series of queries will be made to the animals table.

πŸ‘₯ Authors

πŸ‘€ Nitcelis Bravo

(back to top)

πŸ”­ Future Features

Describe 1 - 3 features you will add to the project.

  • Update animals table records.
  • Add other tables to the database with different queries
  • Add "join tables"
  • Create database performance audit
  • Create database schema diagram

(back to top)

🀝 Contributing

Contributions, issues, suggestions and feature requests are welcome! Feel free to check the issues page.

To do Contributions, please fork this repository, create a new branch and then create a Pull Request from your branch. You can find detailed description of this process in: A Step by Step Guide to Making Your First GitHub Contribution by Brandon Morelli

(back to top)

⭐️ Show your support

If you liked this project, give me a "Star" (clicking the star button at the beginning of this page), share this repo with your developer community or make your contributions.

(back to top)

πŸ™ Acknowledgments

I would like to thank my Microverse teammates for their support. They have supported me a lot in carrying out this project, giving me suggestions, good advice and solving my code doubts.

(back to top)

πŸ“ License

This project is MIT licensed.

(back to top)

DATABASE SCHEMA DIAGRAM

vet_clinic database schema diagram

(back to top)

About

This project consists of the creation of the schema and all the necessary queries for a database of a veterinary clinic using postgreSQL

License:MIT License


Languages

Language:PLpgSQL 100.0%