Question: Suppose you created the following table: CREATE TABLE league ( league _ id SERIAL PRIMARY KEY, first _ name VARCHAR NOT NULL, last _ name

Suppose you created the following table:
CREATE TABLE league(
league_id SERIAL PRIMARY KEY,
first_name VARCHAR NOT NULL,
last_name VARCHAR NOT NULL,
email VARCHAR
);
Given this new table, which INSERT statement would query from the employee table to insert the first name, last name, and email address of all employees in the right columns?
launch database
A.)
INSERT INTO league (league_id, first_name, last_name, email)
SELECT first_name, last_name, email
FROM employee;
B.)
INSERT INTO league (first_name, last_name, email)
SELECT first_name, last_name, email
FROM employee;
C.)
INSERT INTO league
SELECT first_name, last_name, email
FROM employee;
D.)
INSERT INTO league (email, last_name)
SELECT last_name, email
FROM employee;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!