Tutorials References Exercises VideosMenu
Free WebsiteGet CertifiedPro

MySQL Tutorial

MySQL HOMEMySQL IntroMySQL RDBMS

MySQL SQL

MySQL SQLMySQL SELECTMySQL WHEREMySQL AND, OR, NOTMySQL ORDER BYMySQL INSERT INTOMySQL NULL ValuesMySQL UPDATEMySQL DELETEMySQL LIMITMySQL MIN and MAXMySQL COUNT, AVG, SUMMySQL LIKEMySQL WildcardsMySQL INMySQL BETWEENMySQL AliasesMySQL JoinsMySQL INNER JOINMySQL LEFT JOINMySQL RIGHT JOINMySQL CROSS JOINMySQL Self JoinMySQL UNIONMySQL GROUP BYMySQL HAVINGMySQL EXISTSMySQL ANY, ALLMySQL INSERT SELECTMySQL CASEMySQL Null FunctionsMySQL CommentsMySQL Operators

MySQL Database

MySQL Create DBMySQL Drop DBMySQL Create TableMySQL Drop TableMySQL Alter TableMySQL ConstraintsMySQL Not NullMySQL UniqueMySQL Primary KeyMySQL Foreign KeyMySQL CheckMySQL DefaultMySQL Create IndexMySQL Auto IncrementMySQL DatesMySQL Views

MySQL References

MySQL Data TypesMySQL Functions

MySQL Examples

MySQL ExamplesMySQL QuizMySQL ExercisesMySQL Certificate

MySQL Exercises


You can test your MySQL skills with W3Schools' Exercises.


Exercises

We have gathered a variety of MySQL exercises (with answers) for each MySQL Chapter.

Try to solve an exercise by filling in the missing parts of a code. If you're stuck, hit the "Show Answer" button to see what you've done wrong.

Count Your Score

You will get 1 point for each correct answer. Your score and total score will always be displayed.

Start MySQL Exercises

Good luck!

Start MySQL Exercises ❯

If you don't know MySQL, we suggest that you read our MySQL Tutorial from scratch.