LIVE Course for free

Rated by 1 million+ students
Get app now
JEE MAIN 2024
JEE MAIN 2025 Foundation Course
NEET 2024 Crash Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
557 views
in Programming by (30.0k points)
closed by
An instance of relational schema R(A, B, C) has distinct values of A including NULL values. Which one of the following is true?
1. A is candidate key
2. A is not a candidate key
3. A is a primary key
4. Both "A is a candidate key" and "A is a primary key"

1 Answer

0 votes
by (41.6k points)
selected by
 
Best answer
Correct Answer - Option 1 : A is candidate key

The correct answer is option 1.

  •  The primary key can not have a NULL value.
  • The candidate key can have a NULL value

Hence the correct answer is 1. A is candidate key.

Candidate key:

A candidate key is the minimal set of attributes that can uniquely determine/identify each tuple in a relation.

Super key:

A super key is a set of keys that uniquely define a row or a tuple. As a consequence, a super key is the superset of a Candidate key. It means that a candidate key can only be accessed from a super key.

Primary key:

An attribute or set of attributes is called a primary key (PK) that uniquely identifies each row in the table. If you want to create a primary key, you should define a PRIMARY KEY constraint when you create or modify a table.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...