COMP9. DATA MANIPULATION LANGUAGE

Quiz
•
Computers
•
9th Grade
•
Medium
Michael Atienza
Used 6+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
You have a table Employees with columns EmployeeID, FirstName, LastName, and Position. How would you insert a new employee with the following details: EmployeeID = 101, FirstName = 'John', LastName = 'Doe', Position = 'Manager'?
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
If a table Orders has columns OrderID, ProductName, and Quantity and you only want to insert a value for ProductName and Quantity, which command is correct?
3.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What happens if you execute the following command and the StudentID column in the Students table is set to auto-increment?
4.
MULTIPLE SELECT QUESTION
1 min • 2 pts
You have a table Products with columns ProductID, ProductName, Price, and Stock. Which of the following statements would add a new product named "Notebook" with a price of 15.99 and stock of 100?
INSERT INTO Products VALUES (NULL, 'Notebook', 15.99, 100);
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What would happen if you attempt to execute the following command on a table where EmployeeID is the primary key and already contains the value 201?
INSERT INTO Employees (EmployeeID, FirstName, LastName) VALUES (201, 'Jake', 'Brown');
6.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
You are inserting data into a table with a column that allows NULL values. Which statement will successfully insert a NULL into that column?
INSERT INTO Sales (Product, Price) VALUES ('Pen', NULL);
INSERT INTO Sales (Product, Price) VALUES ('Pen', 'NULL');
7.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
You have a table Customers with columns CustomerID, Name, and Email. If you want to add a new customer with only their Name and Email, leaving CustomerID to be auto-generated, which command should you use?
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Computing Y9 Level 9

Quiz
•
9th Grade
25 questions
Module 2-4:: Part 1 of 2

Quiz
•
9th - 12th Grade
25 questions
Business & Technology Spring Final Exam Review

Quiz
•
9th - 12th Grade
25 questions
Database Grade 9

Quiz
•
9th Grade
25 questions
SUMATIF 3 MOSES ACCESS

Quiz
•
9th Grade
30 questions
Excel 2016 Certification Review Quiz

Quiz
•
9th Grade - University
28 questions
N5CS: Database Testing and Evaluation

Quiz
•
9th Grade
25 questions
HTML

Quiz
•
5th Grade - Professio...
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade