Question: QL SUM ( ) A sql - 6 - 5 . sql file has been opened for you. Write each of the following tasks as
QL SUM
A sqlsql file has been opened for you.
Write each of the following tasks as a SQL statement in a new line remember that you can source the file to compare the output reference:
Use the estore database
Select the total stock of all products in the products table. Alias the column name as totalstock. The resulting table should look like this:
totalstock
row in set sec
Select the total stars of the product with id Alias the column name as totalstars. The resulting table should look like this:
id totalstars
row in set sec
Once you have completed these tasks press the Check It button to have your solution assessed.
Check It
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
