Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MySQL SUM() and COUNT() A sql-6-11.sql file has been opened for you. Write the following task as a SQL statement in a new line (remember
MySQL
SUM() and COUNT()
A sql-6-11.sql file has been opened for you.
Write the following task as a SQL statement in a new line (remember that you can source the file to compare the output reference):
1 - Select the total stock and the total products from the e_store.products table in a single query. Alias the result as total_stock and total_count respectively. The output should look like this:
+-------------+----------------+ | total_stock | total_products | +-------------+----------------+ | 35 | 6 | +-------------+----------------+ 1 row in set (0.06 sec)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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