0
我有三個表,其中顯着字段用連字號標記。 如何使用MAX invoiceDate更新所有Customer.MostRecentGiftCardPurchaseAmount與發票中的Customergiftcardpurchase.Amount?SQL服務器更新與第二個表的值與第三個表的最大值相關
Customer
-pk customerID
-Money MostRecentGiftCardPurchaseAmount
Customergiftcardpurchase
-fk customerID
-fk invoiceID
-Money amount
Invoice
-pk invoiceID
-Date invoiceDate