次のコードではエラーが発生します。
select lastname, firstname, workphone, homephone
from members if (workphone is null) then workphone = homephone;
lastnames
という名前のテーブルから および 3 つのfirstnames
電話番号を選択しようとしていますmembers
。メンバーの場合は、workphone is null
に置き換える必要がありhomephone
ます。
必要に応じて明確にしていただければ幸いです。