Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following new table: CREATE TABLE volunteer ( volunteer _ id SERIAL PRIMARY KEY, first _ name VARCHAR NOT NULL, last _ name VARCHAR

Consider the following new table:
CREATE TABLE volunteer(
volunteer_id SERIAL PRIMARY KEY,
first_name VARCHAR NOT NULL,
last_name VARCHAR NOT NULL,
phone VARCHAR
);
Given this new table, which INSERT statement would query from the customer table to insert the first name, last name, and phone number of all customers in the right columns?
a.)
INSERT INTO volunteer (first_name, last_name, phone)
SELECT first_name, last_name, phone FROM customer;
b.)
INSERT INTO volunteer
SELECT first_name, last_name, phone FROM customer;
c.)
INSERT INTO volunteer (phone, last_name, first_name)
SELECT first_name, last_name, phone FROM customer;
d.)
INSERT INTO volunteer (volunteer_id, first_name, last_name, phone)
SELECT first_name, last_name, phone FROM customer;

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Genomes And Databases On The Internet A Practical Guide To Functions And Applications

Authors: Paul Rangel

1st Edition

189848631X, 978-1898486312

More Books

Students also viewed these Databases questions

Question

General Purpose of Your Speech Analyzing Your Audience

Answered: 1 week ago

Question

Ethical Speaking: Taking Responsibility for Your Speech?

Answered: 1 week ago