Difference between revisions of "VbzCart/queries"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(→‎Catalog Sources: 3 more queries that don't work anymore)
(4 more disused queries)
Line 102: Line 102:
 
* '''filtered by status''':
 
* '''filtered by status''':
 
** [[/qryRstks_active]]: not terminated = !(closed, orphaned or killed - see {{l/vc/term|restock/status}})
 
** [[/qryRstks_active]]: not terminated = !(closed, orphaned or killed - see {{l/vc/term|restock/status}})
*** [[/qryRstkItms_active]]
 
**** [[/qryRstkItms_expected]]
 
***** [[/qryRstkItms_expected_byItem]] - grouped by ID_Item
 
 
*** [[/qryRstks_unsent]]: created but not ordered yet
 
*** [[/qryRstks_unsent]]: created but not ordered yet
 
**** [[/qryRstkItms_unsent]]
 
**** [[/qryRstkItms_unsent]]
Line 120: Line 117:
 
** [[/qryStk_lines_remaining_forSale]]
 
** [[/qryStk_lines_remaining_forSale]]
 
*** [[/qryStkItms_for_sale]]
 
*** [[/qryStkItms_for_sale]]
**** [[/qryItems_needed_forStock]]
+
 
 
** [[/qryStk_items_remaining]]
 
** [[/qryStk_items_remaining]]
 
** [[/qryStk_byItem_byBin]]
 
** [[/qryStk_byItem_byBin]]

Revision as of 22:59, 2 March 2016

Navigation

VbzCart: data views

Overview

What MS Access calls "queries" are called "views" in MySQL, i.e. they pull data from existing tables and are themselves usable as data sources in much the same way that tables are (and in which result sets from functions are not).

Some common prefixes:

  • qryCbx_: queries used for filling comboboxes. The unique ID will always be the first field, and the text to display will always be the second field; additional fields may be provided for use in further qryCbx_ queries which show a subset of the results.
  • qryCat_: queries which build catalog numbers or information by joining multiple tables. (In Access, the convention was qryCatNum_.)

by category

Inactive

Catalog

Catalog Items

Catalog Sources

Catalog Topics

Ordering

Carts

Customers

Orders

Packages

Restocks

Shipping

Stock

new queries

  1. REDIRECT Template:l/vc/table queries:

old queries

This was the first batch of queries I created, before I had decided to go with the qry prefix as in Access.

Caching

Caching should only be used for catalog display.