Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
SQL for Database Construction Questions
Using views to expose calculations: Evaluate the statement: "Views can be used to show the results of computed (derived) columns."
CHECK constraints in SQL: Judge the statement: "Common types of SQL CHECK constraints include range checks and limiting column values to allowed sets."
Data removal vs. dropping objects: Evaluate the statement: "The SQL DELETE statement is used to delete both the table structure and the table data."
Where SQL can appear: Judge the statement: "SQL statements can be embedded in triggers, stored procedures, and program code."
Counting data modification operations: Evaluate the claim: "There are three SQL data modification operations: insert, modify, and delete."
Inserting through a view and NOT NULL requirements: Assess the statement: "If any required (NOT NULL) columns are missing from the view, the view cannot be used for inserting new data."
What is a trigger? Evaluate the statement: "A trigger is a stored program that is attached to a database."
SQL Server trigger types: Judge the statement: "SQL Server does not support the BEFORE trigger."
What is a stored procedure? Evaluate the statement: "A stored procedure is a program that performs some common action on database data and is stored in the database."
SQL integrity constraints — evaluate the claim about CHECK: “The SQL CHECK constraint is fully defined by the SQL-92 standard, and it is implemented consistently by all database vendors.” State whether this statement is correct or incorrect, considering real-world cross-DBMS behavior.
Database triggers — evaluate the classification: “Three types of triggers are BEFORE, AFTER, and EXCEPTION.” State whether this statement is correct or incorrect, considering common SQL implementations and standard terminology (including INSTEAD OF for views).
Views and data storage — evaluate the assertion: “An updatable view has its own data.” Decide whether this statement is correct or incorrect, distinguishing virtual views from materialized views.
SQL DDL knowledge check — confirm the command to define a view: “Is the SQL statement used to create a view named CREATE VIEW?” Choose the best evaluation.
View definitions and GROUP BY — evaluate the statement: “Standard SQL-92 views are constructed from SELECT statements that do not contain the GROUP BY clause.” Decide if this is correct or incorrect.
Referential integrity nuance — evaluate the claim: “When a foreign-key column exists without an explicit FOREIGN KEY constraint, a ‘casual relationship’ between the two tables has been created.” Choose whether this is correct or incorrect.
Core DDL terminology — validate the command name: “The SQL MAKE TABLE command is used to construct tables, define columns, define column constraints, and create relationships.” Indicate whether this is correct or incorrect.
Definition of a SQL view — evaluate the statement: “A SQL view is a virtual table constructed from other tables or views.” Choose the best evaluation.
JOIN syntax knowledge — evaluate the claim: “SQL has a JOIN ... ON syntax that can be used to create inner joins and outer joins.” Decide whether this statement is correct or incorrect.
Stored procedures — evaluate the benefit statement: “One benefit of using a stored procedure is that it can be distributed to client computers.” Determine whether this is correct or incorrect, considering where stored procedures execute.
1
2