Read-only Back to SQLite3 Guide
Northwind › Views
Products Above Average Price view

25 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 ProductName TEXT no —
1 UnitPrice REAL no —
Definition
from sqlite_schema
CREATE VIEW "Products Above Average Price" AS SELECT ProductName, UnitPrice FROM Products WHERE UnitPrice > (SELECT avg(UnitPrice) FROM Products)