Question: Please write a sql code according to this mapping. ER DIAGRAM MAPPING - CUSTOMER [cust id, name , surname, adress, phone_number] - STAFF [staff id,
Please write a sql code according to this mapping. 
ER DIAGRAM MAPPING - CUSTOMER [cust id, name , surname, adress, phone_number] - STAFF [staff id, name, surname, hire_date, inventory_id] inventory_id is FK refers to INVENTORY - PRODUCTS[product id, product_name, colour, brand_name, price, category name] - INVENTORY[inventory id, quantity] - HAS [inventory id, product id] inventory_id is FK refers to inventory, product_id is FK refers to PRODUCT - PLACES[customer id, order id] customer_id is FK refers to CUSTOMER, order_id is FK refers to ORDER - INCLUDES[product id, order id] product_id is FK refers to PRODUCT, order_id is FK refers to ORDER - ORDER[customer id, staff id, _product_id, order id, order date, payment_type, total_amount] cust_id is FK refers to CUSTOMER, staff_id is FK refers to STAFF, product_id is FK refers to PRODUCT - BAGS[product id ] product id is FK refers to PRODUCT - SHOES[product_id,_shoe_size] product_id is FK refers to PRODUCT
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
