Question:

In a relational database, a table has 5 attributes and 1000 records. If a query returns 200 records after applying a condition, what is the selectivity of the query?

Show Hint

Low selectivity means a query filters out most records, improving efficiency.
Updated On: Jun 6, 2025
  • 0.2
  • 0.5
  • 0.8
  • 1.0
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Step 1: Define selectivity
Selectivity = Fraction of records retrieved by a query.
Formula: Selectivity = $\frac{\text{Number of records returned}}{\text{Total records}}$.
Step 2: Substitute values
Records returned = 200, Total records = 1000.
Selectivity = $\frac{200}{1000}$.
Step 3: Calculate
$\Rightarrow$ Selectivity = 0.2.
Was this answer helpful?
0
0

Top Questions on Database Management Systems

View More Questions

AP PGECET Notification