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
leagueid SERIAL PRIMARY KEY,
firstname VARCHAR NOT NULL,
lastname 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 leagueid firstname, lastname, email
SELECT firstname, lastname, email
FROM employee;
B
INSERT INTO league firstname, lastname, email
SELECT firstname, lastname, email
FROM employee;
C
INSERT INTO league
SELECT firstname, lastname, email
FROM employee;
D
INSERT INTO league email lastname
SELECT lastname, email
FROM employee;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
