Querying with SQL Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Query and Analyze Data

What you'll be asked

  1. Which SQL clause is used to filter the results of a query based on a specific condition?
  2. If you want to count the total number of rows in a table named 'Employees', which query should you use?
  3. What is the primary difference between the WHERE clause and the HAVING clause?
  4. When performing a LEFT JOIN between Table A and Table B, what happens if there is no match in Table B for a row in Table A?
  5. You have a table 'Sales' with columns 'Region' and 'Revenue'. You want to find the average revenue per region, but only for regions where the total revenue exceeds 10,000. Which query structure is correct?

Answers and explanations come after you submit.