
Relational Algebra
Authored by Kazi Ahmed
Education
University
15 Questions
Used 12+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Q1. Select all employees who work in the IT department.
a) σ(Department = 'IT')(Employees)
b) π(Department = 'IT')(Employees)
c) σ(Department == 'IT')(Employees)
d) π(Department == 'IT')(Employees)
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Q2. Retrieve only the FirstName and LastName of employees from the table.
a) π(FirstName, LastName)(Employees)
b) σ(FirstName, LastName)(Employees)
c) π(EmployeeID, FirstName, LastName)(Employees)
d) π(FirstName, Department)(Employees)
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Q3. Find all employees who work in the same department and have the same salary.
a) Employees ⋈ (Employees.Department = Employees.Department) ⋀ (Employees.Salary = Employees.Salary)
b) Employees ⋈ (Employees.Department == Employees.Department) ⋀ (Employees.Salary == Employees.Salary)
c) Employees ⋈ (Department = Department) ⋀ (Salary = Salary)
d) Employees ⋈ (Department == Department) ⋀ (Salary == Salary)
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Q4. Find the employees who work in the HR department but not in the Sales department.
a) π(FirstName, LastName, Department) (σ(Department = 'HR')(Employees)) ∩ π(FirstName, LastName, Department)(σ(Department = 'Sales')(Employees))
b) π(FirstName, LastName, Department) (σ(Department = 'HR')(Employees)) - π(FirstName, LastName, Department)(σ(Department = 'Sales')(Employees))
c) π(FirstName, LastName, Department) (σ(Department = 'HR')(Employees)) ∪ π(FirstName, LastName, Department)(σ(Department = 'Sales')(Employees))
d) π(FirstName, LastName, Department) (σ(Department = 'HR')(Employees)) ⋈ π(FirstName, LastName, Department)(σ(Department = 'Sales')(Employees))
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Q5. Find all unique departments represented in the Employees table.
a) π(Department)(Employees) ∩ π(Department)(Employees)
b) π(Department)(Employees) + π(Department)(Employees)
c) π(Department)(Employees) ⋈ π(Department)(Employees)
d) π(Department)(Employees) ∪ π(Department)(Employees)
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Q6. Find the departments that have both Managers and Analysts.
a) π(Department)(σ(Position = 'Manager')(Employees)) + π(Department)(σ(Position = 'Analyst')(Employees))
b) π(Department)(σ(Position = 'Manager')(Employees)) ∪ π(Department)(σ(Position = 'Analyst')(Employees))
c) π(Department)(σ(Position = 'Manager')(Employees)) ∩ π(Department)(σ(Position = 'Analyst')(Employees))
d) π(Department)(σ(Position = 'Manager')(Employees)) - π(Department)(σ(Position = 'Analyst')(Employees))
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Q7. Select employees who earn more than $55,000 and work in the Marketing department.
a) σ(Salary > 55000 ∧ Department = 'Marketing')(Employees)
b) σ(Salary > 55000 ∨ Department = 'Marketing')(Employees)
c) σ(Salary > 55000)(Employees) ∩ σ(Department = 'Marketing')(Employees)
d) σ(Salary > 55000)(Employees) ⋈ σ(Department = 'Marketing')(Employees)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
CHILD CARE
Quiz
•
University
20 questions
Arabic for beginners, Prepared by Dr. Taher Fayez
Quiz
•
University
10 questions
EUP 222 : Safety and Health Law
Quiz
•
University
10 questions
LAB INSTRUMENTS
Quiz
•
University
10 questions
Online Communication
Quiz
•
University
20 questions
Grooming tools & equipment
Quiz
•
12th Grade - University
20 questions
QUIZ 3 : TOPIC 2 [MANUFACTURING COSTS:CONCEPTS & COMPONENTS]
Quiz
•
1st Grade - University
15 questions
Learning Style
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Education
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University