Create the UPDATE_INVOICE procedure to change the date of the invoice whose number is stored in I_INVOICE_NUM to the date currently found in I_INVOICE_DATE.
SQL
SQL stands for Structured Query Language, is a form of communication that uses queries structured in a specific format to store, manage & retrieve data from a relational database.
Queries
A query is a type of computer programming language that is used to retrieve data from a database. Databases are useful in a variety of ways. They enable the retrieval of records or parts of records, as well as the performance of various calculations prior to displaying the results. A search query is one type of query that many people perform several times per day. A search query is executed every time you use a search engine to find something. When you press the Enter key, the keywords are sent to the search engine, where they are processed by an algorithm that retrieves related results from the search index. Your query's results are displayed on a search engine results page, or SER.
Task 8: Create the UPDATE_INVOICE procedure to change the date of the invoice whose number is stored in I_INVOICE_NUM to the date currently found in I_INVOICE_DATE.
![INVOICE_NUM
INVOICE_DATE
CUST_ID
14216
2021-11-15
125
14219
2021-11-15
227
14222
2021-11-16
294
14224
2021-11-16
182
14228
2021-11-18
435
14231
2021-11-18
125
14233
2021-11-18
435
14237
2021-11-19
616](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F0985f779-e099-4707-8f72-7eb4444fa04d%2F38fd57eb-2518-461c-b651-3c856780a265%2F1y6biw9_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Code is incorrect, did not return any results. Screenshot is to prove code doesn't run in mySQL.
![Lab 8-1: KimTay Pet Supplies
Tasks
!!!!
3
Till
CENGAGE MINDTAP
1
Task 8: Create the UPDATE_INVOICE procedure to change the date of the
invoice whose number is stored in I_INVOICE_NUM to the date currently found in
10.00 I_INVOICE_DATE.
0.00
out of
Checks
O out of 1 checks passed. Review the results below for more details.
SQL Database Test Incomplete
Complete task 8
Feedback Ⓡ
The wrong headers were returned.
Some expected rows were missing (shown in red below).
Test Query Ⓡ
CALL UPDATE_INVOICE('00001', '2021-11-21')
SELECT * FROM INVOICES WHERE INVOICE_NUM = '00001'
Expected Results
INVOICE_NUM
00001
Actual Results
No data
INVOICE_DATE
2021-11-21
CUST ID
294
Task 9: Create the DELETE_INVOICE procedure to delete the invoice whose
Lin T THMATAF MLIM
<
E
FILETREE
~/workspace
query.sql
query2.sql
query.sql
1 DELIMITER //
2
3 CREATE PROCEDURE UPDATE_INVOICE (IN I_INVOICE_NUM INT, I_INVOICE_DATE DATE)
4
5 BEGIN
6
7
8
9
10
11 END//
12
13 DELIMITER ;
14
X query2.sql
x +
UPDATE INVOICES SET INVOICE_DATE= I_INVOICE_DATE
SQL Viewer
WHERE INVOICE_NUM=I_INVOICE_NUM;
X >_ Terminal
+
Query completed
Q Search this course
X
?
A-Z](https://content.bartleby.com/qna-images/question/10b1f275-2c41-4985-b23a-aa3382c0d493/fc0717dd-ee4d-4730-a78a-25033f2f30e5/25vqd3_thumbnail.png)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)