Advanced SQL Questions

Practice Advanced SQL MCQs with answers and explanations. Page 1 of 2.

Category
Database
Topic
Advanced SQL
Page
1 / 2
Mode
Practice

Questions

Open any question to view the answer and explanation.

Database Triggers — Core Characteristics Which statement correctly describes a fundamental property of database triggers across mainstream relational database systems?
Open
View answer
Relational Joins — Including Unmatched Rows When you want a query to include rows that do not have matching values in the other table, which type of join should you use in standard SQL?
Open
View answer
Relational Joins — Returning Only Matching Rows When you want a query result set to include only rows that have matching values in both tables, which join type is the standard choice?
Open
View answer
Embedded SQL — What Does the Term Mean? In application development, what does embedded SQL refer to in practice?
Open
View answer
SQL Subqueries — Core Truths Which statement accurately describes a fundamental property of subqueries in SQL?
Open
View answer
Identify the Join Type from SQL Consider the SQL statement: SELECT CUSTOMER_T.CUSTOMER_ID, ORDER_T.CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T, ORDER_T WHERE CUSTOMER_T.CUSTOMER_ID = ORDER_T.CUSTOMER_ID Which join type best describes this query?
Open
View answer
In SQL (ANSI/ISO SQL-92 and later), what does a UNION query do? Choose the most accurate description of how UNION combines result sets.
Open
View answer
Relational querying: which of the following is a basic built-in approach to join tables to produce combined rows?
Open
View answer
Stored program objects: which statement accurately describes a database procedure?
Open
View answer
RDBMS system metadata: which statements about “system information” are generally true?
Open
View answer
Conditional logic in SQL: what is the purpose of the CASE expression in standard SQL?
Open
View answer
Routines vs. triggers: which statement correctly contrasts their execution behavior and usage in a relational database?
Open
View answer
Given the SQL: SELECT CUSTOMER_T.CUSTOMER_ID, ORDER_T.CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T, ORDER_T; — what type of join is produced when no join predicate is supplied?
Open
View answer
How many tables can participate in a single SQL query using joins in a relational database?
Open
View answer
Correlated subqueries: which description correctly captures how a correlated subquery operates within an SQL SELECT?
Open
View answer
Join usage guidance: Is the joining technique useful for retrieving and displaying data from several relations even when the relationships among those relations are not nested (that is, not strictly hierarchical)?
Open
View answer
Join predicate count: When joining multiple tables, should there be one join condition in the WHERE/ON clause for each pair of tables being joined (that is, for every combination of two tables)?
Open
View answer
ACID basics: Is a transaction the complete set of closely related update operations that must all succeed together or all fail together for the database to remain valid?
Open
View answer
Subquery classification: Is a correlated subquery defined by the situation in which the outer query depends on data produced by the inner query, or is it the other way around?
Open
View answer
Centralized administration: Is the code that defines triggers and stored routines typically stored once in the database catalog and administered centrally, rather than being scattered across every client application?
Open
View answer

Practice smarter

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