Change the delivery date in the table order_db as delivery_date = date of order + 5.
Change the delivery date in the table order_db as delivery_date = date of order + 5.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
100%
The class I'm taking is databass management in computer science!
I have attached the problem below! Please view both attachments before answering. 1 attachment is the table and my failed work and the other attachment is the question i need help finding a solution for. i tried using different commands and no luck. I am using mysql terminal .Please explain in detail so i can fully understand . Thank you so much in advance!

Transcribed Image Text:Change the delivery date in the table order_db as delivery_date = date of order +
5.

Transcribed Image Text:mysql> (select * from order_db);
| orderid custid | itemcode | orderquantity
2 |
2 |
2
2 I
111 |
250
200
222
100
800
600
| deliverydate
| modeofpayment | date_of_order |
| 2020-05-30
2020-05-30
2021-09-21 | R
| C
| C
2020-05-28
2020-05-28
1998-02-15
3 rows in set (0.00 sec)
mysql> update order_db
->set deliverydate='delivery_date = date of order +5';
ERROR 1292 (22007): Incorrect date value: 'delivery_date = date of order + 5' for column 'deliverydate' at row 1
mysql> update order_db
-> SET deliverydate = DATEADD(day, 5, order_db.date_of_order);
ERROR 1305 (42000): FUNCTION sp_cs355.DATEADD does not exist
mysql> update order_db
-> set deliverydate = date_of_order + 5;
ERROR 1292 (22007): Incorrect date value: '20200533' for column 'deliverydate' at row 1
mysql>
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps

Knowledge Booster
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.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education