Sql-Project

๐Ÿฝ๏ธ 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!