Database Implementation: FF4U System Design and SQL Queries
VerifiedAdded on  2019/09/21
|19
|1403
|88
Practical Assignment
AI Summary
This assignment addresses the database design and implementation for the FF4U (Food for You) system, a food delivery service. The solution begins with user creation, specifically creating a user named MARKERTL with appropriate privileges for database interaction. It then proceeds to define and create a comprehensive set of tables, including Certificate, Suburb, Restaurant, Restaurant_Certification, Customer, Driver, Dish, Orders, and Ordered_Dish, each with specific attributes and constraints to ensure data integrity. Data insertion scripts are also provided to populate the tables with sample data. Furthermore, the assignment includes the creation of ten different SQL views (ViewA through ViewJ), each designed to retrieve specific information from the database, such as order details, dishes meeting certain criteria (e.g., 'Green' EFRating and 'Organic' certification), restaurant details, and order statistics. These views demonstrate the use of joins, filtering, and aggregation functions to extract valuable insights from the database. The solution showcases a practical application of database design principles and SQL query writing for a real-world business scenario.
1 out of 19