Difference between revisions of "VbzCart/queries/qryTitleTopic 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
(Created page with "==About== * '''Returns''': titles x topics with complete Title data * '''Used by''': Topic pages * '''History''': ** '''2011-01-24''' created for title listing on Topic pages ==S...")
 
(requirements)
Line 2: Line 2:
 
* '''Returns''': titles x topics with complete Title data
 
* '''Returns''': titles x topics with complete Title data
 
* '''Used by''': Topic pages
 
* '''Used by''': Topic pages
 +
* '''Requires''': {{vbzcart|table|brs_titles_x_topics}}, {{vbzcart|table|cat_titles}}
 
* '''History''':
 
* '''History''':
** '''2011-01-24''' created for title listing on Topic pages
+
** '''2011-01-24''' created for Title listing on Topic pages
 
==SQL==
 
==SQL==
 
<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryTitleTopic_Titles AS
 
<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryTitleTopic_Titles AS

Revision as of 21:13, 24 January 2011

About

  • Returns: titles x topics with complete Title data
  • Used by: Topic pages
  • Requires: brs_titles_x_topics, cat_titles
  • History:
    • 2011-01-24 created for Title listing on Topic pages

SQL

<mysql>CREATE OR REPLACE VIEW qryTitleTopic_Titles AS

 SELECT tt.ID_Topic, t.*
 FROM brs_titles_x_topics AS tt
 LEFT JOIN cat_titles AS t
 ON tt.ID_Title=t.ID;</mysql>