Question: CREATE TABLE locationlist ( locationlist _ id SERIAL PRIMARY KEY, city VARCHAR NOT NULL, country VARCHAR NOT NULL, postal _ code VARCHAR ) ; Given
CREATE TABLE locationlist
locationlistid SERIAL PRIMARY KEY,
city VARCHAR NOT NULL,
country VARCHAR NOT NULL,
postalcode VARCHAR
;
Given this new table, which INSERT statement would query from the customer table to insert the city, country, and postalcode of all customers in the right columns?
INSERT INTO locationlist postalcode, country, city
SELECT city, country, postalcode FROM customer;
INSERT INTO locationlist city country, postalcode
SELECT city, country, postalcode FROM customer;
INSERT INTO locationlist
SELECT city, country, postalcode FROM customer;
INSERT INTO locationlist locationlistid city, country, postalcode
SELECT city, country, postalcode FROM customer;
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
