Relational Algebra

Quiz
•
Education
•
University
•
Medium
Kazi Ahmed
Used 10+ times
FREE Resource
15 questions
Show all answers
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)
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Repaso morfología verbal

Quiz
•
University
10 questions
Services Marketing Mix

Quiz
•
University
20 questions
HRM REVISION HRM

Quiz
•
University
10 questions
Ensaio de tração 1

Quiz
•
University
10 questions
NSTP-PRE-TEST

Quiz
•
University
20 questions
Let's be quizzed on HRM!

Quiz
•
University
10 questions
Team Bulding FY2021

Quiz
•
1st Grade - Professio...
10 questions
Chapter1-HRM

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Education
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University