したがって、基本的には次のようなデータベースがあります。
card_types
id description price
1 Card1 1.00
2 Card2 2.00
3 Card3 3.00
card_occasions
id occasion
1 birthday
2 graduation
3 thank you
4 other
type_occasions
ID TypeID OccasionID
1 1 1
2 1 2
3 1 4
4 2 3
WHERE card_type.ID = 1を使用して内部結合を実行しようとしていますが、同様の出力が得られますが、どこから始めればよいかわかりません。
出力例:
card_occasion.ID card_occasions.Name
1 birthday
2 graduation
4 other
どんな助けでも大歓迎です。ありがとう。