Jump to content

subquery question


mapleleaf

Recommended Posts

I have an articles table with a tag field and a theme field.(and other fields)

The theme field takes a single theme_id. Themes are in their own table.

I want to pull all the articles that have duplicated the theme name in their tags. Tags are comma separated.

It seems like it would be easy but.... :confused:

 

Pseudo:

SELECT * FROM articles, themes WHERE themes.theme like '%articles.tags%'

 

Tx

 

 

Link to comment
https://forums.phpfreaks.com/topic/203385-subquery-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.