All Projects → lerocha → Chinook Database

lerocha / Chinook Database

Licence: other
Sample database for SQL Server, Oracle, MySQL, PostgreSQL, SQLite, DB2

Labels

Projects that are alternatives of or similar to Chinook Database

Pointcloud
A PostgreSQL extension for storing point cloud (LIDAR) data.
Stars: ✭ 289 (-63.23%)
Mutual labels:  plpgsql
Pg Shortkey
YouTube-like Short IDs as Postgres Primary Keys
Stars: ✭ 402 (-48.85%)
Mutual labels:  plpgsql
Postgrest Starter Kit
Starter Kit and tooling for authoring REST API backends with PostgREST
Stars: ✭ 657 (-16.41%)
Mutual labels:  plpgsql
Cgasm
We're insanely passionate about command line asm documentation in the cloud, and we're crushing it!
Stars: ✭ 321 (-59.16%)
Mutual labels:  plpgsql
103976
103976个英语单词库(sql版,csv版,Excel版)包含英文单词,中文翻译,单词的词性及多种词义,执行SQL语句就可以生成表,支持SQL Server,MySQL等多种数据库
Stars: ✭ 361 (-54.07%)
Mutual labels:  plpgsql
Mixerp
Open Source ERP, HRM, MRP, MPS
Stars: ✭ 472 (-39.95%)
Mutual labels:  plpgsql
Sqlite Parser
JavaScript implentation of SQLite 3 query parser
Stars: ✭ 279 (-64.5%)
Mutual labels:  plpgsql
Mysql Sys
The MySQL sys schema
Stars: ✭ 758 (-3.56%)
Mutual labels:  plpgsql
Practical Sql
Code and Data for the book "Practical SQL" by Anthony DeBarros, published by No Starch Press (2018).
Stars: ✭ 392 (-50.13%)
Mutual labels:  plpgsql
Pgtap
PostgreSQL Unit Testing Suite
Stars: ✭ 631 (-19.72%)
Mutual labels:  plpgsql
Plpgsql check
plpgsql_check is linter tool for language PL/pgSQL (native language for PostgreSQL store procedures).
Stars: ✭ 322 (-59.03%)
Mutual labels:  plpgsql
100daysofiac
100 Days of IaC in Azure
Stars: ✭ 347 (-55.85%)
Mutual labels:  plpgsql
Audit Trigger
Simple, easily customised trigger-based auditing for PostgreSQL (Postgres). See also pgaudit.
Stars: ✭ 493 (-37.28%)
Mutual labels:  plpgsql
Postgres Json Schema
JSON Schema validation for PostgreSQL
Stars: ✭ 319 (-59.41%)
Mutual labels:  plpgsql
Blog
Everything about database,business.(Most for PostgreSQL).
Stars: ✭ 6,330 (+705.34%)
Mutual labels:  plpgsql
Meguca
anonymous realtime imageboard focused on high performance and transparent moderation
Stars: ✭ 286 (-63.61%)
Mutual labels:  plpgsql
Vector Datasource
Tilezen vector tile service - OpenStreetMap data in several formats
Stars: ✭ 427 (-45.67%)
Mutual labels:  plpgsql
Mysql Deadlocks
收集一些常见的 MySQL 死锁案例
Stars: ✭ 777 (-1.15%)
Mutual labels:  plpgsql
Demo
“Happy Lager” Craft CMS demo site.
Stars: ✭ 730 (-7.12%)
Mutual labels:  plpgsql
Node Sqlite3
Asynchronous, non-blocking SQLite3 bindings for Node.js
Stars: ✭ 5,083 (+546.69%)
Mutual labels:  plpgsql

Chinook Database

Chinook is a sample database available for SQL Server, Oracle, MySQL, etc. It can be created by running a single SQL script. Chinook database is an alternative to the Northwind database, being ideal for demos and testing ORM tools targeting single and multiple database servers.

Supported Database Servers

  • MySQL
  • SQL Server
  • SQL Server Compact
  • SQLite
  • PostgreSQL
  • Oracle
  • DB2

Data Model

The Chinook data model represents a digital media store, including tables for artists, albums, media tracks, invoices and customers.

Sample Data

Media related data was created using real data from an iTunes Library. It is possible for you to use your own iTunes Library to generate the SQL scripts, see instructions below. Customer and employee information was manually created using fictitious names, addresses that can be located on Google maps, and other well formatted data (phone, fax, email, etc.). Sales information is auto generated using random data for a four year period.

Why the name Chinook?

The name of this sample database was based on the Northwind database. Chinooks are winds in the interior West of North America, where the Canadian Prairies and Great Plains meet various mountain ranges. Chinooks are most prevalent over southern Alberta in Canada. Chinook is a good name choice for a database that intents to be an alternative to Northwind.

How do I Download and Create the Chinook Database?

Download the files from the Downloads page. It is provided one or more SQL script file for each database vendor supported. You can run these SQL scripts with your preferred database tool.

For SQL Server, Oracle, MySQL and SQLite, there are available batch files that will execute the respective SQL script(s). These batch files use the database server command tool (mysql.exe for MySQL, sqlcmd.exe for SQL Server, sqlplus.exe for Oracle, and sqlite3.exe for SQLite). It is recommended to open a Command Prompt window as Administrator in order to run these batch files.

For embedded databases, SQLite and SQL Server Compact, it is also provided the embedded database files in addition to the SQL script files.

Notes:

  • MySQL
    • Tested with MySQL Server 5.1.
    • The CreateMySql.bat script uses localhost server with the following user/password: root/p4ssw0rd. Change this file to match your settings before running it.
  • Oracle
    • Tested with Oracle Database 10g Express Edition (XE).
    • The CreateOracle.sql creates a new user/password: chinook/p4ssw0rd. Change this script if you want a different user/password.
  • SQL Server
    • Tested with SQL Server Express 2008.
  • SQL Server Compact
    • Tested with SQL Server Compact 3.5 SP1.
    • We included the compact databases (sdf files) using version 3.5.8080.0. If you prefer to create your own compact database, then you can use the .sqlce script with SQL Server Management Studio Express tool.
  • SQLite
    • Tested with SQLite 3.7.3

Development

System Requirements

  • Visual Studio 2012
  • SQL Server 2008 Express
  • Oracle Database 11g Express Edition Release 2 (XE)
  • MySQL Community Server 5.5.28
    • Choose all default settings when installing, but on the MySQL Server Instance installer make sure to select:
      • Best Support For Multilingualism
      • Include Bin Directory in Windows PATH
  • SQLite 3.7 Command Line
  • DB2 Express-C
  • PostgreSQL

Building and Generating the SQL Scripts

  • Open the solution file ChinookDatabase.sln in Visual Studio.
  • If you want to use the data from your own iTunes library, then replace the file ChinookDatabase\DataSources_Xml\Source\iTunes Music Library.xml with your version.
  • In app.config, verify that the connection strings are matching any changes you made to username/password above. Also, the Oracle connection string uses the Express Edition, e.g. Data Source=xe. So, change it if you are using a different Oracle edition.
  • On the Solution Explorer, click on your Solution and then click on the Transform All Templates button at the Solution Explorer buttons bar.
  • Rebuild the solution.
  • Verify that your database servers are properly set:
    • The batch file DataSources\CreateMySql.bat uses the root user with the password p4ssw0rd.
    • The generated Oracle SQL script creates a new user chinook, with the password p4ssw0rd. You might want to change this to use a different user/password.
  • Create the database using the appropriate scripts.
  • Run the database tests in ChinookDatabase.Test to make sure your database was created properly.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].