Answered step by step
Verified Expert Solution
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 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 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started