Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

I am paid fairly for the work I do.

Answered: 1 week ago

Question

What is job enlargement ?

Answered: 1 week ago

Question

what is the most common cause of preterm birth in twin pregnancies?

Answered: 1 week ago

Question

Which diagnostic test is most commonly used to confirm PROM?

Answered: 1 week ago