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
53 44TerhiHämäläinenterhi.hamalainen@apple.fi 2009-08-11 00:00:00 +0000 UTC Porthaninkatu 9 Helsinki [null] Finland 00530 8.91 InvoiceLine: InvoiceId - 9 rows
182 44TerhiHämäläinenterhi.hamalainen@apple.fi 2011-03-18 00:00:00 +0000 UTC Porthaninkatu 9 Helsinki [null] Finland 00530 1.98 InvoiceLine: InvoiceId - 2 rows
205 44TerhiHämäläinenterhi.hamalainen@apple.fi 2011-06-20 00:00:00 +0000 UTC Porthaninkatu 9 Helsinki [null] Finland 00530 7.96 InvoiceLine: InvoiceId - 4 rows
227 44TerhiHämäläinenterhi.hamalainen@apple.fi 2011-09-22 00:00:00 +0000 UTC Porthaninkatu 9 Helsinki [null] Finland 00530 5.94 InvoiceLine: InvoiceId - 6 rows
279 44TerhiHämäläinenterhi.hamalainen@apple.fi 2012-05-12 00:00:00 +0000 UTC Porthaninkatu 9 Helsinki [null] Finland 00530 0.99 InvoiceLine: InvoiceId - 1 rows
400 44TerhiHämäläinenterhi.hamalainen@apple.fi 2013-11-03 00:00:00 +0000 UTC Porthaninkatu 9 Helsinki [null] Finland 00530 1.98 InvoiceLine: InvoiceId - 2 rows
411 44TerhiHämäläinenterhi.hamalainen@apple.fi 2013-12-14 00:00:00 +0000 UTC Porthaninkatu 9 Helsinki [null] Finland 00530 13.86 InvoiceLine: InvoiceId - 14 rows
Filter
Clear Filter
CustomerId 44
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