Difference between revisions of "VbzCart/tables/ titles"

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
(New page: ==About== * '''Purpose''': cached information about titles ==SQL== <section begin=sql /><mysql> DROP TABLE IF EXISTS `_titles`; CREATE TABLE `_titles` ( `ID` int(11) unsigned NOT NULL,...)
 
(listed inputs)
 
Line 1: Line 1:
 
==About==
 
==About==
 
* '''Purpose''': cached information about titles
 
* '''Purpose''': cached information about titles
 +
* '''Input''':
 +
** {{vbzcart|proc|Upd_Titles_fr_Depts}} &larr; {{vbzcart|table|cat_titles}}, {{vbzcart|table|_depts}}
 +
** {{vbzcart|proc|Upd_Titles_fr_CatItems}} &larr; {{vbzcart|table|cat_items}} (grouped by ID_Title)
 +
** {{vbzcart|proc|Upd_Titles_fr_TitleIttyps}} &larr; {{vbzcart/query|qryCat_Titles_Item_stats}} (grouped by ID_Title)
 
==SQL==
 
==SQL==
<section begin=sql /><mysql> DROP TABLE IF EXISTS `_titles`;
+
<mysql> DROP TABLE IF EXISTS `_titles`;
 
  CREATE TABLE `_titles` (
 
  CREATE TABLE `_titles` (
 
   `ID` int(11) unsigned NOT NULL,
 
   `ID` int(11) unsigned NOT NULL,
Line 15: Line 19:
 
   PRIMARY KEY (`ID`)
 
   PRIMARY KEY (`ID`)
 
  ) ENGINE=MyISAM DEFAULT CHARSET=latin1;</mysql>
 
  ) ENGINE=MyISAM DEFAULT CHARSET=latin1;</mysql>
<section end=sql />
 

Latest revision as of 01:24, 7 September 2015

About

  1. REDIRECT Template:l/vc/query (grouped by ID_Title)

SQL

<mysql> DROP TABLE IF EXISTS `_titles`;

CREATE TABLE `_titles` (
  `ID` int(11) unsigned NOT NULL,
  `ID_Supp` int(11) unsigned NOT NULL COMMENT "avoids need for joining with cat_depts",
  `CatNum` varchar(63) NOT NULL,
  `CatWeb` varchar(63) NOT NULL,
  `cntForSale` int DEFAULT NULL,
  `cntInPrint` int DEFAULT NULL,
  `qtyInStock` int DEFAULT NULL,
  `currMinSell` DECIMAL(9,2) DEFAULT NULL COMMENT "minimum selling price for an item of this title",
  `currMaxSell` DECIMAL(9,2) DEFAULT NULL COMMENT "maximum selling price for an item of this title",
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;</mysql>