You need to insert the following data in the table: "Cheese", False Which statement should you use?

You have a table named ITEMS with the following fields:
ID (integer, primary key. auto generated)
Description (text)
Completed (Boolean)
You need to insert the following data in the table:
“Cheese”, False
Which statement should you use?

You have a table named ITEMS with the following fields:
ID (integer, primary key. auto generated)
Description (text)
Completed (Boolean)
You need to insert the following data in the table:
“Cheese”, False
Which statement should you use?

A.
INSERT INTO ITEMS (ID, Description, Completed) VALUES (1, ‘Cheese’, 0)

B.
INSERT INTO ITEMS (Description, Completed) VALUES (‘Cheese’, 1)

C.
INSERT INTO ITEMS (10, Description, Completed) VALUES (NEWID(), ‘Cheese’,
6)

D.
INSERT INTO ITEMS (Description, Completed) VALUES (‘Cheese’, 6)



Leave a Reply 5

Your email address will not be published. Required fields are marked *


Mo

Mo

No correct answer from the listed ones.
The correct is

INSERT INTO ITEMS (Description, Completed) VALUES (‘Cheese’, 0)

which is not in the answer list above.

Caswell

Caswell

I agree, 1 cannot be equal to false.

DB7

DB7

Mo is correct, all listed options are incorrect. What he posted is correct.