nerdexam
Linux_Foundation

LFCS · Question #89

Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?

The correct answer is C. WHERE. The WHERE clause in a SQL SELECT statement is used to filter rows based on specified conditions, returning only the records that satisfy the criteria.

Submitted by mateo_ar· Apr 18, 2026Service Configuration

Question

Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?

Options

  • ACASE
  • BFROM
  • CWHERE
  • DIF

How the community answered

(42 responses)
  • A
    5% (2)
  • B
    2% (1)
  • C
    88% (37)
  • D
    5% (2)

Why each option

The `WHERE` clause in a SQL `SELECT` statement is used to filter rows based on specified conditions, returning only the records that satisfy the criteria.

ACASE

`CASE` is used for conditional logic within a query to return different values based on conditions, not to filter rows.

BFROM

`FROM` specifies the table(s) from which data is retrieved, not for filtering records.

CWHERECorrect

In SQL, the `WHERE` clause is a fundamental component of the `SELECT` statement. It allows you to specify a condition that rows must meet to be included in the result set, effectively filtering the data based on the values within the records.

DIF

`IF` is a conditional function available in some SQL dialects, but `WHERE` is the standard clause for filtering rows in a `SELECT` statement.

Concept tested: SQL `SELECT` query filtering

Source: https://learn.microsoft.com/en-us/sql/t-sql/queries/select-where-from-transact-sql

Topics

#SQL#Database Queries#Data Filtering#WHERE Clause

Community Discussion

No community discussion yet for this question.

Full LFCS Practice