Coder Social home page Coder Social logo

sql-starter's Introduction

Data Structure

ALBUM
AlbumId INTEGER PRIMARY KEY
Title NVARCHAR(160)
ArtistId INTEGER FOREIGN KEY

ARTIST
ArtistId INTEGER PRIMARY KEY
Name NVARCHAR(120)

CUSTOMER
CustomerId INTEGER PRIMARY KEY
FirstName NVARCHAR(40)
LastName NVARCHAR(20)
Company NVARCHAR(80)
Address NVARCHAR(70)
City NVARCHAR(40)
State NVARCHAR(40)
Country NVARCHAR(40)
PostalCode NVARCHAR(10)
Phone NVARCHAR(24)
Fax NVARCHAR(24)
Email NVARCHAR(60)

EMPLOYEE
EmployeeId INTEGER PRIMARY KEY
LastName NVARCHAR(20)
FirstName NVARCHAR(20)
Title NVARCHAR(30)
ReportsTo INTEGER FOREIGN KEY
BirthDate DATETIME
HireDate DATETIME
Address NVARCHAR(70)
City NVARCHAR(40)
State NVARCHAR(40)
Country NVARCHAR(40)
PostalCode NVARCHAR(10)
Phone NVARCHAR(24)
Fax NVARCHAR(24)
Email NVARCHAR(60)

GENRE
GenreId INTEGER PRIMARY KEY
Name NVARCHAR(120)

INVOICE
InvoiceId INTEGER PRIMARY KEY
CustomerId INTEGER FOREIGN KEY
InvoiceDate DATETIME
BillingAddress NVARCHAR(70)
BillingCity NVARCHAR(40)
BillingState NVARCHAR(40)
BillingCountry NVARCHAR(40)
BillingPostalCode NVARCHAR(10)
Total NUMERIC

INVOICELINE
InvoiceLineId INTEGER PRIMARY KEY
InvoiceId INTEGER FOREIGN KEY
TrackId INTEGER FOREIGN KEY
UnitPrice NUMERIC
Quantity INTEGER

MEDIATYPE
MediaTypeId INTEGER PRIMARY KEY
Name NVARCHAR(120)

PLAYLIST
PlaylistId INTEGER PRIMARY KEY
Name NVARCHAR(120)

PLAYLISTTRACK
PlaylistId INTEGER PRIMARY KEY
TrackId INTEGER FOREIGN KEY

TRACK
TrackId INTEGER PRIMARY KEY
Name NVARCHAR(200)
AlbumId INTEGER FOREIGN KEY
MediaTypeId INTEGER FOREIGN KEY
GenreId INTEGER FOREIGN KEY
Composer NVARCHAR(220)
Milliseconds INTEGER
Bytes INTEGER
UnitPrice NUMERIC

sql-starter's People

Contributors

kc657 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.