VbzCart/docs/queries/qryTitles ItTyps ItTyps
Jump to navigation
Jump to search
About
- Returns: list of available titles for each item type
- This query generally provides the same information as Template:Vbzcart, but uses live (non-cached) data.
- There is probably some function-overlap between this query and the procedures which build that cached table.
- Requires: Template:Vbzcart/query, Template:Vbzcart/table
- Used by: can be used by catalog title pages, but is very slow; currently no known uses
- History:
- 2009-04-13 had to recreate because qryTitles_ItTyps_grpItems changed
- 2011-01-24 For consistency with Template:Vbzcart so that they may be used interchangeably:
- ItTyp_Sort → ItTypSort
- ItTyp_Sng → ItTypNameSng
- ItTyp_Plr → ItTypNamePlr
SQL
<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryTitles_ItTyps_ItTyps AS SELECT
i.*, it.Sort AS ItTypSort, it.NameSng AS ItTypNameSng, IFNULL(it.NamePlr,it.NameSng) AS ItTypNamePlr
FROM qryTitles_ItTyps_grpItems AS i LEFT JOIN cat_ittyps AS it ON i.ID_ItTyp=it.ID;</mysql> <section end=sql />