Final answer:
The student's question is about constructing an SQL query to find the largest purchase made by each customer in Alabama, including customers with no purchases (showing NULL dates and zero totals), and sorting the results by customer last name and first name.
Step-by-step explanation:
The question involves creating an SQL query that extracts information from a database concerning the largest purchases made by customers from Alabama (AL). The required data includes customer code, first and last names, full address, invoice date, and invoice total. For customers who have not made any purchases, the invoice dates should be shown as NULL and the invoice totals as 0. The final dataset should be sorted by customer last name and first name.
To create such a query, an SQL statement that uses functions such as MAX to find the largest purchase, LEFT OUTER JOIN to include customers with no invoices, and ordering clauses for proper sorting would need to be written. Given the nature of the data and the request, this SQL query is likely utilized for a business report or analysis to guide promotional activities in the state of Alabama by LargeCo.