w3resource
SQL exercises

SQL Exercises: Find the number of products with a price more than or equal to Rs.350

SQL Aggregate Functions: Exercise-22 with Solution

Write a SQL query to find the number of products with a price more than or equal to Rs.350.

Sample table: item_mast


Sample Solution:

SELECT COUNT(*) AS "Number of Products" 
  FROM item_mast 
    WHERE pro_price >= 350;

Sample table: item_mast


Output:

SQL Join Exercise

Query Visualization:

Duration:

Query visualization of Find the number of products with a price more than or equal to Rs.350 - Duration

Rows:

Query visualization of Find the number of products with a price more than or equal to Rs.350 - Rows

Cost:

Query visualization of Find the number of products with a price more than or equal to Rs.350 - Cost

Practice Online


Have another way to solve this solution? Contribute your code (and comments) through Disqus.

Previous: Write a SQL query to calculate the average price of all the products.
Next: Write a SQL query to display the average price of each company's products, along with their code.

What is the difficulty level of this exercise?



New Content: Composer: Dependency manager for PHP, R Programming