Difference between revisions of "VbzCart/queries/qryImgs byTitle"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(Created page with "==About== * '''Requires''': {{vbzcart/table|cat_depts}}, {{vbzcart/table|cat_supp}} * '''History''': ** '''2012-01-10''' created for listing of Imageless Titles ==SQL== <section ...")
(No difference)

Revision as of 01:08, 11 January 2012

About

  • Requires:
  1. REDIRECT Template:l/vc/table, cat_supp
  • History:
    • 2012-01-10 created for listing of Imageless Titles

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>