1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Stolb23 [73]
4 years ago
7

LargeCo is planning a new promotion in Alabama (AL) and wants to know about the largest purchases made by customers in that stat

e. 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
Computers and Technology
1 answer:
pychu [463]4 years ago
5 0

Answer:

Check the explanation

Explanation:

Assuming Cust_code is unique for every customer.

Query :

SELECT * FROM CUSTOMER WHERE CUST_STATE= "AL" GROUP BY CUST_CODE HAVING LARGEST INVOICE = MAX(LARGEST INVOICE) OR (LARGEST INVOICE =0 and INV_DATE IS NULL);

You might be interested in
Ep-34 where should you aim a fire extinguisher's stream when extinguishing a fire?
patriot [66]
When extinguishing a fire, the extinguisher's stream should be aimed at the base of the flame using a sweeping motion. This will allow one to kill the fire from the source. This will quickly put out the fire faster applying the extinguisher from the upside.
8 0
4 years ago
Please give me some names of web pages designed as a hoax or to mislead purposely the reader for some aim.
Tems11 [23]
When ever u download something Add fly pops up so that could be one
6 0
4 years ago
Surrendering to digital distractions can result in a disappointed
Alja [10]

Answer:

I would say true

Explanation:

4 0
3 years ago
Read 2 more answers
He trampled all over my feelings when he told me he didn’t want to go to dance with me
Tatiana [17]
If he thinks he could just do that to u he is wrong ur probably way hotter than he is keep ur head up y’all and u the best!
4 0
3 years ago
which of the following is a component of a rope-rewind starter system? a. a recoil spring c. an air vane governor b. a wrist pin
Zinaida [17]
"Recoil spring" is the one among the following choices given in the question that is <span>a component of a rope-rewind starter system. The correct option among all the options that are given in the question is the first option or option "a". I hope that this is the answer that has come to your desired help.</span>
3 0
3 years ago
Other questions:
  • How long does the Splunk search job remain active
    5·1 answer
  • Ruby is creating a presentation. She wants each slide displayed at intervals of five seconds. Which feature in the presentation
    6·2 answers
  • The ability to keep web page visitors at your site is called _______.
    11·1 answer
  • Which kinds of Internet content do you think you need permission to use? Check all that apply.
    8·2 answers
  • If the derived class does not override a public member function of the base class, you may specify a call to that public member
    7·1 answer
  • Calculate the average of a set of grades and count
    9·1 answer
  • Why is it helpful that the ribbon tabs can collapse?
    8·1 answer
  • when you enter a formula in a cell the result of the calculation displays in a cell. how do views of formula after entering it?
    9·2 answers
  • How to give a brainiest on a question? if you teach me i will give brainiest
    7·2 answers
  • enter formula that uses the IF function to test whether the number of years of experience (cell M5) is greater than or equal to
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!