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
422 views
in Database Management System by (30.4k points)
closed by

Consider the relations, City (city_name, state) and Hotel (name, address, city_name). Write the result of the following relational algebra expressions.

1. σ Departments=“Sales”(EMPLOYEE). 

2. σ salary> 20000 ∧ Department = “Sales”(EMPLOYEE). 

3. σ Salary>20000 ∨ Department = “Sales”(EMPLOYEE). 

4. π name, salary(EMPLOYEE). 

5. π name, salaryDesignations=“Manager”(EMPLOYEE)). 

6. π name, DepartmentDesignation = “Clerk” salary > 20000(EMPLOYEE)).

1 Answer

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

1.

Emp. Code  Name  Department  Designation  Salary
1001  Dhanya  Sales  Manager  25000
1002  Shajan  Sales  Clerk  13000

2.

Emp. Code  Name  Department  Designation  Salary
1001  Dhanya  Sales  Manager  25000

3.

Emp. Code  Name  Department  Designation  Salary
1000  Sudheesh   Purchase Manager  25000
1001 Dhanya Sales Manager  25000
1003  Shajan  Sales  Clerk  13000

4.

 Name   Salary
 Sudheesh  25000
 Dhanya  25000
 Fathima  12000
 Shajan  13000

5. 

Name   Salary
 Sudheesh  25000
 Dhanya  25000

6. No rows selected.

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.

...