DBMS Theory QUIZ-II

DBMS Theory QUIZ-II

University

10 Qs

quiz-placeholder

Similar activities

Mentoring Session 3 (Group 1)

Mentoring Session 3 (Group 1)

University

11 Qs

introduction to sql

introduction to sql

University

10 Qs

DBMS

DBMS

University

15 Qs

Pengetahuan Dasar Oracle

Pengetahuan Dasar Oracle

University

10 Qs

Pretest 2

Pretest 2

University

10 Qs

QUIZ ON SQL

QUIZ ON SQL

University

10 Qs

CC102 - Async Class - Seatwork 4

CC102 - Async Class - Seatwork 4

University

15 Qs

Operators in C

Operators in C

University

12 Qs

DBMS Theory QUIZ-II

DBMS Theory QUIZ-II

Assessment

Quiz

Computers

University

Hard

Created by

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

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?