Read-only Back to SQLite3 Guide
Northwind › Views
Order Subtotals view

830 rows. A view stores a SELECT statement, not rows: each time you open it, SQLite runs the query again.

Data Structure
Columns
PRAGMA table_info
#NameTypeNot nullDefaultKeyReferences
0 OrderID INTEGER no —
1 Subtotal (none) no —
Definition
from sqlite_schema
CREATE VIEW "Order Subtotals" AS SELECT OrderID, sum(round(UnitPrice * Quantity * (1 - Discount), 2)) AS Subtotal FROM "Order Details" GROUP BY OrderID