Over 10 Million Study Resources Now at Your Fingertips


Download as :
Rating : ⭐⭐⭐⭐⭐
Price : $10.99
Language:EN
Pages: 2

Chapter using simple functions select product

Chapter 4: Using Simple Functions 127

SELECT product_type_id, AVG(price)
FROM products
WHERE price < 15
GROUP BY product_type_id
HAVING AVG(price) > 13
ORDER BY product_type_id;

PRODUCT_TYPE_ID AVG(PRICE)
--------------- ----------
3 13.24
13.49
2 14.45

Summary
In this chapter, you have learned the following:

■ Groups of rows may be filtered using the HAVING clause.

In the next chapter, you’ll learn about dates and times.

How It Works
Login account
Login Your Account
Add to cart
Add to Cart
Payment
Make payment
Document download
Download File
PageId: ELI4B46BCA
img
Uploaded by :
lw3d3lnd
Page 1 Preview
chapter using simple functions select product
Sell Your Old Documents & Earn Wallet Balance