The shop asks "what can we sell right now?" many times a day. Save the answer as a view.
- Create a view named
in_stockwith theid,nameandpriceof every product whose stock is above 0. - Use the view to list the in-stock products that cost less than 10.00:
id,name,price. - The Kraken Plush (product 1) sells out. Set its stock to 0 in
products. - Think before you run it: how many rows does
in_stockshow now? - Replace the view so that it also shows
stock, as the last column.