VbzCart/docs/queries/qryCtgCk dup keys: Difference between revisions
Jump to navigation
Jump to search
imported>Woozle (extracted from catalog building page) |
m (Woozle moved page VbzCart/VbzCart/queries/qryCtgCk dup keys to VbzCart/docs/queries/qryCtgCk dup keys without leaving a redirect: part 2) |
(No difference)
|
Latest revision as of 01:55, 25 February 2024
About
- Purpose: Verification of ctg build
- Requires: Template:Vbzcart, Template:Vbzcart
- Used by: catalog building - verification stage
- Returns: any duplicate IDS_Items (ID_Title + CatSfx) found in currently active titles in Template:Vbzcart. When this happens, it is probably due to old records whose CatSfx fields weren't set (or weren't set properly) being (re)activated by being found in stock
SQL
<mysql>CREATE OR REPLACE VIEW qryCtgCk_dup_keys AS SELECT
i.CatNum, i.isInPrint, u.*
FROM ctg_upd2 AS u LEFT JOIN cat_items AS i ON u.ID_Item=i.ID WHERE cntDups and u.isForSale;</mysql>