Revision history for OnPointQueries


Revision [20453]

Last edited on 2017-11-07 18:02:28 by Peter
Additions:
SELECT x.rating_id, x.state_id, x.sig_name, x.rating_name, x.span, string_agg(x.tag_name, ',') AS tag_id
GROUP BY x.rating_id, x.state_id, x.sig_name, x.rating_name, x.span
ORDER BY span desc, tag_id
Deletions:
SELECT x.rating_id, x.state_id, x.sig_name, x.rating_name, x.span, string_agg(x.tag_name, ',') As tag_name
GROUP BY x.rating_id, x.state_id, x.sig_name, x.rating_name, x.span, tag_name
ORDER BY span desc, tag_name


Revision [20452]

Edited on 2017-11-07 17:39:18 by Peter
Additions:
SELECT x.speech_id, x.title, x.speechdate, string_agg(x.tag_name, ',') AS tag_name
ORDER BY tag_name
SELECT x.rating_id, x.state_id, x.sig_name, x.rating_name, x.span, string_agg(x.tag_name, ',') As tag_name
GROUP BY x.rating_id, x.state_id, x.sig_name, x.rating_name, x.span, tag_name
ORDER BY span desc, tag_name
Deletions:
SELECT x.speech_id, x.title, x.speechdate, string_agg(x.tag_name, ',') AS tag_id
ORDER BY tag_id
SELECT x.rating_id, x.state_id, x.sig_name, x.rating_name, x.span, string_agg(x.tag_name, ',') AS tag_id
GROUP BY x.rating_id, x.state_id, x.sig_name, x.rating_name, x.span
ORDER BY span desc, tag_id


Revision [20451]

Edited on 2017-11-07 17:36:19 by Peter
Additions:
- Enter the featured_id, corresponding to featured issue that you are interested in, in the WHERE clause - the example's featured_id = 19 (Russian Election Interference)
Deletions:
- Enter the featured_id corresponding to featured issue that you are interested in in the WHERE clause - the example's featured_id = 19 (Russian Election Interference)


Revision [20450]

Edited on 2017-11-07 17:35:16 by Peter
Additions:
- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. It displays what speeches will be pulled from that specific tag. Additionally, it displays what else those speeches are tagged with - specifically other tags that are on the featured issue's tag association list. This allows the researcher to narrow down what speeches a specific tag will actually add to the featured issue in the app - the speeches that are tagged with the tag in question, and no other tags on the tag association list.
Deletions:
- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. It displays what speeches will be pulled from that specific tag. Additionally, it displays what else those speeches are tagged with - specifically other tags that are on the featured issue's tag association list. This allows the researcher to narrow down what speeches a specific tag will actually add to the featured issue in the app - the speeches that are tagged with the tag_id in question, and no other tags on the tag association list.


Revision [20449]

Edited on 2017-11-07 17:31:10 by Peter
Additions:
(SELECT (r.rating_id), state_id, s.name AS sig_name, r.name AS rating_name, r.span, t.name AS tag_name
JOIN rating_tag rt
JOIN tag t
WHERE ft.featured_id = 6 AND r.rating_id IN
GROUP BY x.rating_id, x.state_id, x.sig_name, x.rating_name, x.span
Deletions:
(SELECT (r.rating_id), state_id, s.name AS sig_name, r.name AS rating_name, r.span, rt.tag_id, t.name AS tag_name
JOIN sig_tag st
JOIN sig_category sc
LEFT JOIN rating_tag rt
LEFT JOIN rating_category rc
ON (rc.rating_id = r.rating_id)
WHERE r.rating_id IN
GROUP BY x.tag_id, x.rating_id, x.state_id, x.sig_name, x.rating_name, x.span


Revision [20448]

Edited on 2017-11-07 16:55:58 by Peter
Additions:
- This shows you if the tag you are interested in is the reason a speech will pull - if it's not accompanied by another tag on the tag association list**
Deletions:
- This shows you if the tag you are interested in is the reason a speech will pull (if it's not accompanied by another tag on the tag association list)**


Revision [20447]

Edited on 2017-11-07 16:55:15 by Peter
Additions:
- This filters the data to only pull speeches relating to a specific featured issue
Deletions:
- This filters the data to specify you are only interested in speeches relating to a specific featured issue


Revision [20446]

Edited on 2017-11-07 16:54:42 by Peter
Additions:
- Enter the featured_id corresponding to featured issue that you are interested in in the WHERE clause - the example's featured_id = 19 (Russian Election Interference)
Deletions:
- Enter the featured_id (corresponding to featured issue) that you are interested in in the WHERE clause - the example's featured_id = 19 (Russian Election Interference)


Revision [20445]

Edited on 2017-11-07 16:53:49 by Peter
Additions:
- Enter the featured_id (corresponding to featured issue) that you are interested in in the WHERE clause - the example's featured_id = 19 (Russian Election Interference)
Deletions:
- Enter the featured_id (corresponding to featured issue) that you are interested in in the WHERE clause


Revision [20444]

Edited on 2017-11-07 16:52:56 by Peter
Additions:
- Enter a tag name in the WHERE clause (the query will therefore display all speeches tagged with the tag in question) - the example's tag in question is 'FBI-Director-removal'
Deletions:
- Enter a tag name in the WHERE clause (the query will therefore display all speeches tagged with the tag in question)


Revision [20443]

Edited on 2017-11-07 16:50:14 by Peter
Additions:
- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. It displays what speeches will be pulled from that specific tag. Additionally, it displays what else those speeches are tagged with - specifically other tags that are on the featured issue's tag association list. This allows the researcher to narrow down what speeches a specific tag will actually add to the featured issue in the app - the speeches that are tagged with the tag_id in question, and no other tags on the tag association list.
How it Works:
- Enter a tag name in the WHERE clause (the query will therefore display all speeches tagged with the tag in question)
- This pulls the speech_id, title and speechdate for all of these speeches
- Enter the featured_id (corresponding to featured issue) that you are interested in in the WHERE clause
- This filters the data to specify you are only interested in speeches relating to a specific featured issue
- The string_agg(x.tag_name, ',') command is telling the computer to pull any additional tags these speeches have from the featured issue's tag association list
- This shows you if the tag you are interested in is the reason a speech will pull (if it's not accompanied by another tag on the tag association list)**
WHERE t.name = 'FBI-Director-removal')) x
Deletions:
- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter a tag_id in the WHERE clause, and it displays all of that speeches with that tag. The query also displays any other tags from the issue's tag association list that the speeches are also tagged with. This is helpful in deciding to add a tag to an association list because it shows what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**
WHERE tag_id = 112445)) x


Revision [20442]

Edited on 2017-11-07 15:11:00 by Peter
Additions:
- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter a tag_id in the WHERE clause, and it displays all of that speeches with that tag. The query also displays any other tags from the issue's tag association list that the speeches are also tagged with. This is helpful in deciding to add a tag to an association list because it shows what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**
Deletions:
- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter a tag_id in the WHERE clause, and it displays all of that speeches with that tag. The query also displays any other tags from the issue's tag association list that the speeches are also tagged with. This is helpful in deciding to add a tag to an association list because ti shows what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**


Revision [20441]

Edited on 2017-11-07 10:37:49 by Peter
Additions:
- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter a tag_id in the WHERE clause, and it displays all of that speeches with that tag. The query also displays any other tags from the issue's tag association list that the speeches are also tagged with. This is helpful in deciding to add a tag to an association list because ti shows what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**
Deletions:
- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the WHERE clause, and it displays all of that speeches with the tag. The query also displays any other tags from the issue's tag association list that the speeches are tagged with. This is helpful in deciding to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**


Revision [20440]

Edited on 2017-11-07 10:35:26 by Peter
Additions:
- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the WHERE clause, and it displays all of that speeches with the tag. The query also displays any other tags from the issue's tag association list that the speeches are tagged with. This is helpful in deciding to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**
Deletions:
- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the WHERE clause, and it displays all of the speeches with the tag. The query also displays any other tags from the issue's tag association list that the speeches are tagged with. This is helpful in deciding to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**


Revision [20439]

Edited on 2017-11-07 10:35:07 by Peter
Additions:
- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the WHERE clause, and it displays all of the speeches with the tag. The query also displays any other tags from the issue's tag association list that the speeches are tagged with. This is helpful in deciding to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**
Deletions:
- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the WHERE clause, and it shows you all of the speeches tagged with the tag in question. The query also displays any other tags from the issue's tag association list that the speeches are tagged with. This is helpful in deciding to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**


Revision [20438]

Edited on 2017-11-07 10:33:01 by Peter
Additions:
- **This query counts the amount of speeches a tag is used in, and you filter using a category name (right now it is set to 'Guns'). This is helpful because it shows you the scope of what data will be pulled if you add a tag to a tag association list:**
Deletions:
- **This query counts the amount of speeches a tag is used in, and you filter using a category (right now it is set to 'Guns'). This is helpful because it shows you the scope of what data will be pulled if you add a tag to a tag association list:**


Revision [20437]

Edited on 2017-11-07 10:32:41 by Peter
Additions:
- **This query counts the amount of speeches a tag is used in, and you filter using a category (right now it is set to 'Guns'). This is helpful because it shows you the scope of what data will be pulled if you add a tag to a tag association list:**
SELECT c.name, t.tag_id, t.name, count(t.tag_id) AS count
JOIN speech_category sc USING (speech_id)
JOIN category c USING (category_id)
JOIN speech_tag st USING (speech_id)
WHERE c.name = 'Guns'
GROUP BY c.name, t.tag_id, t.name
ORDER BY count(t.tag_id) desc


Revision [20436]

Edited on 2017-11-07 10:26:56 by Peter
Additions:
- **This query displays all ballot measures that are currently live on the app (Helpful to make sure they all have summaries. measure text...ect):**
Deletions:
- **This query displays all ballot measures that are currently live on the app:**


Revision [20435]

Edited on 2017-11-07 10:25:35 by Peter
Additions:
- **This query displays all ballot measures that are currently live on the app:**
SELECT m.*
FROM featured f
JOIN featured_tag ft USING (featured_id)
JOIN tag t USING (tag_id)
JOIN measure_tag mt USING (tag_id)
JOIN measure m USING (measure_id)
WHERE f.release_id = 2
ORDER BY electiondate desc, state_id
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the WHERE clause, and it shows you all of the speeches tagged with the tag in question. The query also displays any other tags from the issue's tag association list that the speeches are tagged with. This is helpful in deciding to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**
Deletions:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the WHERE clause, and it shows you all of the speeches tagged with the tag in question. The query also displays any other tags from the issue's tag association list that the speeches are tagged with. This is helpful in deciding to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**


Revision [20434]

Edited on 2017-11-07 10:19:56 by Peter

No Differences

Revision [20433]

Edited on 2017-11-07 10:18:31 by Peter
Additions:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the WHERE clause, and it shows you all of the speeches tagged with the tag in question. The query also displays any other tags from the issue's tag association list that the speeches are tagged with. This is helpful in deciding to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**
Deletions:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the WHERE clause, and it shows you all of the speeches tagged with the tag in question. The query also displays any other tags from the issue's tag association list that the speeches are tagged with. This is helpful for looking to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**


Revision [20432]

Edited on 2017-11-07 10:18:12 by Peter
Additions:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the WHERE clause, and it shows you all of the speeches tagged with the tag in question. The query also displays any other tags from the issue's tag association list that the speeches are tagged with. This is helpful for looking to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**
Deletions:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the WHERE clause, and it shows you all of the speeches tagged with the tag in question. The query also displays any other tags from the issue's tag association list that the speeches have. This is helpful for looking to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**


Revision [20431]

Edited on 2017-11-07 10:17:14 by Peter
Additions:
- **This query does the same thing as the one above, but for rating scorecards instead of speeches**
Deletions:
- **This query does the same thing as the one above, but for rating scorecards instead of tags**


Revision [20430]

Edited on 2017-11-07 10:15:04 by Peter
Additions:
- **This query displays the featured table. This is helpful to find featured_id, the official issue title, issue descriptions, and release_id (1 = unreleased; 2 = released):**
Deletions:
- **This query displays the **featured table**. This is helpful to find featured_id, the official issue title, issue descriptions, and release_id (1 = unreleased; 2 = released):**


Revision [20429]

Edited on 2017-11-07 10:05:26 by Peter
Additions:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the WHERE clause, and it shows you all of the speeches tagged with the tag in question. The query also displays any other tags from the issue's tag association list that the speeches have. This is helpful for looking to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**
Deletions:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the where clause, and it shows you all of the speeches tagged with the tag in question. The query also displays any other tags from the issue's tag association list that the speeches have. This is helpful for looking to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**


Revision [20428]

Edited on 2017-11-07 10:01:30 by Peter
Additions:
- **This query does the same thing as the one above, but for rating scorecards instead of tags**
Deletions:
- This query does the same thing as the one above, but for rating scorecards instead of tags


Revision [20427]

Edited on 2017-11-07 10:00:46 by Peter
Additions:
- **This query displays the **featured table**. This is helpful to find featured_id, the official issue title, issue descriptions, and release_id (1 = unreleased; 2 = released):**
- **This query displays the featured_tag table, as well as the name of the tag. This is helpful to see the list of tags associated with a featured_id:**
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- **This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the where clause, and it shows you all of the speeches tagged with the tag in question. The query also displays any other tags from the issue's tag association list that the speeches have. This is helpful for looking to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.**
Deletions:
**Simple Queries for Viewing OnPoint Info**:
- This query displays the **featured table**. This is helpful to find featured_id, the official issue title, issue descriptions, and release_id (1 = unreleased; 2 = released):
- This query displays the **featured_tag table**, as well as the name of the tag. This is helpful to see the list of tags associated with a featured_id:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the where clause, and it shows you all of the speeches tagged with the tag in question. The query also displays any other tags from the issue's tag association list that the speeches have. This is helpful for looking to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.


Revision [20426]

Edited on 2017-11-07 09:59:45 by Peter
Deletions:
_________________________________________________________________________________________________________________________________________________________________________________________________


Revision [20425]

Edited on 2017-11-07 09:59:18 by Peter
Additions:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- This query is helpful in deciding whether to cut or add a tag to a featured issue's tag association list. Enter the tag_id in the where clause, and it shows you all of the speeches tagged with the tag in question. The query also displays any other tags from the issue's tag association list that the speeches have. This is helpful for looking to add a tag to an association list because you will see what speeches will be pulled from that specific tag (they are the ones with only that tag, not another one from the tag association list). Likewise, when deciding to cut a tag from an association list, it shows which speeches will no longer pull for the issue in OnPoint.
SELECT x.speech_id, x.title, x.speechdate, string_agg(x.tag_name, ',') AS tag_id
FROM
(SELECT (s.speech_id), s.title, s.speechdate, st.tag_id, t.name AS tag_name
FROM speech s
LEFT JOIN speech_tag st
ON (s.speech_id = st.speech_id)
LEFT JOIN tag t
ON (t.tag_id = st.tag_id)
LEFT JOIN featured_tag ft
ON (t.tag_id = ft.tag_id)
WHERE ft.featured_id = 19
AND s.speech_id IN
(SELECT speech_id
FROM tag t
JOIN speech_tag st USING (tag_id)
JOIN speech s USING (speech_id)
WHERE tag_id = 112445)) x
GROUP BY x.speech_id, x.title, x.speechdate
ORDER BY tag_id
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- This query does the same thing as the one above, but for rating scorecards instead of tags
SELECT x.rating_id, x.state_id, x.sig_name, x.rating_name, x.span, string_agg(x.tag_name, ',') AS tag_id
FROM
(SELECT (r.rating_id), state_id, s.name AS sig_name, r.name AS rating_name, r.span, rt.tag_id, t.name AS tag_name
FROM sig s
JOIN rating r
USING (sig_id)
JOIN sig_tag st
USING (sig_id)
JOIN sig_category sc
USING (sig_id)
LEFT JOIN rating_tag rt
ON (rt.rating_id = r.rating_id)
LEFT JOIN rating_category rc
ON (rc.rating_id = r.rating_id)
LEFT JOIN tag t
ON (t.tag_id = rt.tag_id)
JOIN featured_tag ft
ON t.tag_id = ft.tag_id
WHERE r.rating_id IN
(SELECT rating_id
FROM tag t
JOIN rating_tag rt USING (tag_id)
JOIN rating r USING (rating_id)
WHERE tag_id = 338)) x
GROUP BY x.tag_id, x.rating_id, x.state_id, x.sig_name, x.rating_name, x.span
ORDER BY span desc, tag_id
_________________________________________________________________________________________________________________________________________________________________________________________________
Deletions:


Revision [20424]

Edited on 2017-11-07 09:38:29 by Peter

No Differences

Revision [20423]

Edited on 2017-11-07 09:37:44 by Peter
Additions:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Adding a WHERE featured_id = '#' will display all the tags for a featured issue.
Deletions:
Adding a WHERE featured_id = '#' will display all the tags for a featured issue.


Revision [20399]

Edited on 2017-10-27 17:37:20 by Peter
Additions:
- This query displays the **featured_tag table**, as well as the name of the tag. This is helpful to see the list of tags associated with a featured_id:
Deletions:
- This query displays the **featured_tag table**, as well as the name of the tag. This is helpful to find the list of tag_id's associated with a featured_id:


Revision [20398]

Edited on 2017-10-27 17:37:01 by Peter
Additions:
- This query displays the **featured_tag table**, as well as the name of the tag. This is helpful to find the list of tag_id's associated with a featured_id:
Deletions:
- This query displays the **featured_tag table**. This is helpful to find the list of tag_id's associated with a featured_id:


Revision [20397]

Edited on 2017-10-27 17:13:18 by Peter
Additions:
**Simple Queries for Viewing OnPoint Info**:
SELECT ft.*, t.name
FROM featured_tag ft
JOIN tag t ON ft.tag_id = t.tag_id
Adding a WHERE featured_id = '#' will display all the tags for a featured issue.
Deletions:
**Simple Queries for Viewing OnPoint Tables**:
SELECT *
FROM featured_tag


Revision [20396]

Edited on 2017-10-27 17:09:44 by Peter
Additions:
- This query displays the **featured table**. This is helpful to find featured_id, the official issue title, issue descriptions, and release_id (1 = unreleased; 2 = released):
- This query displays the **featured_tag table**. This is helpful to find the list of tag_id's associated with a featured_id:
SELECT *
FROM featured_tag
Deletions:
- This query displays the **featured table**. This is helpful to find featured_id, the official issue title, issue descriptions, and release_id (1 = unreleased; 2 = released)


Revision [20395]

Edited on 2017-10-27 17:08:07 by Peter
Additions:

**Simple Queries for Viewing OnPoint Tables**:
- This query displays the **featured table**. This is helpful to find featured_id, the official issue title, issue descriptions, and release_id (1 = unreleased; 2 = released)
SELECT *
FROM featured


Revision [20393]

The oldest known version of this page was created on 2017-10-27 16:42:24 by Peter
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki