Examveda

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: Option A

Solution (By Examveda Team)

Option A: A virtual table that can be accessed via SQL commands - This option correctly describes a view in SQL. A view is a virtual table based on the result-set of an SQL statement. It can be queried and manipulated using SQL commands, but it does not store data like a physical table.
Option B: A virtual table that cannot be accessed via SQL commands - This option is incorrect because views are specifically designed to be accessed via SQL commands.
Option C: A base table that can be accessed via SQL commands - This option describes a physical or base table, not a view.
Option D: A base table that cannot be accessed via SQL commands - This option is incorrect because base tables are accessed and manipulated using SQL commands.
Conclusion:
In SQL, a view is a virtual table that is created based on a SQL SELECT query. It can be queried like a regular table using SQL commands. Therefore, the correct answer is Option A: A virtual table that can be accessed via SQL commands.

This Question Belongs to Database >> Introduction To SQL

Join The Discussion

Related Questions on Introduction to SQL

The SQL WHERE clause:

A. limits the column data that are returned.

B. limits the row data are returned.

C. Both A and B are correct.

D. Neither A nor B are correct.