Use the database tables in Figure P8.16 as the basis for Problems 16-30. FIGURE P8.16 CH08_SIMPLECO...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Use the database tables in Figure P8.16 as the basis for Problems 16-30. FIGURE P8.16 CH08_SIMPLECO DATABASE TABLES Table name: CUSTOMER CUST_NUM CUST_LNAME CUST_FNAME CUST_BALANCE 1000 Smith 1001 Ortega Jeanne Juan 1050.11 840.92 Database name: Ch08_SimpleCo Table name: INVOICE INV_NUM CUST_NUM INV_DATE INV_AMOUNT 1000 23-Mar-16 1001 23-Mar-16 1001 1000 12-Apr-16 30-Mar-16 1000 23-Apr-16 8000 8001 8002 8003 8004 16. Create the CUSTOMER table structure illustrated in Figure P8.16. The customer number should store integer values. The name attributes should support variable length character data up to 30 characters each. The customer balance should sup- port up to six digits on the left of the decimal place and two digits to the right of the decimal place. 17. Create the INVOICE table structure illustrated in Figure P8.16. The invoice number should store integer values. The invoice date should store date values. The invoice amount should support up to 8 digits to the left of the decimal place and two digits to the right of the decimal place. 18. Write the set of SQL commands necessary to insert the data into the CUSTOMER table you created in Problem 16, as illustrated in Figure P8.16. 19. Write the set of SQL commands necessary to insert the data into the INVOICE table you created in Problem 17, as illustrated in Figure P8.16. 235.89 312.82 528.10 194.78 619.44 Use the database tables in Figure P8.16 as the basis for Problems 16-30. FIGURE P8.16 CH08_SIMPLECO DATABASE TABLES Table name: CUSTOMER CUST_NUM CUST_LNAME CUST_FNAME CUST_BALANCE 1000 Smith 1001 Ortega Jeanne Juan 1050.11 840.92 Database name: Ch08_SimpleCo Table name: INVOICE INV_NUM CUST_NUM INV_DATE INV_AMOUNT 1000 23-Mar-16 1001 23-Mar-16 1001 1000 12-Apr-16 30-Mar-16 1000 23-Apr-16 8000 8001 8002 8003 8004 16. Create the CUSTOMER table structure illustrated in Figure P8.16. The customer number should store integer values. The name attributes should support variable length character data up to 30 characters each. The customer balance should sup- port up to six digits on the left of the decimal place and two digits to the right of the decimal place. 17. Create the INVOICE table structure illustrated in Figure P8.16. The invoice number should store integer values. The invoice date should store date values. The invoice amount should support up to 8 digits to the left of the decimal place and two digits to the right of the decimal place. 18. Write the set of SQL commands necessary to insert the data into the CUSTOMER table you created in Problem 16, as illustrated in Figure P8.16. 19. Write the set of SQL commands necessary to insert the data into the INVOICE table you created in Problem 17, as illustrated in Figure P8.16. 235.89 312.82 528.10 194.78 619.44
Expert Answer:
Answer rating: 100% (QA)
CREATE TABLE statement is used to create a new table in a database Syntax CREATE TABLE tablename col... View the full answer
Related Book For
College Mathematics for Business Economics Life Sciences and Social Sciences
ISBN: 978-0321614001
12th edition
Authors: Raymond A. Barnett, Michael R. Ziegler, Karl E. Byleen
Posted Date:
Students also viewed these databases questions
-
Consider the following simultaneous-move game: "Divide-the-Dollars". There are two players, Alice and Bob, who must decide how they want to divide $4. Alice can write down how much she wants for...
-
Juan Ortega believes that both the beginning and ending balances in retained earnings are shown in the stockholders equity section. Is Juan correct? Discuss.
-
Create and edit tables for What SUP (use the Ch9-02 file) a. Create a new table for What SUP that includes fields BuyerID, BuyerName, and BuyerPhone. The first field (BuyerID) is a Number data type;...
-
machine element is made of an alloy with Yield strength of 200 Mpa and fracture strain is 0.08. A machine element is characterized by the normal stress components as shown in the figure. The Answer...
-
Carrie Ford, an accountant for YellowPages.com, discovers that her supervisor Zach McGregor, made several errors last year. In total, the errors overstated Yellow Pages' net income by 20%. It is not...
-
Exercises 1 through 10 provide a statement, its truth value in parentheses, and an operation to be performed on that statement. Supply the new statement and the truth value of the new statement....
-
Purina entered in a contract with the defendant to sell the defendant piglets, known as weanlingsbaby pigs that have been weaned. It is uncontested that the buyer breached and that Purina is entitled...
-
Beverly Mills has decided to lease a hybrid car to save on gasoline expenses and to do her part to help keep the environment clean. The car she selected is available from only one dealer in the local...
-
What is immediate, up-to-date information? What is Real-time systems Information governance?
-
Use the 3 step Mathematical Induction process to prove the following statements. You must label and show all three steps. Step 1: Prove n = 1 is true Step 2: Assume true for all n = k Step 3: plug in...
-
Nizwa Food Processing Company is an Omani Establishment. Their trading results for the year ending 31st Dec, 2019 shows profit of RO 160,000. The following additional information is also given: 1....
-
Interview both a line manager and an HR manager and try to establish what roles they play in relation to grievance and discipline handling in the workplace. How do your fi ndings compare with what we...
-
Which of the following statements about interface methods are correct? (Choose three.) A. A private static interface method can call default methods. B. A public static interface method can call...
-
Which control signal in Figure 4.24 is the most critical to generate quickly and how much time does the control unit have to generate it if it wants to avoid being on the critical path? In this...
-
What is the output of the following? A. 2-2 B. 200-1 C. 500-0 D. 500-2 E. The code does not compile. F. The code compiles but throws an exception at runtime. 1: package reader; 2: import 3: 4: public...
-
How many lines need to be changed to make this method compile? A. Zero B. One C. Two D. Three E. Four F. Five. 1: 2: 3: 4: 5: 6: 7: 8: public void colors() { var yellow = ""; yellow = null; 9: 10:...
-
Consider the following Scala function definition: def f [X] (xs:List [X]) = xs match { case Nil > Nil case y::ys => ys What type does the pattern variable ys have?
-
a) Calculate the goodwill that was paid by Major Ltd on the acquisition of Minor Ltd. [10 marks] b) Prepare the consolidated statement of financial position for Major Ltd at 31 July 20X8. [30 marks]...
-
A family is thinking about buying a new house costing $120,000. The family must pay 20% down, and the rest is to be amortized over 30 years in equal monthly payments. If money costs 7.5% compounded...
-
The total accumulated costs C(i)and revenues R(t)(in thousands of dollars), respectively, for a coal mine satisfy C'(t) = 3 and R' (t) = 15e-01t where t is the number of years that the mine has been...
-
(A) Identify the basic and non basic variables.
-
Using the tools provided to you in this chapter, conduct a comprehensive review one of the websites listed below. Is it a reliable resource without underlying motivations? MinimumWage.com ...
-
Research and find at least three reports of fabricated or misleading news causing damage to a company or organization. Consider how the news was created and disseminated. What could have been done,...
-
What are the strategies for effective secondary research searches?
Study smarter with the SolutionInn App