
DBMS LAb Quiz II

Quiz
•
Computers
•
University
•
Hard
Dr Surendra Kumar
Used 6+ times
FREE Resource
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;
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
java quiz based on interface

Quiz
•
University
6 questions
QUIZ CHAPTER 4

Quiz
•
University
11 questions
Basics of JAVA

Quiz
•
University
10 questions
Pertemuan 4_PSI

Quiz
•
University
11 questions
Data Security Quiz

Quiz
•
University
10 questions
Lab 5 Review Quiz - Functions and Subqueries

Quiz
•
University
15 questions
Quiz de SQL Básico

Quiz
•
University
10 questions
SQL JOINS

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University