iGET

Database (DBMS) - MCQ Practice Questions

DBMS & SQL MCQs — normalization, joins, transactions & indexing.

57 questions | 100% Free

Q.41Easy

In a student enrollment database, you need to find students enrolled in multiple courses. Which JOIN type should be used to match course_id from enrollment table with course table?

Q.42Easy

What is the default sort order for ORDER BY clause in SQL?

Q.43Easy

Which aggregate function ignores NULL values in SQL?

Q.44Medium

In a bank database with accounts and transactions tables, to find accounts with transactions greater than 100,000, which clause must follow GROUP BY?

Q.45Medium

What will be the result of: SELECT in SQL?

Q.46Medium

A company table has 500K employee records. To find employees with salary > 50,000 efficiently, which strategy is optimal?

Q.47Easy

Which SQL statement is used to add a new column to existing table?

Q.48Medium

For a sales database, to get top 5 products by revenue in each region, which window function approach is suitable?

Q.49Medium

In an e-commerce platform with orders table, which index structure is best for frequently filtering by customer_id AND order_date?

Q.50Medium

Which of the following is a valid correlated subquery for finding employees earning more than their department average?

Q.51Hard

For a student result database, to calculate cumulative marks from beginning of year, which window function is appropriate?

Q.52Medium

In a bank database with accounts table, which query correctly identifies dormant accounts (no transactions in 2 years)?

Q.53Medium

Which anomaly in unnormalized database allows insertion of duplicate partial information without main entity?

Q.54Hard

For optimizing a complex query joining 5 tables with WHERE conditions, what is the recommended approach?

Q.55Hard

In a manufacturing database, to find products with sales in ALL regions, which approach is correct?

Q.56Easy

Which feature of SQL allows preventing duplicate values in a column?

Q.57Medium

For a multi-million row analytics database, which data type is most storage-efficient for storing yes/no values?