0
0
DBMS Theoryknowledge~20 mins

Selection operation implementation in DBMS Theory - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Selection Operation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the Selection Operation in Relational Algebra
Which of the following best describes the selection operation in relational algebra?
AIt filters rows from a table based on a specified condition.
BIt combines two tables by matching rows based on a common attribute.
CIt rearranges the columns of a table in a specified order.
DIt creates a new table by adding columns from two tables.
Attempts:
2 left
💡 Hint
Think about how you pick certain rows from a table based on a rule.
📋 Factual
intermediate
2:00remaining
SQL Equivalent of Selection Operation
Which SQL clause is used to perform the selection operation on a table?
AGROUP BY
BORDER BY
CWHERE
DHAVING
Attempts:
2 left
💡 Hint
This clause filters rows before grouping or ordering.
🚀 Application
advanced
2:30remaining
Result of Selection Operation with Multiple Conditions
Given a table Employees with columns id, name, and salary, what is the result of the selection operation with condition salary > 50000 AND name LIKE 'J%'?
DBMS Theory
SELECT * FROM Employees WHERE salary > 50000 AND name LIKE 'J%';
AAll employees with salary above 50000 regardless of name.
BAll employees with salary above 50000 or names starting with 'J'.
CAll employees with salary below 50000 and names starting with 'J'.
DAll employees with salary above 50000 whose names start with 'J'.
Attempts:
2 left
💡 Hint
AND means both conditions must be true.
🔍 Analysis
advanced
2:00remaining
Effect of Selection Operation on Table Size
If a selection operation is applied on a table with 1000 rows using a condition that matches 10% of the rows, how many rows will the resulting table have?
A100 rows
B10 rows
C900 rows
D1000 rows
Attempts:
2 left
💡 Hint
Calculate 10% of 1000.
Reasoning
expert
3:00remaining
Identifying the Correct Selection Query Output
Consider a table Products with columns product_id, category, and price. Which query will return all products in the 'Electronics' category priced below 300?
ASELECT * FROM Products WHERE category = 'Electronics' OR price < 300;
BSELECT * FROM Products WHERE category = 'Electronics' AND price < 300;
CSELECT * FROM Products WHERE category = 'Electronics' AND price > 300;
DSELECT * FROM Products WHERE category != 'Electronics' AND price < 300;
Attempts:
2 left
💡 Hint
Both conditions must be true for selection.