This repository contains a structured SQL database designed for managing restaurant operations. It includes schemas, sample data, and queries to handle various aspects of restaurant management, such as menu items, orders, customers, and staff.
- Comprehensive Schema: Covers all essential entities like Menu, Orders, Customers, and Staff.
- Sample Data: Pre-populated data for testing and demonstration purposes.
- Efficient Queries: Includes common queries for data retrieval and management.
- Scalable Design: Easily extendable to accommodate additional features or entities.
- Database: SQL (Structured Query Language)
- DBMS Compatibility: MySQL, PostgreSQL, SQLite
- A SQL-compatible database management system (e.g., MySQL, PostgreSQL, SQLite)
-
Clone the repository:
git clone https://github.com/gilianb/Database_restaurant_SQL.git cd Database_restaurant_SQL -
Set up the database:
- Open your SQL database client.
- Execute the
schema.sqlfile to create the database structure:source schema.sql;
-
Populate the database with sample data:
- Execute the
data.sqlfile:source data.sql;
- Execute the
-
Retrieve all menu items:
SELECT * FROM Menu;
-
Find orders by a specific customer:
SELECT * FROM Orders WHERE customer_id = 1;
-
Calculate total sales:
SELECT SUM(total_amount) FROM Orders;
We welcome contributions! To contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes.
- Push to your fork and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or suggestions, please contact:
- Gilian B.
- GitHub: @gilianb
⭐ If you find this project useful, please consider giving it a star! ⭐