Skip to content

SQL-PQL (pronouced "Sequel Prequel") is an interactive SQL learning guide. It is developed using Ruby on Rails, Postgres SQL, Bootstrap, YAML, JQuery, Underscore.string, AJAX, OmniAuth, JST, EJS and hosted on Heroku.

Notifications You must be signed in to change notification settings

mluu510/SQL-PQL

Repository files navigation

Info

SQL-PQL (pronouced "Sequel Prequel") is an interactive SQL learning guide inspired by SQL Zoo. It is developed using Ruby on Rails, Postgres SQL, Bootstrap, YAML, JQuery, Underscore.string, AJAX, OmniAuth, JST, EJS and hosted on Heroku. Vist the live demo HERE and enjoy.

We teach SQL by showing you sample query on a live table with examples and then quiz you on similar concept on the next tab. We believe the best way to learn SQL is not through reading boring SQL book but to actually create your own query in a safe and fun sandbox enviroment.

The first table you'll be working with is called "world". The world table continues basic information about all the countries around the world. It is a column for the country name, the region it is located in, the area in KM2, the population and GDP in USD.

This guide will throughly teach you the following SQL commands:

  • SELECT
  • DISTINCT
  • SUM
  • COUNT
  • MAX
  • AS
  • FROM
  • WHERE
  • AND
  • OR
  • LIKE
  • IN
  • BETWEEN
  • ORDER BY
  • HAVING
  • LIMIT
  • JOIN

This guide works on any device using a responsive web design pattern provided by Bootstrap. The site uses AJAX for querying the result in the background and JQuery and JST to display the result.

Install

Clone or fork the project with this link:

https://github.com/mluu510/SQL-PQL.git

Get all the dependencies with bundle

bundle install

Create and migrate the database

rake db:create
rake cd:migrate

Seed the database with wrold_import.txt

cat world_import.txt | psql sql_pql_development

Start the rails server

rails s

visit web witht his URL:

http://localhost:3000

About

SQL-PQL (pronouced "Sequel Prequel") is an interactive SQL learning guide. It is developed using Ruby on Rails, Postgres SQL, Bootstrap, YAML, JQuery, Underscore.string, AJAX, OmniAuth, JST, EJS and hosted on Heroku.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •