Relational Algebra

Relational Algebra

University

15 Qs

quiz-placeholder

Similar activities

DO 53 Series of 2013

DO 53 Series of 2013

University - Professional Development

15 Qs

MKG 0

MKG 0

University

20 Qs

Auditing Payroll Cycle

Auditing Payroll Cycle

University

10 Qs

SSIHM C9

SSIHM C9

University - Professional Development

14 Qs

Hotel Organization and Front Office Department

Hotel Organization and Front Office Department

University

10 Qs

Topic 1 : DPB30103 Part 1

Topic 1 : DPB30103 Part 1

University

11 Qs

MANAGEMENT (22509) UNIT NO. 5 QUIZ 5

MANAGEMENT (22509) UNIT NO. 5 QUIZ 5

University

15 Qs

TEST HRM SESI 1 2024

TEST HRM SESI 1 2024

University

15 Qs

Relational Algebra

Relational Algebra

Assessment

Quiz

Education

University

Medium

Created by

Kazi Ahmed

Used 10+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?