Question

Based on the tables below, which of the following SQL statements would increase the balance of the Gonzales account by $100 to a total of $450?
GENERAL SALES DATABASE:
SALESREP
SalesRepNo RepName HireDate
654 Jones 01/02/2005
734 Smith 02/03/2007
345 Chen 01/25/2004
434 Johnson 11/23/2004

CUSTOMER
CustNo CustName Balance SalesRepNo
9870 Winston 500 345
8590 Gonzales 350 434
7840 Harris 800 654
4870 Miles 100 345

A) SELECT Gonzales
FROM CUSTOMER
INSERT VALUES PLUS (100) INTO Balance;
B) SELECT Gonzales
FROM CUSTOMER
INSERT VALUES (450) INTO Balance;
C) INSERT INTO CUSTOMER VALUES (450)
SELECT Balance
WHERE CustName = 'Gonzales';
D) UPDATE CUSTOMER
SET Balance = 450
WHERE CustName = 'Gonzales';

Answer

This answer is hidden. It contains 1 characters.