Question

In: Computer Science

Consider Retail Store database which store the details of different items available in the store and...

Consider Retail Store database which store the details of different items available in the store and the sales of these items to different customers: Schema: Item(ItemNo, ItemName, Category, UnitPrice) Sales(SalesNo, ITemNo, SalesDate, CustomerNo, Qty) Customer(CustomerNo, CustomerName, City, Income, MobileNo) Write the following queries in Relational Algebra:

a) List the No. and Name of items in ‘ABC’ category.

b) Count the No. of categories from which the items were bought by the customer ‘Mohan Kumar’

c) List the customers who has bought all the items of ‘ABC’ category

Solutions

Expert Solution

a)Select itemno, itemname from item where category='ABC' ;

b)select count(Category) from Item i , customer c, sales s where C.customerNO=S.customerno and S.itemno=i.itemno where c.customername='Mohan Kumar';

c)select c.customername from Item i , customer c, sales s where C.customerNO=S.customerno and S.itemno=i.itemno where i.category='ABC';


Related Solutions

Savemore store is a retail store that sells many different types of items and many different...
Savemore store is a retail store that sells many different types of items and many different brands. The store has plain clothes security workers who walk around the store and watch customers to monitor and limit theft of merchandise. Charley Customer enters Savemore and is seen walking down the clothing aisles looking at different clothing for sale at the store. Charley Customer has a shopping cart with him and makes his way to the registers to pay for the items...
Database Management Systems Question a. Design a simple RETAIL store records database with 3 to 4...
Database Management Systems Question a. Design a simple RETAIL store records database with 3 to 4 tables to track customer purchases of store products and answer the following questions about your database. b. Create an instance (a state) of your database.       
provide 3 different data items collected and stored in the PMS database
provide 3 different data items collected and stored in the PMS database
The following information is available for the past month for a retail store: Sales $87,000 Markups...
The following information is available for the past month for a retail store: Sales $87,000 Markups $9,000 Markdowns $9,000 Purchases (at cost) $38,800 Purchases (at retail) $107,000 Beginning inventory (at cost) $30,000 Beginning inventory (at retail) $48,186    What is the ending inventory at cost using the conventional retail method? $38,870 $164,186 $78,000 $28,570
During 2018, Pina Inc., a furniture store, issued two different series of bonds, details of which...
During 2018, Pina Inc., a furniture store, issued two different series of bonds, details of which follow: First issue: 670 $100, 10% bonds, at par, each convertible into 6 common shares. Second issue: 390 $100, 7% bonds, at par, each convertible into 3 common shares. For the year ended December 31, 2020, the company had net income of $53,850. Throughout 2020, 2,500 common shares were outstanding; none of the bonds were converted or redeemed. The company’s tax rate was 19%....
: Consider two bags in which we have balls of three different colors. Details are in...
: Consider two bags in which we have balls of three different colors. Details are in the following table. Red Yellow Green Bag A 3 5 4 Bag B 2 4 x A bag is chosen at random and then a ball is chosen. A. If the probability of green ball is 21 5, find x. B. Find the probability of Bag A and it is given that the ball chosen is green.
Discuss the strengths and weaknesses of the different employment tests that are available. Provide details for...
Discuss the strengths and weaknesses of the different employment tests that are available. Provide details for at least three different employment tests
Directions Deliverable items for this assessment will be required at different points during the course. Details...
Directions Deliverable items for this assessment will be required at different points during the course. Details for each submission are included in the directions and rubric document (linked below). This week you will be choosing your topic of interest for the Institutional Outcome Assessment. Look though the potential topic list, linked below and embedded in the Institutional Outcome Assessment Directions and Rubric document. If there’s a topic from the field of psychology that interests you, but is not on the...
Marisa Williams runs a retail grocery store and purchases items for resale to her customers. She...
Marisa Williams runs a retail grocery store and purchases items for resale to her customers. She is facing an ordering decision about how much of a particular item to purchase at one time.. in order t take advantage of supplier discounts (if it makes sense to do so). Demand = 36,000 units per year order cost = $25 per order Carrying cost = $0.45 per unit purchasing price = $0.85 Discount price= $0.82 (if buy a minimun of 6,000 units...
Database __________ which is the logical design of the database, and the database _______ which is...
Database __________ which is the logical design of the database, and the database _______ which is a snapshot of the data in the database at a given instant in time. a) Instance, Schema b) Relation, Schema c) Relation, Domain d) Schema, Instance
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT