SQL Schema Explorer by Tim Abell

sqlite-chinook

Invoice

Nearest Tables

Tap a table in the diagram to jump straight to it. Tap & drag in a gap to pan around. Tap & drag a table to re-arrange the diagram.

Tap the "enable zoom" button, then use the mouse wheel to zoom in to where the mouse pointer is.

Customised table layout is not remembered. Refresh the page to reset the diagram.

Columns

Name Type Nulls Outbound Foreign Key Inbound Foreign Keys Indexes
Primary Key InvoiceId INTEGER NOT NULL InvoiceLine(InvoiceId) IPK_Invoice
CustomerId INTEGER NOT NULL Customer(CustomerId) IFK_InvoiceCustomerId
InvoiceDate DATETIME NOT NULL
BillingAddress NVARCHAR(70) Nullable
BillingCity NVARCHAR(40) Nullable
BillingState NVARCHAR(40) Nullable
BillingCountry NVARCHAR(40) Nullable
BillingPostalCode NVARCHAR(10) Nullable
Total NUMERIC(10,2) NOT NULL

Foreign Keys

Outbound

From To
CustomerId Customer(CustomerId)

Inbound

From To
InvoiceLine(InvoiceId) InvoiceId

Indexes

Name Columns Unique
IFK_InvoiceCustomerId CustomerId
IPK_Invoice InvoiceId Unique

Data

Skip to Data Controls Show just the data
sort InvoiceId sort CustomerId sort InvoiceDate sort BillingAddress sort BillingCity sort BillingState sort BillingCountry sort BillingPostalCode sort Total Referenced by
18 31MarthaSilkmarthasilk@gmail.com 2009-03-09 00:00:00 +0000 UTC 194A Chain Lake Drive Halifax NS Canada B3S 1C5 8.91 InvoiceLine: InvoiceId - 9 rows
147 31MarthaSilkmarthasilk@gmail.com 2010-10-14 00:00:00 +0000 UTC 194A Chain Lake Drive Halifax NS Canada B3S 1C5 1.98 InvoiceLine: InvoiceId - 2 rows
170 31MarthaSilkmarthasilk@gmail.com 2011-01-16 00:00:00 +0000 UTC 194A Chain Lake Drive Halifax NS Canada B3S 1C5 3.96 InvoiceLine: InvoiceId - 4 rows
192 31MarthaSilkmarthasilk@gmail.com 2011-04-20 00:00:00 +0000 UTC 194A Chain Lake Drive Halifax NS Canada B3S 1C5 5.94 InvoiceLine: InvoiceId - 6 rows
244 31MarthaSilkmarthasilk@gmail.com 2011-12-09 00:00:00 +0000 UTC 194A Chain Lake Drive Halifax NS Canada B3S 1C5 0.99 InvoiceLine: InvoiceId - 1 rows
365 31MarthaSilkmarthasilk@gmail.com 2013-06-01 00:00:00 +0000 UTC 194A Chain Lake Drive Halifax NS Canada B3S 1C5 1.98 InvoiceLine: InvoiceId - 2 rows
376 31MarthaSilkmarthasilk@gmail.com 2013-07-12 00:00:00 +0000 UTC 194A Chain Lake Drive Halifax NS Canada B3S 1C5 13.86 InvoiceLine: InvoiceId - 14 rows
Filter
Clear Filter
CustomerId 31
Page
No earlier pages
No more pages
412 rows in table
7 rows for this filter
7 rows shown
Showing rows 1 to end

Display
Switch to card view
^ top