Rainbow Deals - hours only!Up to 80% off on all courses and bundles.-Close
Date and time


Good again. See what's happened? You can't insert a number out of range for the same reason you can't insert a text value - it simply won't fit!

You can use mathematical operators like + or * and you can also use logical operators like <= with your SQL statements. Take a look at the example below:

SELECT * FROM premium_account WHERE user_id = 5;

This will select all the information for the user with id 5. Piece of cake!


Premium accounts start to sell like hot cakes! Provided that user with the user_id 1 is Peter, select all information from table premium_account where user_id is greater than 1 to see how many premium accounts have been purchased.

Stuck? Here's a hint!


SELECT * FROM premium_account WHERE user_id > 1;