Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HELP! I WILL THUMBS UP :) Need help solving this with MySQL :) 5. Blizzard Order Sequence Let's say Blizzard maintains the information about its

HELP! I WILL THUMBS UP :) Need help solving this with MySQL :)

image text in transcribed image text in transcribed

5. Blizzard Order Sequence Let's say Blizzard maintains the information about its orders in a database table named BLIZZARD_ORDERS, which is described below. Data Model Name ORDER_ID ORDER_DATE BLIZZARD_ORDERS Type Description Integer A number in the inclusive range [1, 1000), which uniquely identifies the order. This is the primary key. Date The date when the order was placed. String Order status, which can be in any number of states among: 'PLACED', 'SHIPPED', 'IN TRANSIT', 'DELIVERED'. Integer A number in the inclusive range [1, 1000] which uniquely identifies the customer who placed the order, and represents their Battle.net account Id. STATUS BNET_ID Sample Data BLIZZARD ORDERS ORDER_ID ORDER_DATE STATUS BNET_ID 1 2003-01-06 PLACED 363 2 2003-01-06 PLACED 128 3 2003-01-06 IN TRANSIT 181 BLIZZARD_ORDERS ORDER_ID ORDER_DATE STATUS BNET_ID 1 2003-01-06 PLACED 363 N 2003-01-06 PLACED 128 3 2003-01-06 IN TRANSIT 181 4 2003-01-06 DELIVERED 121 5 2003-01-07 DELIVERED 114 6 2003-01-07 IN TRANSIT 278 7 2003-01-07 PLACED 114 8 2003-05-05 IN TRANSIT 350 9 9 2003-05-05 DELIVERED 103 Write an SQL query to print all of the details of the earliest (by time) five orders, which are not yet delivered, and list the results in order of both time and smallest order ID first. Sample Output 123 2003-01-06 PLACED 363 456 2003-01-06 PLACED 128 789 2003-01-06 IN TRANSIT 181 800 2003-01-07 IN TRANSIT 278 900 2003-01-07 PLACED 114

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

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

6. Explain some strategies for dealing with conflict.

Answered: 1 week ago