Bird
0
0

Which of the following is the correct syntax to filter rows where Price is less than 50?

easy📝 Syntax Q3 of 15
C Sharp (C#) - LINQ Fundamentals

Which of the following is the correct syntax to filter rows where Price is less than 50?

ASELECT * FROM Products WHERE Price LESS 50;
BSELECT * FROM Products WHERE Price = < 50;
CSELECT * FROM Products WHERE Price < 50;
DSELECT * FROM Products WHERE Price IS LESS THAN 50;
Step-by-Step Solution
Solution:
  1. Step 1: Review correct SQL comparison syntax

    The less than operator is < and is used as 'Price < 50' in WHERE clause.
  2. Step 2: Identify syntax errors in other options

    SELECT * FROM Products WHERE Price = < 50; has wrong operator usage, C and D use invalid keywords not recognized in SQL.
  3. Final Answer:

    SELECT * FROM Products WHERE Price < 50; -> Option C
  4. Quick Check:

    Use < operator for less than in WHERE [OK]
Quick Trick: Use <, >, = operators directly in WHERE [OK]
Common Mistakes:
MISTAKES
  • Using = < instead of <
  • Writing 'LESS' instead of <
  • Using 'IS LESS THAN' which is invalid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

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