Superkeys in R(V,W,X,Y,Z)R(V,W,X,Y,Z) Given Primary Key VYVY

Superkeys in R(V,W,X,Y,Z)R(V,W,X,Y,Z) Given Primary Key VYVY

Verified Sources
Sep 12, 2026

We are given a relation R(V,W,X,Y,Z)R(V,W,X,Y,Z) with primary key VYVY. A superkey is any attribute set whose closure contains all attributes of RR. Since VYVY is a primary key, VYV,W,X,Y,ZVY \to V,W,X,Y,Z, and therefore any superset of VYVY is also a superkey (by the property of attribute closure / functional dependency).2

For each option, we check whether it is guaranteed to functionally determine all attributes (i.e., whether its closure contains V,W,X,Y,ZV,W,X,Y,Z). The quickest reasoning here is:

  • If an option contains both VV and YY, then it is a superset of the primary key VYVY, hence a superkey.
  • If it misses either VV or YY, it cannot be concluded to be a superkey from the fact that VYVY is a key (and in standard exam settings, that omission means it is not a superkey).

Options:

  1. (i) VXYZVXYZ contains VV and YY ⇒ superkey
  2. (ii) VWXZVWXZ misses YY ⇒ not a superkey
  3. (iii) VWXYVWXY contains VV and YY ⇒ superkey
  4. (iv) VWXYZVWXYZ contains VV and YY ⇒ superkey

Therefore, the option that is not a superkey is (ii) VWXZVWXZ.



Key terms

  • superkey
  • candidate key
  • attribute closure
  • functional dependency

Footnotes

  1. Database normalization: candidate key and superkey properties - Defines candidate keys/superkeys and related concepts like minimality.

  2. Functional dependency and attribute closure definition - Explains how closure is used to determine implications from FDs.

Superkey, Candidate Key & Attribute Closure (FDs) - Intuition

How to verify systematically (attribute closure method)

Even though the “superset of the primary key” shortcut is sufficient here, the standard rigorous method is to compute attribute closure for each option and test whether it includes all attributes RR.

The algorithm:

  • For a set SS, compute S+S^+ using the given functional dependencies (FDs).
  • SS is a superkey iff S+={V,W,X,Y,Z}S^+ = \{V,W,X,Y,Z\} (or at least contains all those attributes).

This is grounded in the theorem: if XX is a candidate key, then XX’s supersets are superkeys; and closure-based superkey testing is the formal definition.2

Footnotes

  1. Database normalization: candidate key and superkey properties - Defines candidate keys/superkeys and related concepts like minimality.

  2. Functional dependency and attribute closure definition - Explains how closure is used to determine implications from FDs.

Check each option for superkey using closure logic

  1. 1
    Step 1

    Since VYVY is a primary key, VYVY is a candidate key and determines all attributes in RR.

  2. 2
    Step 2

    Any set that contains both VV and YY is a superset of VYVY, so it is also a superkey.

  3. 3
    Step 3

    VXYZVXYZ contains VV and YY ⇒ superkey.

  4. 4
    Step 4

    VWXZVWXZ contains VV but not YY ⇒ it does not have the primary key as a subset; in the usual key-based reasoning for such problems, this means it is not a superkey.

  5. 5
    Step 5

    VWXYVWXY and VWXYZVWXYZ both contain VV and YY ⇒ superkeys.

  6. 6
    Step 6

    The only non-superkey option is (ii) VWXZ.

Shortcut that works here

If you’re told VYVY is a (primary/candidate) key, then any attribute set that includes both VV and YY is automatically a superkey, because adding attributes cannot reduce what’s functionally determined.

When the shortcut might fail

If the problem did NOT explicitly state that VYVY is a key (or if additional non-standard constraints are given), then missing YY (or missing VV) would require actual closure computation from FDs to confirm whether the set is a superkey.

Reasoning Path for the Exam-Style Question

Identify given key

1

Primary key is VYVY."

Use superkey property

2

Supersets of a key are superkeys."

Check each option

3

Presence/absence of both VV and YY."

Select the non-superkey

4

Only (ii) VWXZVWXZ misses YY."

Common questions

Superkey Status of Each Option (Based on Superset of Primary Key VYVY)

If the option includes both VV and YY, it is a superkey (value shown as 1). Otherwise 0.

Superkey Quick Checks

1 / 4
Question · Term

Definition: superkey

Click to reveal
Answer · Definition

A superkey is any attribute set SS such that S+S^+ includes all attributes of RR.

Knowledge Check

Question 1 of 4
Q1Single choice

Given R(V,W,X,Y,Z)R(V,W,X,Y,Z) has primary key VYVY, which set is NOT a superkey?