VbzCart/docs/queries/qryCtg Items active: Difference between revisions

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Jump to navigation Jump to search
imported>Woozle
(moved from single-page listing)
(No difference)

Revision as of 19:55, 30 November 2008

Details

  • Purpose: Brings up only ctg_items records which are active, simplifying the final massive JOIN query a bit and hopefully avoiding any errors similar to the one mentioned above.
  • Requires: ctg_items
  • Used by:

SQL

<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryCtg_Items_active AS

 SELECT
   *
 FROM ctg_items AS tgi
 WHERE tgi.isActive AND (tgi.PriceSell IS NOT NULL) AND (tgi.ID_ShipCost IS NOT NULL);</mysql>

<section end=sql />