Bird
0
0

Given the table Employees with columns Name and Salary, what rows will this query return?

medium📝 query result Q13 of 15
C Sharp (C#) - LINQ Fundamentals

Given the table Employees with columns Name and Salary, what rows will this query return?

SELECT Name FROM Employees WHERE Salary < 50000;
AEmployees with salary less than 50000
BEmployees with salary greater than 50000
CAll employees regardless of salary
DEmployees with salary equal to 50000
Step-by-Step Solution
Solution:
  1. Step 1: Understand the WHERE condition

    The condition Salary < 50000 means select rows where salary is less than 50000.
  2. Step 2: Interpret the query result

    The query returns only the Name column for employees meeting that condition.
  3. Final Answer:

    Employees with salary less than 50000 -> Option A
  4. Quick Check:

    WHERE Salary < 50000 filters salaries below 50000 [OK]
Quick Trick: Less than means <, so Salary < 50000 filters lower salaries [OK]
Common Mistakes:
MISTAKES
  • Confusing < with >
  • Thinking it returns all employees
  • Assuming it returns salary column too

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Sharp (C#) Quizzes