MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SQL

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The ____ operation, denoted by-, allows us to find tuples that are in one relation but are not in another.
A
Union
B
Set-difference
C
Difference
D
Intersection
Explanation: 

Detailed explanation-1: –the operation denoted by-allows for finding tuples that are in one relation but are not in another.

Detailed explanation-2: -Explanation: The expression r − s produces a relation containing those tuples in r but not in s.

Detailed explanation-3: -Explanation: The select operation selects tuples that satisfy a given predicate.

Detailed explanation-4: -Union (∪) Union operation is done by Union Operator which is represented by “union"(∪). It is the same as the union operator from set theory, i.e., it selects all tuples from both relations but with the exception that for the union of two relations/tables both relations must have the same set of Attributes.

Detailed explanation-5: -Explanation: Join finds the common tuple in the relations and combines it.

There is 1 question to complete.