VbzCart/docs/queries/qryImgs byTitle

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Revision as of 01:55, 25 February 2024 by Woozle (talk | contribs) (Woozle moved page VbzCart/VbzCart/queries/qryImgs byTitle to VbzCart/docs/queries/qryImgs byTitle without leaving a redirect: part 2)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

  • Purpose: returns image information grouped by ID_Title
  • Requires: Template:Vbzcart
  • Used by: Template:Vbzcart/query - no longer needed
  • History:
    • 2012-01-10 created for listing of Imageless Titles
    • 2012-03-11 it would appear that this query is no longer needed

SQL

<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryImgs_byTitle AS SELECT

 ID_Title,
 SUM(ABS(isActive)) AS cntActive,
 SUM(NOT isActive) AS cntInactive

FROM cat_images GROUP BY ID_Title; </mysql> <section end=sql />