LmtDNE / SQL-PQL

Interactive SQL tutorial

Home Page:https://tutorial-sql-pql.herokuapp.com/lesson/0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Interactive SQL tutorial

https://tutorial-sql-pql.herokuapp.com/lesson/0


Languages

Language:Ruby 59.2%Language:HTML 25.9%Language:JavaScript 8.5%Language:CSS 5.6%Language:CoffeeScript 0.7%