Question: 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 :)

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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!