Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a query that returns the alphabetized first letter of the customer's last name and the count of active and inactive customers for only

Write a query that returns the alphabetized first letter of the customer's last name and the count of active 

Write a query that returns the alphabetized first letter of the customer's last name and the count of active and inactive customers for only those letters where the count of active customers is greater than 30. Label the columns as follows: starts with is the first column and the first letter of the customer's last_name. active_count is the second column and the count of active customers (as defined in the textbook examples of Chapter 11). inactive_count is the third column and the count of inactive customers (as defined in the textbook examples of Chapter 11). The output should look like the following: starts with active_count | inactive_count | B 1 G | H M | IR | S | W 1 8 rows in set (0.00 sec) 55 1 49 1 42 1 49 1 57 | 38 | 54 | 37 | 01 31 11 01 21 21 01 11

Step by Step Solution

There are 3 Steps involved in it

Step: 1

It seems like you are looking for a SQL query to retrieve information about the count of active and ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming With Microsoft Visual Basic 2017

Authors: Diane Zak

8th Edition

1337102121, 9781337517058, 978-1337102124

Students also viewed these Databases questions

Question

According to the text, what makes a person successful?

Answered: 1 week ago