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
(requirements)
(source table renamed)
 
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}}
+
* '''Requires''': {{vbzcart|table|cat_title_x_topic}}, {{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
 +
** '''2011-09-28''' source table renamed (brs_titles_x_topics -> cat_title_x_topic)
 
==SQL==
 
==SQL==
 
<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryTitleTopic_Titles AS
 
<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryTitleTopic_Titles AS
 
   SELECT tt.ID_Topic, t.*
 
   SELECT tt.ID_Topic, t.*
   FROM brs_titles_x_topics AS tt
+
   FROM cat_title_x_topic AS tt
 
   LEFT JOIN cat_titles AS t
 
   LEFT JOIN cat_titles AS t
 
   ON tt.ID_Title=t.ID;</mysql>
 
   ON tt.ID_Title=t.ID;</mysql>
 
<section end=sql />
 
<section end=sql />

Latest revision as of 23:25, 28 September 2011

About

  • Returns: titles x topics with complete Title data
  • Used by: Topic pages
  • Requires: cat_title_x_topic, cat_titles
  • History:
    • 2011-01-24 created for Title listing on Topic pages
    • 2011-09-28 source table renamed (brs_titles_x_topics -> cat_title_x_topic)

SQL

<mysql>CREATE OR REPLACE VIEW qryTitleTopic_Titles AS

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