Machine-translated by Google. Questions are authored in English.
Top

Discussion

The format SELECT-FROM-WHERE is the fundamental framework of SQL SELECT statements.

  • A.
    True
  • B.False

Answer: A

Correct answer: True

SELECT names the columns wanted, FROM names the source, and WHERE filters the rows. Every query is built on that skeleton, with GROUP BY, HAVING and ORDER BY added as needed.

Note that the written order and the logical order differ: the engine resolves FROM first, then WHERE, and reaches SELECT only afterwards. That is why an alias defined in the SELECT list cannot be used in the WHERE clause - at that point it does not yet exist.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.