1

table_Pricing

ProductType = Lookup from table ProductCatalog.ProductDutyType (dropdown combo)

義務= ?

table_ProductCatalog

列-

ProductDutyType-   Custom
Pens-               15
Bags-                5
Organizers-         10
Dresses-             3

table_Pricing の製品タイプのドロップダウンで選択すると、選択した製品タイプに応じて、関税列が table_ProductCatalog のカスタム列から値を取得する必要があります。

表の価格設定で製品タイプを選択すると、Duty 列で 2 つの表が比較され、バッグのカスタム列に値が表示されます。つまり、5 です。

誰かが私を理解してくれることを願っています。助けてください、ここにいるニュービー。

4

1 に答える 1

0

これを試して:

SELECT custom 
FROM table_ProductCatalog
WHERE ProductDutyType = 'Bags';
于 2012-12-25T14:23:25.923 に答える