Best unofficial Apache Server developers community |
|
I have a query that I made to return all the tags in a set with the tags in a concatenated list, but I'm trying to determine how to write a query that will return the same results but only for those items with a specific tag.. list talks by tag, if you will. Logically, if I add a 'where tbl_tag.tag_id=3', it only lists that specific tag in the group.. I want it to be able to still list all of them. Possibly multiple queries are the answer but I'm curious if it can be done with one.
posted via StackOverflow
|
|
 
|
The quick, *****1ish solution would be to wrap your entire query in an outer query, and only return records containing the appropriate tag using A slightly more correct (and equally untested!) solution would be to add the original query as a subquery in your
There might be a simpler built-in way of doing this in MySQL, but I don't know it. |