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:
Verified
Q21: Which is the correct sequence of elements
Q22: Describe the format of the command used
Q23: How does the procedure for adding rows
Q24: A MySQL command to change a value
Q25: What do you need to know to
Q27: Which command should Josephine use if she
Q28: Patty begins entering an order into her
Q29: Barney learns that the phone number for
Q30: Which is the correct sequence of elements
Q31: Which of the following is a valid
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents