SQL for Database Construction Questions

Practice SQL for Database Construction MCQs with answers and explanations. Page 1 of 2.

Category
Database
Topic
SQL for Database Construction
Page
1 / 2
Mode
Practice

Questions

Open any question to view the answer and explanation.

Stored procedures: which of the following is NOT an advantage of using stored procedures in a database system?
Open
View answer
SQL Data Definition Language (DDL): which statement is used to create a named view over one or more base tables?
Open
View answer
In SQL, what does the DROP TABLE statement do with respect to the table’s structure and data, considering referential integrity?
Open
View answer
Terminology check: a program stored inside the database that performs a common action on data is called a(n) ________.
Open
View answer
SQL constraints: which of the following is NOT a standard SQL constraint type supported by mainstream relational databases?
Open
View answer
What do we call an SQL virtual table constructed from one or more base tables using a saved SELECT definition?
Open
View answer
SQL views: for what purposes can views be used (rows/columns security and complexity hiding)?
Open
View answer
Updatable views: to update a view, the DBMS must be able to map the update to which underlying element(s)?
Open
View answer
Oracle triggers: which timing/event trigger types are supported for table/view operations?
Open
View answer
In SQL-92 compliant relational databases, views that are defined using a SELECT query have certain restrictions. Which clause is not allowed inside the defining SELECT of a view (i.e., the view's query text itself)?
Open
View answer
In relational databases, what can an SQL view hide from end users or client code?
Open
View answer
In SQL and relational databases, what do we call a stored program attached to a table or view that automatically fires in response to DML events (INSERT, UPDATE, DELETE)?
Open
View answer
Considering standard SQL, what is true about inserting rows using the SQL INSERT statement?
Open
View answer
In SQL Data Definition Language (DDL), what can the ALTER TABLE statement be used to do?
Open
View answer
Which of the following is NOT one of the common categories for SQL CHECK constraints used to limit acceptable values?
Open
View answer
What is an advantage of placing computed expressions or derived columns inside an SQL view definition?
Open
View answer
Which SQL statement creates a new base table (i.e., defines a table in the schema)?
Open
View answer
Why might you use an SQL view specifically to hide certain columns from end users?
Open
View answer
In standard SQL, which constraint type is used directly on a column or table to limit allowed values (for example, enforce a range, a list, or a comparison rule)?
Open
View answer
SQL views and updatability: Evaluate the claim: "A view that contains a computed (derived) column can be easily updated."
Open
View answer

Practice smarter

Solve a few questions daily and revisit weak topics regularly to improve accuracy.