caseステートメントで複数の行を返したい。出来ますか?またはそれを行う別の方法はありますか?
select
case
when 3 = 1
then (select orderid from order_master where noOfInstallment = installmentPaid)
else
(select orderid from order_master where noOfInstallment <> installmentPaid)
END
両方のサブクエリは複数の行を返します。次のエラーを示すクエリの上にあります。
サブクエリは複数の値を返しました。サブクエリが=、!=、<、<=、>、> =の後に続く場合、またはサブクエリが式として使用される場合、これは許可されません。