Difference between revisions of "VbzCart/queries/qryTitleTopic Titles"
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| | + | * '''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 | + | 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>