Views

COLUMNSDATA STRUCTURE
idINT
nameSTRING
querySTRING

Views are ways to select records.

A view will have a name, so it is human readable and a query to display different data.

The query is made with SQL allowing you to select what columns you want to see, filtered, ordered and much more, just the way you want it.

Examples:

Let's grab the record table shown before.

idquantityheadbodylocation
1-1Eat AppleNULLNULL
2-1AppleItem, FoodNULL
30Brush TeethAction, HygieneNULL
43ToothbrushItem, HygieneNULL
5-1MeditateActionNULL

A view of things you need to buy may look like this:

COLUMNVALUE
id1
nameBuy
querySELECT * FROM record WHERE LOWER(body) LIKE '%item%' AND quantity < 0

And in this case, will display only:

idquantityheadbodylocation
2-1AppleItem, FoodNULL

Since no other records with a body containing 'Item' (lower, upper, pascal case...) exist with a negative quantity.