このT-SQLクエリをOracleに変換するにはどうすればよいですか?
if((select case
when (select top 1 AlertMessage
from ims.dbo.alertlist
where SystemID=@meter
order by TimePeriod desc
) like '%NO_COMMUNICATION_Resolved' then 1
else 0 end)=1)
begin
INSERT INTO [ims].[dbo].[alertlist]
([SiteID],[ThresholdNumber],[SystemID],
[AlertMessage],[TimePeriod],[AlertType],[PollID])
VALUES
(1,@thresnumber,@meter,@message,getdate(),1,0)
end