Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

leemengtw/SQL-exercise

Repository files navigation

SQL-exercise

Schemas, Questions & Solutions for SQL Exercising

Introduction

The schemas and questions are

[1] from Wikibook SQL Exercises [https://en.wikibooks.org/wiki/SQL_Exercises]. Solutions are from both this Wikibook and me (exercise 1-8). I also added some questions by myself.

or

[2] given by me using some practical examples I encountered (exercise 9-10).

Repository Structure

The repo structure is like below:

SQL-exercise
└───SQL_exercise_1
└───......
└───SQL_exercise_*
 │ *_schema_figure.png
 │ *_build_schema.sql
 │ *_questions_and_solutions.sql
└───......

Setup

To setup database for practicing, enter the exercise folder (e.g., exercise_01) which you want to practice and start SQLite:

cd SQL_exercise_01
sqlite3

Build tables using SQL script provided with .read dot-command in sqlite shell:

.read 1_build_schema.sql

Start practicing.

License

Please note this repostory is under the Creative Commons Attribution-ShareAlike License[https://creativecommons.org/licenses/by-sa/3.0/].

About

Practice with "Real" SQL Problems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PLpgSQL 100.0%

AltStyle によって変換されたページ (->オリジナル) /