๐ฝ๏ธ Taste Treasury - SQL Recipe Management Project Welcome to Taste Treasury! ๐งโ๐ณ๐พ This project is a comprehensive SQL-based recipe management system designed to demonstrate strong database skills including creation, manipulation, querying, and optimization of data in a culinary context. Itโs your one-stop solution for managing everything from recipe names and categories to ingredients, user reviews, and nutritional information! ๐๐
๐ Project Overview Taste Treasury simulates a recipe application database, covering all essential SQL operations โ perfect for students, developers, and data enthusiasts wanting to learn or showcase practical SQL queries and relational database concepts. ๐
๐ง Technologies Used ๐พ MySQL
๐๏ธ Relational Database Design
๐ ๏ธ SQL (DDL, DML, DCL)
๐ Key Features & SQL Commands
๐๏ธ Database Design & Table Creation Create database: CREATE DATABASE Taste_Treasury;
Create & link tables: Recipes, Categories, Ingredients, Tags, Users, Reviews, and more.
Apply constraints: PRIMARY KEY, FOREIGN KEY, UNIQUE, etc.
โ๏ธ Insert, Update & Delete Operations Populate tables with meaningful data ๐ฅ
Update values dynamically ๐
Delete data (DELETE, TRUNCATE, DROP) ๐ฎ
๐ Query Operations Use of WHERE, BETWEEN, LIKE, REGEXP ๐
Retrieve sorted, filtered, and transformed data using:
ORDER BY, GROUP BY, HAVING, LIMIT
String functions: CONCAT(), SUBSTRING()
Date & Time functions: NOW()
๐ Aggregate Functions Count, Sum, Average, Max, and Round values ๐
๐ Joins & Subqueries Explore relationships via:
INNER JOIN, LEFT JOIN
Subqueries inside IN, NOT IN clauses ๐ต๏ธโโ๏ธ
๐๏ธ Views Create reusable views like RecipeNamesAndCategories for efficient data access ๐ช
๐งพ Sample Use Cases ๐ Find recipes with โCakeโ or โChocolateโ using pattern matching.
๐ Get current timestamp for recipe tracking.
๐ก Retrieve high-rated recipes or top-serving dishes per category.
๐ Search recipes using ingredients or tags.
๐ฅ Count how many reviews each user has written.
๐งน Clean up data using DELETE, TRUNCATE, or even DROP.
๐ Learning Outcomes By exploring this project,
you will:
Understand real-world database modeling with foreign key constraints.
Master SQL queries ranging from beginner to advanced.
Implement powerful filtering, transformation, and aggregation operations.
Explore database maintenance techniques like creating Views and Joins.
๐ธ Sneak Peek
โ Find all recipes that include โSugarโ as an ingredient
SELECT recipe_name FROM Recipes WHERE recipe_id IN ( SELECT recipe_id FROM Recipe_Ingredients WHERE ingredient_id IN ( SELECT ingredient_id FROM Ingredients WHERE ingredient_name LIKE โ%Sugar%โ ) );
๐ How to Use Clone the repository:
git clone https://github.com/JerishRaj/taste_treasury.git
Open in your SQL environment (like MySQL Workbench).
Run the SQL scripts step-by-step or in batches.
Modify or extend the database to suit your custom use-case!
๐ง Inspiration This project is inspired by the idea of combining food and tech to build meaningful applications. ๐ฒโจ Perfect for portfolio building, resume enhancement, or educational demos!
๐ฌ Feedback & Contributions Have ideas or improvements? Feel free to fork and contribute ๐ค. Open to collaborations and feature enhancements!
๐ Final Words Enjoy your journey through the Taste Treasury ๐ฑ๐ โ where database logic meets delicious data!