Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using this database, write the SQL code to represent each one of the following transactions. Use BEGIN TRANSACTION and COMMIT to group the SQL statements

Using this database, write the SQL code to represent each one of the following transactions. Use BEGIN TRANSACTION and COMMIT to group the SQL statements in logical transactions.

image text in transcribed

On May 11, 2006, customer 10010 makes a credit purchase (30 days) of one unit of product 11QER/31 with a unit price of $110.00; the tax rate is 8%. The invoice number is 10983, and this invoice has only one product line.

On June 3, 2006, customer 10010 makes a payment of $100 in cash. The payment ID is 3428.

Create a simple transaction log (using the same format as that in the case assignment) to represent the actions of the two previous transactions.

INVOICE LINE CUSTOMER aus cODE CUS LNAME CUS FNAME CUS INITIAL CUS AREACODE CUS PHONE CUS CREDITLIMIT CUS BALANCE CUS DATELSTPMT CUS DATELSTPUR INY NMBER CUS CODE INV_DATE INV TOTA INV TERMS INV STATUS INY NMBER PRODUCT P CODE P DESCRIPT P INDATE P QTYOH P MIN PPRICE P DISCOUNT _CODE P CODE LINE_UNITS LINE PRICE VENDOR PAYMENTS PMT D PMT DATE CUS CODE PMT AMT PMT TYPE PMT DETAILS Y CODE V_NAME CONTACT V_AREACODE VPHONE VSTATE V ORDER

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

How many stores are missing benchmark data from 2016?

Answered: 1 week ago