Question: MySQL SQL Average A sql-6-7.sql file has been opened for you. Write each of the following tasks as a SQL statement in a new line
MySQL
SQL Average
A sql-6-7.sql 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):
1 - Use the e_store database
2 - Get the average rating of product_id 4. Alias the average result as: avg_rating. The result should look like this:
+----+------------+ | id | avg_rating | +----+------------+ | 4 | 3.5000 | +----+------------+ 1 row in set (0.08 sec)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
