ave a select statement as follows, which runs very slow. I think it is the count or the subselect, but
I do not see how I could optimize it. I tried using hints, Ordered and All Rows, but it did not do speed up
the retrieval. The tables are indexed.
SELECT CASE
WHEN (a.type =...
I need to call a procedure from a CASE-WHEN statement, from a script. Is this permissible? I want to do something like:
SQL SCRIPT:
set autoprint on
set linesize 80
set serveroutput on
SELECT type,
(COUNT(CASE WHEN (called_procedure(field1,field2) = 1)
THEN (CASE WHEN...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.