Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm making SQL Code and needs some help. using CAST(), aggregate functions, I want you to translate these into SQL Code. a. How many

I'm making SQL Code and needs some help.

 

using CAST(), aggregate functions, I want you to translate these into SQL Code.


a. How many products does each category have?
b. What is the average bottle size per vendor of whiskey?
c. Which categories have more than 100 products?

d. What is the average bottle size of each category?
e. What is the average bottle size per category and vendor of whiskey?
f. What is the average bottle size per category of whiskey?
g. What are the (unique) vendors that sell Tequilas?

h. What are the (unique) vendors that sell Tequilas with bottle sizes over 1500?

 

i. Explain why the b, e questions do not yield the same results.

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

Applying Communication Theory For Professional Life A Practical Introduction

Authors: Marianne Dainton, Elaine D. Zelley

4th Edition

150631547X, 978-1506315478

More Books

Students also viewed these Databases questions