VbzCart/docs/queries/qryTitles ItTyps Titles: Difference between revisions

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Jump to navigation Jump to search
imported>Woozle
(moved from single-page listing)
 
imported>Woozle
(revision to be done tomorrow)
Line 1: Line 1:
==About==
* '''Requires''': {{vbzcart/query|qryTitles_ItTyps_grpItems}}, {{vbzcart/query|v_titles}}
==SQL==
==SQL==
<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryTitles_ItTyps_Titles AS
<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryTitles_ItTyps_Titles AS
Line 9: Line 11:
FROM qryTitles_ItTyps_grpItems AS ti LEFT JOIN v_titles AS t ON ti.ID_Title=t.ID_Title;</mysql>
FROM qryTitles_ItTyps_grpItems AS ti LEFT JOIN v_titles AS t ON ti.ID_Title=t.ID_Title;</mysql>
<section end=sql />
<section end=sql />
'''TO BE REVISED''' to something like this (except this doesn't work):
SELECT
  ti.*,
  t.Name,
  t.ID_Dept,
  t.CatNum,
  t.CatWeb
FROM qryTitles_ItTyps_grpItems AS ti LEFT JOIN qryCat_Titles_Item_stats AS t ON ti.ID_Title=t.ID_Title;

Revision as of 01:40, 13 April 2009

About

SQL

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

 ti.*,
 t.Name,
 t.ID_Dept,
 t.CatNum,
 t.CatWeb

FROM qryTitles_ItTyps_grpItems AS ti LEFT JOIN v_titles AS t ON ti.ID_Title=t.ID_Title;</mysql> <section end=sql />

TO BE REVISED to something like this (except this doesn't work): SELECT

 ti.*,
 t.Name,
 t.ID_Dept,
 t.CatNum,
 t.CatWeb

FROM qryTitles_ItTyps_grpItems AS ti LEFT JOIN qryCat_Titles_Item_stats AS t ON ti.ID_Title=t.ID_Title;