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 (Figure P7.53).

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

slotion for problem no-53 of book- Database Systems: Design, Implementation, and Management, 13th Edition, by Carlos Coronel and Steven Morris

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
(Figure P7.53).
Figure P7.53.
Largest Purchases of Customers IN AL
Cust_Code Cust_FName Cust_LName|
903 ROBIN
Cust_Streot
323 LORETTA PLACE
680 RED TALON DRIVE
Cust City
Mobile
Cust State Cust_ZIP | Inv_Date |Larçost Invoica
8/26/2015
230.63
ADDISON
ALLEN
AL
36693
36574
643 NINA
295 DORTHY
Robertsdale
Diamond Shamrock AL
Dirmingham
Mantgomery
Mcculough
Daphno
Normal
Loachapoka
AL
6/21/2015
11.99
4/24/2015
AUSTIN
BERNAL
BOLTON
829 BIG BEND LOOP
36614
539 75
393 FOSTER
853 GAYLORD
35200
36131
1299 EAST 3RD AVENJE
AL
1069 LUGENE LANE
1874 I STREET
491 LOWLAND AVENUE
AL
11/25/2015
372 68
BOCKER
BRADY
208.65
925 ALANA
1248 LISA
36502
36677
12/12/2015
125/2015
AL
AL
414.47
538 CHIQUITA
89 MONICA
1233 NATHALIE
CALDWELL 1501 BRIGGS COURT
CANTRELL 697 ADAK CIRCLE
CHURCH
5/26/2015
3/31/2015
1124/2015
1439
516.68
160.96
AL
35762
AL
AL
36865
36303
1802 SNOWY OWL CIRCLE Napier Field
36033
36645
304 GERTRUDE CONNORS
Georgana
12/29/2015
10/25/2015
1/6/2016
1042 PLEASANT DRIVE
AL
376.32
1131 CARMA
CORNETT
767 CHSANA WAY
Kilen
AL
255. 12
1407 FELICIA
CRUZ
643 TURNAGAIN PARKWAY Coaburg
AL
35063
387.93
Transcribed Image Text: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 (Figure P7.53). Figure P7.53. Largest Purchases of Customers IN AL Cust_Code Cust_FName Cust_LName| 903 ROBIN Cust_Streot 323 LORETTA PLACE 680 RED TALON DRIVE Cust City Mobile Cust State Cust_ZIP | Inv_Date |Larçost Invoica 8/26/2015 230.63 ADDISON ALLEN AL 36693 36574 643 NINA 295 DORTHY Robertsdale Diamond Shamrock AL Dirmingham Mantgomery Mcculough Daphno Normal Loachapoka AL 6/21/2015 11.99 4/24/2015 AUSTIN BERNAL BOLTON 829 BIG BEND LOOP 36614 539 75 393 FOSTER 853 GAYLORD 35200 36131 1299 EAST 3RD AVENJE AL 1069 LUGENE LANE 1874 I STREET 491 LOWLAND AVENUE AL 11/25/2015 372 68 BOCKER BRADY 208.65 925 ALANA 1248 LISA 36502 36677 12/12/2015 125/2015 AL AL 414.47 538 CHIQUITA 89 MONICA 1233 NATHALIE CALDWELL 1501 BRIGGS COURT CANTRELL 697 ADAK CIRCLE CHURCH 5/26/2015 3/31/2015 1124/2015 1439 516.68 160.96 AL 35762 AL AL 36865 36303 1802 SNOWY OWL CIRCLE Napier Field 36033 36645 304 GERTRUDE CONNORS Georgana 12/29/2015 10/25/2015 1/6/2016 1042 PLEASANT DRIVE AL 376.32 1131 CARMA CORNETT 767 CHSANA WAY Kilen AL 255. 12 1407 FELICIA CRUZ 643 TURNAGAIN PARKWAY Coaburg AL 35063 387.93
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY