MosDevx / human-clinic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ“— Table of Contents

πŸ“– [human_clinic database]

human_clinic database is a project that includes database queries to create human_clinic database.

πŸ›  Built With

Tech Stack

Database

Key Features

  • Create tables for databae
  • Populate tables with sample data
  • Run relavent queries to fetch data from database

(back to top)

πŸ’» Getting Started

This repository includes files with plain SQL that can be used to recreate 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.

Important note: this file might include queries that make changes in the database (e.g., remove records). Use them responsibly!

Prerequisites

  • Postgresql@14:

To install run:

 brew install postgresql@14

Setup

Clone this repository to your desired folder:

  cd my-folder
  git clone git@github.com:shella12/vet_clinic_db.git

Usage

To run the project, start the Postgresql server first, connect with vet_clininc database and execute the following commands on terminal:

  $ brew services restart postgresql@14
  $ psql postgres

  postgres=# CREATE DATABASE vet_clininc;
  CREATE DATABASE

  postgres=# \c vet_clininc;
  CREATE DATABASE

Exit sql by running

postgres=# \q

Reconnect with database by

$ psql clinic

(back to top)

πŸ‘₯ Authors

πŸ‘€ Ayesha Arshad

πŸ‘€ Moses Wamae

🀝 Future Features

  • Add Join queries
  • Add multiple tables

(back to top)

🀝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

Give a ⭐️ if you like this project!

(back to top)

❓ FAQ

  • [Why use this repository app?]

    • [To create database for vet_clinic]

(back to top)

About