Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
5.9k views
in Database Management System by (29.4k points)
closed by

Classify the following operations in relational algebra into unary and binary operations:

(1) UNION

(2) SELECT

(3) SET DIFFERENCE

(4) PROJECT

(b) Explain about SELECT, INTERSECTION and SET DIFFERENCE operations with example.

1 Answer

+1 vote
by (30.3k points)
selected by
 
Best answer

(a) Unary Binary

(2) SELECT

(1) UNION

(4) PROJECT

(3) SET DIFFERENCE

(b) SELECT operation

SELECT operation is used to select tuples in a relation that satisfy a selection condition. Greek letter cr (sigma) is used to denote the operation.

Syntax,

σCondition(relation)

eg. σSalary<100000(EMPLOYEE)-selects tuple whose salary is less than 10000 from EMPLOYEE relation.

Intersection operation 

This operation returns a relation consisting of all the tuples appearing in both of the specified relations. It is denoted by n. It can takes place only on compatible relations, e.g. FOOTBALL ∩ CRICKET returns the players who are in both football and cricket teams.

Set difference operation (-)

All tuples appearing in the first relation and not in the second

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.

...