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

Discussion

A view is which of the following?

  • A.A virtual table that can be accessed via SQL commands
  • B.A virtual table that cannot be accessed via SQL commands
  • C.A base table that can be accessed via SQL commands
  • D.A base table that cannot be accessed via SQL commands

Answer: A

Correct answer: A virtual table that can be accessed via SQL commands

A view is a stored query that behaves like a table. It has a name, columns and rows, and can be queried with SELECT exactly as a table can - but it stores no data of its own, deriving its contents from the underlying tables each time it is referenced.

That is what "virtual" means here, and it is the difference from a base table, which does hold data. Views serve two purposes in practice: they hide complexity, presenting a join as a single object, and they restrict access, exposing only chosen rows and columns.

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

Post your comment

Please log in or register to post a comment.