← All tables and views
Northwind view
Summary of Sales by Quarter
Native view in the Northwind sample database.
809rows
3 columns
Schema from the provider contract| Column | Type | Nullable | Key | References |
|---|---|---|---|---|
ShippedDate | TEXT | yes | — | — |
OrderID | TEXT | yes | — | — |
Subtotal | TEXT | yes | — | — |
View definition
CREATE VIEW [Summary of Sales by Quarter] AS
SELECT Orders.ShippedDate,
Orders.OrderID,
[Order Subtotals].Subtotal
FROM Orders
INNER JOIN [Order Subtotals] ON Orders.OrderID = [Order Subtotals].OrderID
WHERE Orders.ShippedDate IS NOT NULLData preview
Sample records
| ShippedDate | OrderID | Subtotal |
|---|---|---|
| 2016-07-16 | 10248 | 440 |
| 2016-07-10 | 10249 | 1863.4 |
| 2016-07-12 | 10250 | 1552.6 |
| 2016-07-15 | 10251 | 654.06 |
| 2016-07-11 | 10252 | 3597.9 |
| 2016-07-16 | 10253 | 1444.8000000000002 |
| 2016-07-23 | 10254 | 556.62 |
| 2016-07-15 | 10255 | 2490.5 |