DBMS Lab quizII

DBMS Lab quizII

Assessment

Assessment

Created by

Abhinav Malviya

Computers

University

2 plays

Hard

10 questions

Show all answers

1.

MULTIPLE CHOICE

30 sec • 1 pt

.  Consider the following schema –

STUDENTS (student_code, first_name, last_name, email, phone_no, date_of_birth, honours_subject, percentage_of_marks);

Which of the following query would display all the students whose first name starts with the character ‘A’?

2.

MULTIPLE CHOICE

30 sec • 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?

3.

MULTIPLE CHOICE

30 sec • 1 pt

With SQL, how can you return the number of not null records in the “Persons” table?

4.

MULTIPLE CHOICE

30 sec • 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?

5.

MULTIPLE CHOICE

30 sec • 1 pt

SQL query to find the temperature in increasing order of all cities.

6.

MULTIPLE CHOICE

30 sec • 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?

7.

MULTIPLE CHOICE

30 sec • 1 pt

SQL query to find all the cities whose humidity is 95.

8.

MULTIPLE CHOICE

30 sec • 1 pt

       A database contains a table named employees with columns employee_id, employee_name, and salary. A user initiates a transaction to increase the salary of all employees by 10%. Which SQL statement should be used to update the salary within the transaction?

9.

MULTIPLE CHOICE

30 sec • 1 pt

      Find all the cities with temperature, condition and humidity whose humidity is in the range of 63 to 79.

10.

MULTIPLE CHOICE

30 sec • 1 pt

A database contains a table named orders with columns order_id, customer_id, and total_amount. A user initiates a transaction to delete all orders with a total amount less than $50. Which SQL statement should be used to delete these records within the transaction?

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?