Answered You can hire a professional tutor to get the answer.
Here are each of the relations for this homework: Stores( store_id: integer, name: String, address: string) Items( item_name: String, weight: real,...
Here are each of the relations for this homework:
Stores( store_id: integer, name: String, address: string)
Items( item_name: String, weight: real, color: String)
Inventory( store_id: integer, item_name: String, price: real)
2. [8 pts] Provide the SQL that will execute these queries.
a. Find the names of stores that have every item in their inventory.
b. Find all pairs of store ids such that the store with the first id charges more for an item than the second store (second id) charges for the same item.
c. Find the ids and names of all stores which have at least one green and at least one red item in inventory.
d. For every store whose inventory contains at least one green item and at least red item, print the name and price of the most expensive item in the store.