Solved

James Has Created a New MySQL Table Called FAVORITES and Would

Question 26

Multiple Choice

James has created a new MySQL table called FAVORITES and would like to populate it with data from the existing CANDY table. Which command can he use to add data for rows with a rating of seven or more?


A) SELECT ID, NAME, PRICE, RATING FROM CANDY WHERE (RATING > 7) ) ;
B) INSERT INTO FAVORITES (SELECT ID, NAME, PRICE, RATING FROM CANDY WHERE (RATING > 7) ) ;
C) SELECT ID, NAME, PRICE, RATING FROM CANDY WHERE (RATING > 7) ) INSERT INTO FAVORITES;
D) INSERT INTO FAVORITES (FROM CANDY IF RATING > 7) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents