
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
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?
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 Wayground
15 questions
Quiz NO. 1

Quiz
•
University
10 questions
OPERATOR & EXPRESSION

Quiz
•
University
15 questions
U2. Embedded DB & Console Access

Quiz
•
University
10 questions
U2 DML

Quiz
•
University
15 questions
DBMS_Quiz_1

Quiz
•
University
12 questions
Relational database

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

Quiz
•
University
15 questions
Quiiz Eva3 FBD

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade