By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
1 rows affected
1 rows affected
1 rows affected
dbms_output:
---------------------------------------
select
max(case when STR like '%@pqr.de%' then 1 else 0 end)
from T42
where
STR is not null
Found!!! l_result=1
---------------------------------------
select
max(case when STR like '%@pqr.de%' then 1 else 0 end)
from T43
where
STR is not null
Found!!! l_result=1
1 rows affected
dbms_output:
---------------------------------------
select
max(case when STR like '%@pqr.de%' then 1 else 0 end)
from T42
where
STR is not null
Found!!! l_result=1
---------------------------------------
select
max(case when STR like '%@pqr.de%' then 1 else 0 end)
from T43
where
STR is not null
Found!!! l_result=1
---------------------------------------
select
max(case when COLUMN like '%@pqr.de%' then 1 else 0 end)
from TABLE
where
COLUMN is not null
ORA-00936: missing expression
ORA-06512: at line 55
1 rows affected
dbms_output:
---------------------------------------
select
max(case when "STR" like '%@pqr.de%' then 1 else 0 end)
from "FIDDLE_DBUALQRXFBEQLOXDRJBZ"."T42"
where
"STR" is not null
Found!!! l_result=1
---------------------------------------
select
max(case when "STR" like '%@pqr.de%' then 1 else 0 end)
from "FIDDLE_DBUALQRXFBEQLOXDRJBZ"."T43"
where
"STR" is not null
Found!!! l_result=1
---------------------------------------
select
max(case when "COLUMN" like '%@pqr.de%' then 1 else 0 end)
from "FIDDLE_DBUALQRXFBEQLOXDRJBZ"."TABLE"
where
"COLUMN" is not null