Ich habe eine Datenbank, die Inhalt nach Taxonomie bezieht, und ich versuche, diesen Inhalt nach Taxonomie abzufragen. Es sieht wie folgt aus:SQL-Taxonomie-Hilfe
Table 1
content_id, content_name
Table 2
content_id, content_taxonmoy
Was ich in meiner Anfrage versuche mit zwei oder mehr Arten von nahe stehenden Taxonomie Inhalt zu finden ist. Meine Abfrage sieht so aus:
SELECT content_id FROM table_1 JOIN table_2 ON table_1.content_id=table_2.content_id WHERE content_taxonomy='ABC' AND content_taxonomy='123'
Außer es gibt nichts zurück. Ich versuchte später eine Gruppe mit:
SELECT content_id FROM table_1 JOIN table_2 ON table_1.content_id=table_2.content_id WHERE content_taxonomy='ABC' AND content_taxonomy='123'GROUP BY content_id, content_taxonomy
Aber das hat auch nicht funktioniert. Irgendwelche Vorschläge bitte?