FC0-U71 INSERT statement Practice Question
A database contains a table 'Orders' with columns OrderID, CustomerID, OrderDate, and TotalAmount. Which THREE SQL statements will correctly insert a new row into the table? (Choose THREE.)
⚠ Common exam trap
Candidates often forget that INSERT ... SET is vendor-specific and may not be accepted in all SQL environments. This question assumes it is acceptable, so it is counted as correct.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
INSERT INTO Orders VALUES (1, 101, '2023-01-15', 50.00)
The standard SQL INSERT syntax is 'INSERT INTO table_name [(column_list)] VALUES (value_list)'. Option B follows this without a column list, assuming values match table column order. Option E explicitly lists columns, also valid. Option C uses the SET clause, which is an alternative syntax accepted in some database systems like MySQL. While not part of the SQL standard, it is considered correct in contexts that support it. Option A incorrectly places the column list before INTO. Option D omits the required INTO keyword. Therefore, options B, C, and E are correct.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
INSERT (OrderID, CustomerID, OrderDate, TotalAmount) INTO Orders VALUES (1, 101, '2023-01-15', 50.00)
Why it's wrong here
Incorrect. The column list must come after the table name, not before INTO. Correct syntax: INSERT INTO Orders (OrderID, ...) VALUES (...).
- ✓
INSERT INTO Orders VALUES (1, 101, '2023-01-15', 50.00)
Why this is correct
Correct. This uses the standard INSERT INTO syntax without a column list, inserting values for all columns in the order they are defined.
- ✓
INSERT INTO Orders SET OrderID=1, CustomerID=101, OrderDate='2023-01-15', TotalAmount=50.00
Why this is correct
Correct. INSERT ... SET is a valid alternative syntax in certain SQL implementations (e.g., MySQL). Although not standard SQL, it is accepted here.
- ✗
INSERT Orders VALUES (1, 101, '2023-01-15', 50.00)
Why it's wrong here
Incorrect. The keyword INTO is required. Correct syntax: INSERT INTO Orders VALUES (...).
- ✓
INSERT INTO Orders (OrderID, CustomerID, OrderDate, TotalAmount) VALUES (1, 101, '2023-01-15', 50.00)
Why this is correct
Correct. This explicitly lists the columns and provides corresponding values, which is a clear and standard way to insert a row.
Go deeper
Related to this question
About these practice questions
This FC0-U71 question is part of Courseiva's 988-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on FC0-U71
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A database includes a table called 'Products' with columns: ProductID, ProductName, Price, and Quantity. Which TWO of the following SQL statements correctly insert a new product into the table? (Select TWO.)
easy- A.INSERT INTO Products SET ProductID=1, ProductName='Widget'
- B.INSERT INTO Products (ProductName, Price) VALUES ('Widget', 9.99, 100)
- ✓ C.INSERT INTO Products (ProductID, ProductName, Price, Quantity) VALUES (1, 'Widget', 9.99, 100)
- D.INSERT INTO Products VALUES (1, 'Widget', 9.99)
- ✓ E.INSERT INTO Products VALUES (1, 'Widget', 9.99, 100)
Why C: Only the INSERT statements that provide values for all required columns in the correct order are valid. Option C explicitly lists columns and provides correct values. Option E omits column names but provides values for all four columns in the correct order. Option A uses an invalid syntax (SET clause is not standard SQL for INSERT). Option B provides three values but only two column names, causing a mismatch. Option D provides only three values for a four-column table.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This FC0-U71 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the FC0-U71 exam.