Questions
Questions
Single choice

What is the result of the following query?  `SELECT COUNT(*) FROM employees WHERE salary > 5000;`

Options
A.Returns the sum of salaries
B.Returns the minimum salary
C.Returns the total number of employees with salary greater than 5000
D.Returns the total number of employees
View Explanation

View Explanation

Verified Answer
Please login to view
Step-by-Step Analysis
Let's parse the SQL statement and the structure of the query results to understand what is being asked. Option 1: 'Returns the sum of salaries' would be produced by an aggregate function like SUM(salary), not by COUNT(*). Since the query uses COUNT(*) with a WHERE condition, this opt......Login to view full explanation

Log in for full answers

We've collected over 50,000 authentic exam questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

Similar Questions

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!