Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Database Admin mysql: Using this database, write the SQL code to represent each of the following transactions. Use BEGIN TRANSACTION and COMMIT to group the

Database Admin mysql:

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

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

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

You can use this model to give you a clear idea:

image text in transcribed

IGURE P10.6 THE ABC MARKETS RELATIONAL DIAGRAM INVOICE LINE 7 IN -NUMBER .. 1 00 7 INV NUMBER LINE_NUMBER CUS CODE CUS LNAME CUS FNAME CUS INIMAL CUS AREACODE CUS PHONE CUS CREDITLIMIT CUS BALANCE CUS DATELSTPMT CUS DATELSTPUR PRODUCT CUS CODE INV DATE INV TOTAL INV TERMS INV STATUS P.CODE P DESCRIP P INDATE PQTYOH P CODE LINE UNITS LINE PRICE P MIN P PRICE P.DISCOUNT VCODE VENDOR PAYMENTS V NAME V CONTACT V AREACODE V PHONE V STATE V ORDER PMT DATE cus.coDE PMT AMT PMT TYPE PMT DETAILS IGURE P10.6 THE ABC MARKETS RELATIONAL DIAGRAM INVOICE LINE 7 IN -NUMBER .. 1 00 7 INV NUMBER LINE_NUMBER CUS CODE CUS LNAME CUS FNAME CUS INIMAL CUS AREACODE CUS PHONE CUS CREDITLIMIT CUS BALANCE CUS DATELSTPMT CUS DATELSTPUR PRODUCT CUS CODE INV DATE INV TOTAL INV TERMS INV STATUS P.CODE P DESCRIP P INDATE PQTYOH P CODE LINE UNITS LINE PRICE P MIN P PRICE P.DISCOUNT VCODE VENDOR PAYMENTS V NAME V CONTACT V AREACODE V PHONE V STATE V ORDER PMT DATE cus.coDE PMT AMT PMT TYPE PMT DETAILS

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

Step: 3

blur-text-image

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

5. Identify the essential functions of a job.

Answered: 1 week ago

Question

3. Describe the communicative power of group affiliations

Answered: 1 week ago