Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write SQL queries for the C) Find the maximum price of a pizza served by each pizzeria under $25.00 d) Find all pizzerias that are

image text in transcribed

write SQL queries for the

C) Find the maximum price of a pizza served by each pizzeria under $25.00

d) Find all pizzerias that are frequented by only males. Hint: There may be pizzerias frequented by both males and females.

Consider a database with the following schema: Person (name, age, gender) name is a key Frequents (name, pizzeria) (name, pizzeria) is a key Eats (name, pizza ) Serves (pizzeria, pizza, price) (pizzeria, pizza) is a key (name, pizza) is a key Write relational algebra expressions for the following queries. Each pizza comes only with one topping: 7 8 a) Find the names of all females who eat either mushroom or pepperoni pizza (or both) b) Find the names of all females who eat both mushroom and pepperoni pizzas. 2018/5/17 13:28

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

Step: 3

blur-text-image

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 In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

Question What is a Roth 401(k) feature?

Answered: 1 week ago