postgres で計算列を使用する際に問題が発生しています。SQL で動作する同様のコードを以下に示します。これを で再作成することは可能PostgreSQL
ですか?
select cost_1, quantity_1, cost_2, quantity_2,
(cost_1 * quantity_1) as total_1,
(cost_2 * quantity_2) as total_2,
(calculated total_1 + calculated total_2) as total_3
from data;
PostgreSQL
同様のコードでは、次のエラーが返されます。
列 total_1 および total_2 は存在しません。