
FIT 9132 Week 8
Quiz
•
Computers
•
University
•
Hard
Arnab Biswas
Used 3+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a valid syntax for the UPDATE command?
UPDATE table SET column1 = value1, column2 = value2 WHERE condition;
UPDATE column1, column2 SET value1, value2 WHERE condition;
UPDATE table SET column1 = value1 WHERE condition;
UPDATE table SET column1 = value1, column2 = value2;
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements is true regarding the UPDATE command?
It can only modify one column at a time.
It can modify multiple columns at a time.
It can only update rows that match a certain condition.
It can only update all rows in a table at once.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following operators can be used in the WHERE clause of an UPDATE command?
LIKE
IN
BETWEEN
All of the above
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following SQL statements will update the "salary" column of a table called "employees" to increase by 10% for all employees whose job title is "Manager"?
UPDATE employees SET salary = salary * 1.1 WHERE job_title = 'Manager';
UPDATE employees SET salary = salary * 0.1 WHERE job_title = 'Manager';
UPDATE employees SET salary = salary * 1.1 AND job_title = 'Manager';
UPDATE employees SET salary = salary * 0.1 AND job_title = 'Manager';
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following SQL statements will update the "status" column of a table called "orders" to "Shipped" for all orders with an order date in the year 2022?
UPDATE orders SET status = 'Shipped' WHERE order_date LIKE '%2022%';
UPDATE orders SET status = 'Shipped' WHERE TO_DATE(order_date, 'DD-MON-YYYY') BETWEEN (TO_DATE('01-JAN-2022', 'DD-MON-YYYY'), TO_DATE('01-JAN-2023', 'DD-MON-YYYY'));
UPDATE orders SET status = 'Shipped' WHERE TO_DATE(order_date, 'DD-MON-YYYY') IN (TO_DATE('01-JAN-2022', 'DD-MON-YYYY'), TO_DATE('01-JAN-2023', 'DD-MON-YYYY'));
UPDATE orders SET status = 'Shipped' WHERE order_date BETWEEN '2022-01-01' AND '2022-12-31';
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following SQL statements will update the "description" column of a table called "products" to make all text lowercase?
UPDATE products SET description = LOWER(description);
UPDATE products SET description = LOWER('description');
UPDATE products SET description = TO_LOWER(description);
UPDATE products SET description = TO_LOWER('description');
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following SQL statements will update the "quantity" column of a table called "inventory" to be equal to the number of items in stock for each product in a table called "products"?
UPDATE inventory SET quantity = (SELECT COUNT(*) FROM products WHERE products.id = inventory.product_id);
UPDATE inventory SET quantity = products.quantity WHERE products.id = inventory.product_id;
UPDATE inventory SET quantity = (SELECT SUM(quantity) FROM products WHERE products.id = inventory.product_id);
UPDATE inventory SET quantity = (SELECT AVG(quantity) FROM products WHERE products.id = inventory.product_id);
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
18 questions
Introducción a HTML
Quiz
•
University
10 questions
Quiz - Dizajni dhe Zhvillimi i Uebit
Quiz
•
University
10 questions
Quiz 4
Quiz
•
University
10 questions
Machine Learning (Introduction)
Quiz
•
University
10 questions
Planning and Implementation of Information Security
Quiz
•
University
10 questions
Proxy Server
Quiz
•
University
19 questions
Bases de Datos
Quiz
•
University
15 questions
ENGINEERING DATA ANALYSIS PRELIM
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University