Question: CREATE TABLE locationlist ( locationlist _ id SERIAL PRIMARY KEY, city VARCHAR NOT NULL, country VARCHAR NOT NULL, postal _ code VARCHAR ) ; Given

CREATE TABLE locationlist(
locationlist_id SERIAL PRIMARY KEY,
city VARCHAR NOT NULL,
country VARCHAR NOT NULL,
postal_code VARCHAR
);
Given this new table, which INSERT statement would query from the customer table to insert the city, country, and postal_code of all customers in the right columns?
INSERT INTO locationlist (postal_code, country, city)
SELECT city, country, postal_code FROM customer;
INSERT INTO locationlist (city, country, postal_code)
SELECT city, country, postal_code FROM customer;
INSERT INTO locationlist
SELECT city, country, postal_code FROM customer;
INSERT INTO locationlist (locationlist_id, city, country, postal_code)
SELECT city, country, postal_code FROM customer;

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 Databases Questions!