Use SQL to make the following changes to the TAL Distributors database (see Figure 1-2 in Chapter 1). After each change, execute an appropriate query to show that the change was made correctly. If directed to do so by your instructor, use the information provided with the Chapter 3 Exercises to print your output or save it to a document. For any exercises that use commands not supported by your version of SQL, write the command to accomplish the task.Create a view named MAJOR_CUSTOMER. It consists of the customer number, name, balance, credit limit, and rep number for every customer whose credit limit is $10,000 or less.a. Write and execute the CREATE VIEW command to create the MAJOR_CUSTOMER view.b. Write and execute the command to retrieve the customer number and name of each customer in the MAJOR_CUSTOMER view with a balance that exceeds the credit limit.c. Write and execute the query that the DBMS actually executes.d. Does updating the database through this view create any problems? If so, what are they? If not, why not?

Respuesta :

Using the knowledge in computational language in SQL it is possible to write a code that command to retrieve the customer number and name of each customer in the MAJOR_CUSTOMER.

Writting the code:

Insert into CUSTOMER values(126, 'Toys Galore', '28 laketon St.', 'Fullton',

'CA', 90085, 1210.25, 7500.00,15);

Insert into CUSTOMER values(260, 'Brookings Direct', '452 columbus Dr.', 'Grove',

'CA', 90092, 575.00, 10000.00,30);

Insert into CUSTOMER values(440, 'Grove historical museum store', '3456 central ave', 'Grove',

'CA', 90085, 345.00, 5000.00,45);

Insert into CUSTOMER values(824, 'Kline', '945 Gilham st', 'Mesa',

'CA', 90104, 2475.99, 15000.00, 30);

See more about SQL at brainly.com/question/13068613

#SPJ1

Ver imagen lhmarianateixeira