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...
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
: 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
Raleigh Department Store uses the conventional retail method for the year ended December 31, 2019. Available...
Raleigh Department Store uses the conventional retail method for the year ended December 31, 2019. Available information follows: The inventory at January 1, 2019, had a retail value of $50,000 and a cost of $36,200 based on the conventional retail method. Transactions during 2019 were as follows: Cost Retail Gross purchases $ 333,900 $ 540,000 Purchase returns 6,400 15,000 Purchase discounts 5,500 Gross sales 500,000 Sales returns 8,000 Employee discounts 5,500 Freight-in 29,000 Net markups 30,000 Net markdowns 15,000 Sales...
Raleigh Department Store uses the conventional retail method for the year ended December 31, 2019. Available...
Raleigh Department Store uses the conventional retail method for the year ended December 31, 2019. Available information follows: The inventory at January 1, 2019, had a retail value of $50,000 and a cost of $36,200 based on the conventional retail method. Transactions during 2019 were as follows: Cost Retail Gross purchases $ 333,900 $ 540,000 Purchase returns 6,400 15,000 Purchase discounts 5,500 Gross sales 500,000 Sales returns 8,000 Employee discounts 5,500 Freight-in 29,000 Net markups 30,000 Net markdowns 15,000 Sales...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT