w3resource

SQL Exercises, Practice, Solution


This resource offers a total of 2605 SQL problems for practice. It includes 1246 main exercises, each accompanied by solutions, detailed explanations, and four/five related problems.

SQL Exercises :

SQL (Structured Query Language) is an ANSI-standard language for managing and manipulating relational database systems. It retrieves, updates, and organizes data stored in tables, where relationships between data are also defined through tables.

Master SQL through hands-on practice! This section offers exercises for beginners to advanced users. Happy coding!

You may read our SQL tutorial before solving the following exercises.

List of SQL Exercises:

Database Design and Structure SQL Fundamentals Data Aggregation and Formatting Advanced Querying Techniques HR Database-Specific Exercises Performance and Optimization Data Integrity and Security Database Administration Stored Procedures and Functions Specialized Topics Movie Database Soccer Database Hospital Database Employee Database AdventureWorks Database: SQL Beginners Projects: SQL Challenges-1:
  • More to come..!
  • Structure of inventory database :

    Inventory database


    Structure of HR database :

    HR database


    Structure of movie database :

    Movie database


    Structure of soccer database :

    Soccer database


    Structure of employee database :

    Employee database


    Structure of hospital database :

    Hospital database


    Syntax diagram of SQL SELECT statement

    Employee database


    Download-icon

    You may download the structure and data of the tables of database on which SQL Exercises are built.

    Please note that PostgreSQL 9.4 is used and the file which you would download is generated using pg_dump

    

    Follow us on Facebook and Twitter for latest update.