MySQL
Output reference challenge
This challenge has an output reference, meaning that the SQL queries you write in the *.sql file must output the same result if you source it.
For these kind of challenges, there is a terminal tab enabled in the left pane so you can:
- Write down the tasks in the file
- source the file in the mysql> command line by executing source sql-6-*.sql
- Compare the output of your input file against the reference output
- If the result matches, Check it! afterwards
SQL MIN()
A sql-6-1.sql file has been opened for you.
Write each of the following tasks as a SQL statement in a new line:
- Select the product with the least stock from the e_store.products table. The output should look like this:
+————+