1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
uysha [10]
3 years ago
8

Create a stored procedure named prc_inv_amounts to update the INV_SUBTOTAL, INV_TAX, and INV_TOTAL. The procedure takes the invo

ice number as a parameter. The INV_SUBTOTAL is the sum of the LINE_TOTAL amounts for the invoice, the INV_TAX is the product of the INV_SUBTOTAL and the tax rate (8 percent), and the INV_TOTAL is the sum of the INV_SUBTOTAL and the INV_TAX.
Computers and Technology
1 answer:
vova2212 [387]3 years ago
7 0

Answer:

The procedure in SQL is created as follows

Explanation:

--creating the procedure

CREATE OR REPLACE PROCEDURE prc_inv_amounts (W_IN IN NUMBER)

AS

--defining variables

W_CK NUMBER := 0;

W_SUBT NUMBER := 0;

W_TAX NUMBER := 0;

BEGIN

--Authentication process of the invoice

SELECT COUNT(*) INTO W_CK FROM INVOICE WHERE INV_NUMBER := W_IN;

--Transaction confirmation

IF W_CK = 1 THEN

SELECT SUM(LINE_TOTAL) INTO W_SUBT FROM LINE

WHERE

--checking the invoice for the desired invoice number

LINE.INV_NUMBER = W_IN;

W_TAX :=W_SUBT * 0.08;

--updating the invoice

UPDATE INVOICE

--setting the new values

SET INV_SUBTOTAL = W_SUBT,

INV_TAX = W_TAX,

INV_TOTAL =W_SUBT + W_TAX

WHERE INV_NUMBER = W_IN;

--ending the if statement

END IF;

--ending the procedure

END;

You might be interested in
Motorcyclist might make an adjustment in speed when encountering ?
Oduvanchick [21]

ANSWER

Motorcyclist might make an adjustment in speed when encountering All of the above. that is Rain Or Strong Wind ; Slick Roadways, and Potholes.

Explanation

But the rate at which to adjust the speed will depend on the condition. for an example how big the size of the porthole is and the strength of the wind among other considerations.

4 0
3 years ago
Read 2 more answers
Can anybody answer this?
soldier1979 [14.2K]

Answer:

ambot bya

Explanation:

wa jd ko kabalo kay bugo ko mi sign up ko dri kay mangita pd kog answer kay kapoy huna2 ug answer, may man dri kay ditso nako kupya

3 0
3 years ago
You need to synchronize your mobile device data with your desktop computer. for security reasons, your organization prohibits sy
jeyben [28]

Answer:

USB

Explanation:

WHile trying to sync your mobile device data with your desktop computer, and Trying to avoid syncing your device over wireless connections or the internet, the best possible solution that comes to mind is to make use of USB.

Here you simply connect your phone to a USB cable and plug it to the USB port on your computer, you will be able to carry out the necessary syncing without violating the promotions from your organization concerning syncing devices over wireless connections or the internet.

8 0
3 years ago
What is a narrative?
vichka [17]

Answer:

It's B the event that happened in a story

Explanation:

Narrative - a spoken or wirriten account of connections events, a story

3 0
3 years ago
Read 2 more answers
The storage capacity of Go ogle drive can be increased from ____________.
maks197457 [2]

Answer:

c. 100GB to 30TB

Explanation:

Please mark me as brainliest and hope this helps :)

4 0
3 years ago
Other questions:
  • What is the name of the amount of space between the content of a document and the edge of the page?
    13·1 answer
  • Which of the following will you select as X in the following series of clicks to lay the title over a chart: Chart Title box &gt
    14·1 answer
  • Baris script yang digunakan mendefinisikan website yang akan diblokir proxy server adalah
    5·1 answer
  • Discuss trends in cellular data transmission speeds
    15·2 answers
  • 2. BIOS is contained in ROM and not in RAM. Can you guess why?​
    15·1 answer
  • Write the issue related to the cyber ethnic. ​
    7·2 answers
  • What is a graphics card?
    5·1 answer
  • Examples of applying successful visual design principles to bring a web page together are _________________. (Choose all that ap
    9·1 answer
  • Which is the most correct option regarding subnet masks?
    10·1 answer
  • What does a virtual machine emulate?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!