With SQL, how can you insert a new record into the "Persons" table?

  1. INSERT INTO Persons VALUES ('Jimmy', 'Jackson')

  2. INSERT ('Jimmy', 'Jackson') INTO Persons

  3. INSERT VALUES ('Jimmy', 'Jackson') INTO Persons


Correct Option: A

AI Explanation

To insert a new record into the "Persons" table using SQL, the correct syntax is:

A. INSERT INTO Persons VALUES ('Jimmy', 'Jackson')

Let's go through each option to understand why it is correct or incorrect:

Option A) INSERT INTO Persons VALUES ('Jimmy', 'Jackson') - This option is correct because it follows the correct syntax for inserting a new record. The "INSERT INTO" statement is used to specify the table name (Persons), followed by the "VALUES" keyword to specify the values for each column in the table.

Option B) INSERT ('Jimmy', 'Jackson') INTO Persons - This option is incorrect because it does not follow the correct syntax. The "INSERT INTO" statement should be used instead of just "INSERT", and the table name (Persons) should come after the "INTO" keyword.

Option C) INSERT VALUES ('Jimmy', 'Jackson') INTO Persons - This option is incorrect because it also does not follow the correct syntax. The "INTO" keyword should come before the "VALUES" keyword, and the table name (Persons) should come after the "INTO" keyword.

The correct answer is A) INSERT INTO Persons VALUES ('Jimmy', 'Jackson'). This option is correct because it follows the correct syntax for inserting a new record into the "Persons" table.

Find more quizzes: