This template should be used for database related projects at Microverse. Generate your own repository, update this README and edit all files content while working on projects. You should not be adding any new files unless asked otherwise.
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!
- 📖 About the Project
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- ❓ FAQ
- 📝 License
[Vet Clinic] use a relational database to create the data structure for a vet clinic. It started with one table complete with data about:
- animals
- animals' owners
- clinic employees
- visits
Apart from building data structure, it have SQL queries to answer specific questions about date.
Client
Server
Database
- [The schema.sql contain the query to create the vet_clinic database and the animal table]
- [The data.sql contain the queries to insert the data]
- [The queries.sql contains some query examples, transactions and specific queries to answer some questions]
To get a local copy up and running, follow these steps.
In order to run this project you need to install the following:
- PostgreSQL: you can download it from here.
- Code editor
- Git: to clone the repo you need to have Git in your machine, here you can see the installation process.
Clone this repository to your desired folder:
cd my-folder
git clone https://github.com/Zven94/vet_clinic
This project don't need any speciall installation
To run the project, you need to create a new data base and access to it with the following commands in your command line:
psql
CREATE DATABASE vet_clinic
\c vet_clinic
Copy and paste the queries from schema.sql
and after the data.sql
in that order.
To see the whole information in the table run the following command and also copy and pase each query on the queries.sql
file to see the differents outpouts:
SELECT * from animals;
This project can't be deployed for any who aren't the owner.
👤 Nico
👤 Alex
- GitHub: @alexmedinasf
👤 Andy
- GitHub: @Dachrono
- Create animals' owners, clinic employees and visits tables
- [Query multiple tables]
- [Add join table for visits]
- Database performance audit
- Add database schema diagram
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project...
I would like to thank...
-
[Question_1]
- [Answer_1]
-
[Question_2]
- [Answer_2]
This project is MIT licensed.
NOTE: we recommend using the MIT license - you can set it up quickly by using templates available on GitHub. You can also use any other license if you wish.