Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem1 [15'- 3'5 The local bar, Pete's Bar, maintains a database with the following tables, Customers (Email, Name, Age) Beers (ID, Name, Time, Brewery, Price)

image text in transcribed

Problem1 [15'- 3'5 The local bar, Pete's Bar, maintains a database with the following tables, Customers (Email, Name, Age) Beers (ID, Name, Time, Brewery, Price) Orders (Eil ID, Date) Answer the following queries in SQL 1. What is the full name of the customer with email"adamOgmail.com" 2. Which beers (names of the beers) cost less than 4.00; 3. Find all the beers whose name ends with "lager Which beers did the customer, whose email is adamOgmail.com, order in Septem ber 2017 (Assume that the attribute date is a number represented as YYYYM- MDD withe property that later dates will always have a larger value than earlier dates.); 5. List the number of distinct beers ordered by the customer, whose email address is adam@gmail.com

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

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

What is an industry?

Answered: 1 week ago