<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=VbzCart%2Fqueries%2FqryCtg_Items_updates</id>
	<title>VbzCart/queries/qryCtg Items updates - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=VbzCart%2Fqueries%2FqryCtg_Items_updates"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/queries/qryCtg_Items_updates&amp;action=history"/>
	<updated>2026-07-01T12:49:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=VbzCart/queries/qryCtg_Items_updates&amp;diff=10896&amp;oldid=prev</id>
		<title>Woozle: moved from single-page listing</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/queries/qryCtg_Items_updates&amp;diff=10896&amp;oldid=prev"/>
		<updated>2008-11-30T19:29:54Z</updated>

		<summary type="html">&lt;p&gt;moved from single-page listing&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Details==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Requires&amp;#039;&amp;#039;&amp;#039;: [[../../tables/ctg_titles|ctg_titles]], [[../../tables/ctg_groups|ctg_groups]], [[../qryCtg_Sources_active|qryCtg_Sources_active]], [[../../tables/ctg_items|ctg_items]], [[../../tables/cat_ioptns|cat_ioptns]]&lt;br /&gt;
==SQL==&lt;br /&gt;
&amp;lt;section begin=sql /&amp;gt;&amp;lt;mysql&amp;gt;CREATE OR REPLACE VIEW qryCtg_Items_updates AS&lt;br /&gt;
  SELECT&lt;br /&gt;
    NULLIF(CONCAT_WS(&amp;#039;/&amp;#039;,g.Code,gt.GroupCode,o.CatKey),&amp;#039;&amp;#039;) AS CatSfx,&lt;br /&gt;
    gt.ID_Title,&lt;br /&gt;
    g.ID AS ID_TGroup,&lt;br /&gt;
    gt.ID AS ID_TGTitle,&lt;br /&gt;
    gi.ID AS ID_TGItem,&lt;br /&gt;
    gt.ID_Source AS ID_TGSource,&lt;br /&gt;
    gi.ID_ItTyp, gi.ID_ItOpt&lt;br /&gt;
  FROM&lt;br /&gt;
  (&lt;br /&gt;
    (&lt;br /&gt;
      (&lt;br /&gt;
        ctg_titles AS gt LEFT JOIN ctg_groups AS g ON g.ID=gt.ID_Group&lt;br /&gt;
       ) LEFT JOIN qryCtg_Sources_active AS c ON gt.ID_Source=c.ID&lt;br /&gt;
     ) LEFT JOIN ctg_items AS gi ON gi.ID_Group=g.ID&lt;br /&gt;
   ) LEFT JOIN cat_ioptns AS o ON gi.ID_ItOpt=o.ID&lt;br /&gt;
  WHERE&lt;br /&gt;
    (c.ID IS NOT NULL)&lt;br /&gt;
      AND g.isActive&lt;br /&gt;
      AND gt.isActive&lt;br /&gt;
      AND ((gt.WhenDiscont IS NULL) OR (gt.WhenDiscont&amp;gt;NOW()))&lt;br /&gt;
      AND gi.isActive;&amp;lt;/mysql&amp;gt;&lt;br /&gt;
&amp;lt;section end=sql /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>