私は3つのテーブルを持っています:
アイテム
ItemCategories
カテゴリ
ItemCategoriesに含まれるもの:
id
itemID
categoryID
アイテムのカテゴリ名を取得するSQLをどのように記述しますか?
これまでのところ:
Select *
from
items,
itemCategories,
categories
where
item.id = itemCategories.itemID
and categories.id = itemCategories.categoryID