Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Calculate Days Between Ordering and Shipping An analyst in the quality assurance office reviews the time elapsed between receiving an order and shipping the order.

Calculate Days Between Ordering and Shipping An analyst in the quality assurance office reviews the time elapsed between receiving an order and shipping the order. Any orders that haven't been shipped within a day of the order being placed are investigated. Create a function named ORD_SHIP_SF that calculates the number of days between the basket's creation date and the shipping date. The function should return a character string that states OK if the order was shipped within a day or CHECK if it wasn't. If the order hasn't shipped, return the string Not shipped. The IDSTAGE column of the BB_BASKETSTATUS table indicates a shipped item with the value 5, and the DTSTAGE column is the shipping date. The DTORDERED column of the BB_BASKET table is the order date. Review data in the BB_BASKETSTATUS table, and create an anonymous block to test all three outcomes the function should handle

Step by Step Solution

3.52 Rating (152 Votes )

There are 3 Steps involved in it

Step: 1

To create the ORDSHIPSF function and an anonymous block to test ... 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

Auditing A Practical Approach with Data Analytics

Authors: Raymond N. Johnson, Laura Davis Wiley, Robyn Moroney, Fiona Campbell, Jane Hamilton

1st edition

1119401747, 978-1119401742

More Books

Students also viewed these Databases questions

Question

List 4 things you can do with JavaScript on a webpage.

Answered: 1 week ago