<?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%2FqryItems_prices</id>
	<title>VbzCart/queries/qryItems prices - 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%2FqryItems_prices"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/queries/qryItems_prices&amp;action=history"/>
	<updated>2026-07-08T03:31:54Z</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/qryItems_prices&amp;diff=10893&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/qryItems_prices&amp;diff=10893&amp;oldid=prev"/>
		<updated>2008-11-30T19:13:38Z</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/cat_items|cat_items]], [[../../tables/cat_ittyps|cat_ittyps]]&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Used by&amp;#039;&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Future&amp;#039;&amp;#039;&amp;#039;: This will eventually contain shipping prices as well, but the shipping costs table hasn&amp;#039;t been migrated as of this writing. It also needs to build a description from it.NameSng and i.ItOpt_Descr -- or perhaps there is a better way to do it (haven&amp;#039;t we solved this problem elsewhere in a view?)&lt;br /&gt;
==SQL==&lt;br /&gt;
&amp;lt;section begin=sql /&amp;gt;&amp;lt;mysql&amp;gt;CREATE OR REPLACE VIEW qryItems_prices AS&lt;br /&gt;
SELECT&lt;br /&gt;
  i.ID,&lt;br /&gt;
  i.CatNum,&lt;br /&gt;
  i.ID_Title,&lt;br /&gt;
  i.ID_ItTyp,&lt;br /&gt;
  i.ID_ShipCost,&lt;br /&gt;
  i.PriceSell,&lt;br /&gt;
  i.PriceList,&lt;br /&gt;
  i.ItOpt_Descr,&lt;br /&gt;
  i.isInPrint,&lt;br /&gt;
  it.NameSng,&lt;br /&gt;
  it.NamePlr,&lt;br /&gt;
  it.Descr as ItTyp_Descr&lt;br /&gt;
FROM (cat_items AS i LEFT JOIN cat_ittyps AS it ON i.ID_ItTyp=it.ID)&lt;br /&gt;
WHERE i.isForSale AND (NULLIF(i.isPulled,0) IS NULL) AND (i.ID_ShipCost IS NOT NULL) AND (i.PriceSell IS NOT NULL)&lt;br /&gt;
ORDER BY 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>