Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please solve the following problems. Database schema: Customer(Cust id : integer, cust_name: string) relation_r_i(cust_id, item_id) Item(item id: integer, item_name: string, price: integer) Sale(bill no: integer,
Please solve the following problems.
Database schema: Customer(Cust id : integer, cust_name: string) relation_r_i(cust_id, item_id) Item(item id: integer, item_name: string, price: integer) Sale(bill no: integer, bill_date: date, qty_sold: integer) For the above schema, perform the following 1. Create the tables with the appropriate integrity constraints, insert around 10 records in each of the tables 2. Design the relationship set table to associate the relationship among the given entity set. 3. Give a count of how many products have been purchased by each customer. 4. List the total Bill details with the quantity sold, total price of the items 5. List the total Bill details with the customer name, quantity sold and total billable amount. Your report should contain the followings: 1. Introduction to the problem. 2. Problem statement. 3. Designed database (i.e., Relational or Entity Relationship model) 4. Submitted query at the Query processor. 5. Results/output 6. Conclusion
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started