
DBMS LAb Quiz II
Authored by Dr Surendra Kumar
Computers
University
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
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’?A
select first_name from students where first_name like ‘A%’;
select first_name from students where first_name like ‘%A’;
select first_name from students where first_name like ‘%A%’;
select first_name from students where first_name like ‘A’;
2.
MULTIPLE CHOICE QUESTION
2 mins • 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
2 mins • 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
2 mins • 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
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
SQL query to find all the cities whose humidity is 95.
SELECT city WHERE humidity = 95
SELECT city FROM weather WHERE humidity = 95
SELECT city FROM weather
SELECT humidity = 89 FROM weather
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following statement is true?
DELETE does not free the space containing the table and TRUNCATE free the space containing the table
Both DELETE and TRUNCATE free the space containing the table
Both DELETE and TRUNCATE does not free the space containing the table
DELETE free the space containing the table and TRUNCATE does not free the space containing the table
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
1. 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?
UPDATE employees SET salary = salary * 1.10;
MODIFY employees SET salary = salary * 1.10;
ALTER employees SET salary = salary * 1.10;
CHANGE employees SET salary = salary * 1.10;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?