VbzCart/queries/qryImgs byTitle

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< VbzCart‎ | queries
Revision as of 14:54, 11 March 2012 by Woozle (talk | contribs) (obsolete)
(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: cat_images
  • Used by:
  1. REDIRECT Template:l/vc/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

<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>