Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は2つのテーブルを持っています:
Discounts(disid primary key) Cust(custid primary key, disid ref discount(disid))
custidここで、すべてdisid(割引クーポン)を取得するためのクエリが必要であり、顧客には同じクーポンdisidが複数回含まれている可能性があります。
custid
disid