
DBMS QUIZ-III

Quiz
•
Computers
•
University
•
Medium
Rahul Kumar
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In a database, you have a "Sales" relation that contains information about sales transactions, including the sale date. You want to find the maximum sale date. Which relational algebra operation would you use?
SELECT
PROJECT
AGGREGATE
JOIN
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
All NOT NULL columns from the base table must be included in the view in order for the INSERT query to function.
TRUE
FALSE
All NULL columns from the base table must be included in the view in order for the INSERT query to function
None of the above
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A user initiates a transaction to retrieve the average salary of employees from a table named employees. Which SQL statement should be used to calculate the average salary within the transaction?
SELECT AVG(salary) FROM employees;
CALCULATE AVERAGE salary FROM employees;
AVERAGE SELECT salary FROM employees;
GET AVG(salary) FROM employees;
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
An e-commerce website processes a customer's order, which involves deducting the item quantity from the inventory. If any part of the transaction fails, the system needs to revert all changes made by the transaction. Which SQL statement is used to roll back a transaction?
ROLLBACK
COMMIT
SAVEPOINT
REVERT
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In a banking database, a customer initiates a fund transfer between two accounts. The transaction should either be fully completed or fully rolled back in case of an error. Which SQL statement is used to commit a transaction?
COMMIT
END TRANSACTION
FINALIZE
COMMIT TRANSACTION
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A database application maintains employee records. An administrator initiates a batch process to update the salary of all employees. If any part of the batch fails, the system needs to roll back all changes made so far. Which SQL statement is used to set a savepoint within a transaction?
SET SAVEPOINT
SAVEPOINT
DECLARE SAVEPOINT
TRANSACTION SAVEPOINT
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Scenario: A database contains a table named products with columns product_id, product_name, and price. A user initiates a transaction to update the price of a specific product with product_id = 102 to $25. Which SQL statement should be used to perform this update within the transaction?
MODIFY products SET price = 25 WHERE product_id = 102;
ALTER products SET price = 25 WHERE product_id = 102;
UPDATE products SET price = 25 WHERE product_id = 102;
CHANGE products SET price = 25 WHERE product_id = 102;
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
KUIS DAY 3 STACK

Quiz
•
University
15 questions
SQL and Database Quiz

Quiz
•
University
12 questions
Database Design & Development SQL 2

Quiz
•
University
15 questions
Transactions 2: Serializability

Quiz
•
University
15 questions
MIS Chapter 2

Quiz
•
University
7 questions
Fundamental of Information Systems

Quiz
•
University
12 questions
B3. Bitcoin blocks

Quiz
•
University
15 questions
Data Mining

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