8002 1002 30/3/2020 528.10 8003 1003 12/4/2020 194.78 8004 1004 23/4/2020 619.44 1. Create both the CUSTOMER and INVOICE tables structure above. Details of both tables are: a) 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 support up to six digits on the left of the decimal place and two digits to the right of the decimal place. b) 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. 2. Write the SQL commands necessary to insert the data into the CUSTOMER table and the INVOICE table created in (1).

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter3: Performing Calculations With Formulas And Functions
Section: Chapter Questions
Problem 2.11CP
icon
Related questions
icon
Concept explainers
Question
Part 1:
CUSTOMER
CUST_NUM
CUST_LNAME
CUST_FNAME
CUST_BALANCE
1000
Billy
Jean
1050.11
1001
Amanda
John
840.92
INVOICE
INV DATE
23/3/2020
INV_NUM
CUST_NUM
INV_AMOUNT
8000
1000
235.89
8001
1001
23/3/2020
312.82
8002
1002
30/3/2020
528.10
8003
1003
12/4/2020
194.78
8004
1004
23/4/2020
619.44
1. Create both the CUSTOMER and INVOICE tables structure above. Details of both tables are:
a) 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 support up to six digits on
the left of the decimal place and two digits to the right of the decimal place.
b) 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.
2. Write the SQL commands necessary to insert the data into the CUSTOMER table and the INVOICE
table created in (1).
Transcribed Image Text:Part 1: CUSTOMER CUST_NUM CUST_LNAME CUST_FNAME CUST_BALANCE 1000 Billy Jean 1050.11 1001 Amanda John 840.92 INVOICE INV DATE 23/3/2020 INV_NUM CUST_NUM INV_AMOUNT 8000 1000 235.89 8001 1001 23/3/2020 312.82 8002 1002 30/3/2020 528.10 8003 1003 12/4/2020 194.78 8004 1004 23/4/2020 619.44 1. Create both the CUSTOMER and INVOICE tables structure above. Details of both tables are: a) 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 support up to six digits on the left of the decimal place and two digits to the right of the decimal place. b) 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. 2. Write the SQL commands necessary to insert the data into the CUSTOMER table and the INVOICE table created in (1).
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning