VbzCart/queries/qryCat Titles
Jump to navigation
Jump to search
Details
- Requires: cat_titles, qryCat_Depts
- Fields:
- CatKey_Title is used in the catalog-building process (Enter Title Groups) when searching within a supplier for a particular title
SQL
<mysql>CREATE OR REPLACE VIEW qryCat_Titles AS
SELECT t.ID, t.Name, UPPER(CONCAT_WS("-",d.CatNum,t.CatKey)) AS CatNum, LOWER(CONCAT_WS("/",d.CatWeb_Title,t.CatKey)) AS CatWeb, t.CatKey AS CatKey_Title, d.ID_Supplier, t.ID_Dept, t.DateAdded, t.RstkMin AS QtyMin_Rstk, t.Notes, t.Supplier_CatNum AS Supp_CatNum FROM cat_titles AS t LEFT JOIN qryCat_Depts AS d ON t.ID_Dept=d.ID;</mysql>