Question: Can someone help me with this please in SQL Problem 53 LargeCo is planning a new promotion in Alabama (AL) and wants to know about

Can someone help me with this please in SQL Problem 53 LargeCoCan someone help me with this please in SQL

Problem 53

LargeCo is planning a new promotion in Alabama (AL) and wants to know about the largest purchases made by customers in that state. Write a query to display the customer code, customer first name, last name, full address, invoice date, and invoice total of the largest purchase made by each customer in Alabama. Be certain to include any customers in Alabama who have never made a purchase; their invoice dates should be NULL and the invoice totals should display as 0. Sort the results by customer last name and then first name (Partial result are shown in Figure P7.53).

CUST_CODE CUST_FNAME CUST_LNAME CUST_STREET CUST_CITY CUST_STATE CUST_ZIP INV_DATE Largest Invoice 903 ROBIN ADDISON 323 LORETTA PLACE Mobile AL 36693 2017-08-26 230.63 643 NINA ALLEN 680 RED TALON DRIVE Robertsdale AL 36574 2017-06-21 11.99 295 DORTHY AUSTIN 829 BIG BEND LOOP Diamond Shamrock AL 36614 2017-04-24 589.75 393 FOSTER BERNAL 1299 EAST 3RD AVENUE Birmingham AL 35280 NULL 0.00 853 GAYLORD BOLTON 1069 LUGENE LANE Montgomery AL 36131 2017-11-25 372.68 925 ALANA BOOKER 1874 I STREET Mccullough AL 36502 2017-12-12 208.85 1248 LISA BRADY 491 LOWLAND AVENUE Daphne AL 36577 2017-12-05 414.47 538 CHIQUITA CALDWELL 1501 BRIGGS COURT Normal AL 35762 2017-05-26 143.90 89 MONICA CANTRELL 697 ADAK CIRCLE Loachapoka AL 36865 2017-03-31 516.58 CUST_CODE CUST_FNAME CUST_LNAME CUST_STREET CUST_CITY CUST_STATE CUST_ZIP INV_DATE Largest Invoice 903 ROBIN ADDISON 323 LORETTA PLACE Mobile AL 36693 2017-08-26 230.63 643 NINA ALLEN 680 RED TALON DRIVE Robertsdale AL 36574 2017-06-21 11.99 295 DORTHY AUSTIN 829 BIG BEND LOOP Diamond Shamrock AL 36614 2017-04-24 589.75 393 FOSTER BERNAL 1299 EAST 3RD AVENUE Birmingham AL 35280 NULL 0.00 853 GAYLORD BOLTON 1069 LUGENE LANE Montgomery AL 36131 2017-11-25 372.68 925 ALANA BOOKER 1874 I STREET Mccullough AL 36502 2017-12-12 208.85 1248 LISA BRADY 491 LOWLAND AVENUE Daphne AL 36577 2017-12-05 414.47 538 CHIQUITA CALDWELL 1501 BRIGGS COURT Normal AL 35762 2017-05-26 143.90 89 MONICA CANTRELL 697 ADAK CIRCLE Loachapoka AL 36865 2017-03-31 516.58

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!