と呼ばれる2つのテーブルがListingありますListingProperties
Listing (ID, CurrentPrice)
ListingProperties (id, listingId, Fixedprice)
問題は、すべてのリストを で注文したいということですFixedprice。ただし、一部のリストにはFixedprice.
その場合は、現在の価格を確認し、他社と比較してFixedpriceから注文したいです。
上場
id name currentprice
1 a 10
2 b 50
3 c 40
リスト プロパティ
id listingId Fixedprice
1 1 20
2 3 30
注文後、必要な注文は
name
a
c
b