Skip to content

Hannahlyzer/rubysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Sample Database for use in Learning SQL

To use this database, do the following:

bundle install
cp ./starter.db ./test.db
ruby sqlcommand.rb

You can then enter SQL commands, such as:

SELECT * FROM Products;

To exit the program, just type quit. The following tables are present:

  • Customers
  • Products
  • Orders
  • Categories
  • Shippers
  • Suppliers
  • OrderDetails
  • Employees

Foreign key constraints are enforced. If you need to restore the database to the starting state, quit the sqlcommand program and copy ./starter.db to ./test.db.

About

SQL Exercises for CTD Students

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages