Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Get Category By Product Price | Joining Tables
Intermediate SQL
course content

Course Content

Intermediate SQL

Intermediate SQL

1. Grouping
2. Nested Subqueries
3. Joining Tables
4. DDL and DML in SQL

bookGet Category By Product Price

Great, we have obtained the quantity of products in each category. Now we need to retrieve the categories where the products cost more than a certain amount of money.

Just a reminder that we are working with two tables.

product:

category:

And now, let's move to the task:

Task

Your task is to retrieve the unique category names that have products with a price higher than 450. Use the WHERE clause for this, where you compare 450 with the value of the price column.

Note

Please note that there should be only one column in the output - category.name. You do not include the price column in the SELECT section; you only use it in the WHERE section.

Good luck!

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 2
toggle bottom row

bookGet Category By Product Price

Great, we have obtained the quantity of products in each category. Now we need to retrieve the categories where the products cost more than a certain amount of money.

Just a reminder that we are working with two tables.

product:

category:

And now, let's move to the task:

Task

Your task is to retrieve the unique category names that have products with a price higher than 450. Use the WHERE clause for this, where you compare 450 with the value of the price column.

Note

Please note that there should be only one column in the output - category.name. You do not include the price column in the SELECT section; you only use it in the WHERE section.

Good luck!

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 2
toggle bottom row

bookGet Category By Product Price

Great, we have obtained the quantity of products in each category. Now we need to retrieve the categories where the products cost more than a certain amount of money.

Just a reminder that we are working with two tables.

product:

category:

And now, let's move to the task:

Task

Your task is to retrieve the unique category names that have products with a price higher than 450. Use the WHERE clause for this, where you compare 450 with the value of the price column.

Note

Please note that there should be only one column in the output - category.name. You do not include the price column in the SELECT section; you only use it in the WHERE section.

Good luck!

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Great, we have obtained the quantity of products in each category. Now we need to retrieve the categories where the products cost more than a certain amount of money.

Just a reminder that we are working with two tables.

product:

category:

And now, let's move to the task:

Task

Your task is to retrieve the unique category names that have products with a price higher than 450. Use the WHERE clause for this, where you compare 450 with the value of the price column.

Note

Please note that there should be only one column in the output - category.name. You do not include the price column in the SELECT section; you only use it in the WHERE section.

Good luck!

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 3. Chapter 2
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt