<?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%2FqryCbx_Items_data</id>
	<title>VbzCart/queries/qryCbx Items data - 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%2FqryCbx_Items_data"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/queries/qryCbx_Items_data&amp;action=history"/>
	<updated>2026-07-08T03:30:41Z</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/qryCbx_Items_data&amp;diff=10888&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/qryCbx_Items_data&amp;diff=10888&amp;oldid=prev"/>
		<updated>2008-11-30T19:09:34Z</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;: [[../qryCat_Items|qryCat_Items]]&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Used by&amp;#039;&amp;#039;&amp;#039;: &lt;br /&gt;
==SQL==&lt;br /&gt;
&amp;lt;section begin=sql /&amp;gt;&amp;lt;mysql&amp;gt;CREATE OR REPLACE VIEW qryCbx_Items_data AS&lt;br /&gt;
SELECT&lt;br /&gt;
  i.ID,&lt;br /&gt;
  CAST(&lt;br /&gt;
    CONCAT(&lt;br /&gt;
      if(i.isPulled,&lt;br /&gt;
        &amp;#039;*P* &amp;#039;,&lt;br /&gt;
        &amp;#039;&amp;#039;&lt;br /&gt;
      ),&lt;br /&gt;
      if(i.CatNum IS NULL,&lt;br /&gt;
        CONCAT(&amp;#039;#&amp;#039;,i.ID,&amp;#039; (no cat#)&amp;#039;)&lt;br /&gt;
        ,i.CatNum),&lt;br /&gt;
      if(i.Supp_CatNum IS NULL,&lt;br /&gt;
        &amp;#039;&amp;#039;,&lt;br /&gt;
        CONCAT(&amp;#039; [&amp;#039;,i.Supp_CatNum,&amp;#039;]&amp;#039;)&lt;br /&gt;
      ),&lt;br /&gt;
      if(i.isForSale,&amp;#039;&amp;#039;,&amp;#039; *n/a*&amp;#039;),&lt;br /&gt;
      &amp;#039; &amp;#039;,&lt;br /&gt;
      if(i.Descr IS NULL,&amp;#039;no description&amp;#039;,i.Descr)&lt;br /&gt;
    ) AS CHAR&lt;br /&gt;
  ) AS Descr,&lt;br /&gt;
  i.isPulled,&lt;br /&gt;
  i.isForSale,&lt;br /&gt;
  i.ID_Title,&lt;br /&gt;
  i.CatNum,&lt;br /&gt;
  i.Supp_CatNum,&lt;br /&gt;
  i.PriceSell,&lt;br /&gt;
  i.QtyMin_Stk&lt;br /&gt;
FROM qryCat_Items AS i&lt;br /&gt;
ORDER BY NOT i.isPulled, i.isForSale, i.CatNum;&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>