You have a relation called "Employees" that contains information about employees, including their salaries. You want to find the average salary of all employees. Which relational algebra operation would you use?

DBMS Theory QUIZ-II

Quiz
•
Computers
•
University
•
Hard
Rahul Kumar
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
SELECT
PROJECT
AGGREGATE
JOIN
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
With SQL, how can you return the number of not null records in the “Persons” table?
SELECT COUNT() FROM Persons
SELECT COLUMNS() FROM Persons
SELECT COLUMNS(*) FROM Persons
SELECT COUNT(*) FROM Persons
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
You have a "Products" relation that contains information about products, including their prices. You want to find the products with a price greater than $100. What relational algebra operation would you use?
SELECT
PROJECT
JOIN
DIFFERENCE
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
SQL query to find the temperature in increasing order of all cities.
SELECT city FROM weather ORDER BY temperature
SELECT city, temperature FROM weather
SELECT city, temperature FROM weather ORDER BY temperature
SELECT city, temperature FROM weather ORDER BY city
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In a database, you have a "Sales" relation that contains information about sales transactions, including the salesperson's name. You want to find the distinct names of salespeople who made sales. What relational algebra operation would you use?
SELECT
PROJECT
UNION
DISTINCT
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
You have a "Students" relation that contains information about students, including their ages. You want to find the average age of all students. Which relational algebra operation would you use?
SELECT
PROJECT
AGGREGATE
JOIN
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
You have two relations, "Employees" and "Departments." The "Employees" relation contains employee information, and the "Departments" relation contains department information. You want to find all employees in the "HR" department. What relational algebra operation would you use?
SELECT
PROJECT
JOIN
INTERSECT
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Databases and Information Management

Quiz
•
University
10 questions
QUIZ ON SQL

Quiz
•
University
10 questions
IoT Lecture 8 - Data and Analytics for IoT

Quiz
•
University
11 questions
Mentoring Session 3 (Group 1)

Quiz
•
University
15 questions
Quiz NO. 1

Quiz
•
University
10 questions
T_4.2 Identifier, Data Types, Operators & Expressions

Quiz
•
12th Grade - University
15 questions
DBC_CHAPTER 4

Quiz
•
University
10 questions
EXERCISE_RELATIONALDATABASE

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade