MarsianStar
Technical User
Hello,
I am using Oracle and CR XI. This is the command that I am using. The second code is for a formula in the report that I am also using, but because the field is not indexed, it takes about an hour to run. I would like to insert an equivilant formula in the SQl query to make run faster.
I am using Oracle and CR XI. This is the command that I am using. The second code is for a formula in the report that I am also using, but because the field is not indexed, it takes about an hour to run. I would like to insert an equivilant formula in the SQl query to make run faster.
Code:
SELECT c.CALLID,
c.RECVDDATE,
c.RECVDTIME,
s.CUSTID,
a.ITEM_RES_ID,
c.CUSTTYPE,
s.REPORTED_BY_ORGANIZATION,
a.ASGNTEAM,
c.SUBITEM,
c.CALLDESC,
c.CLOSEDESC,
s.CALLER_NAME
FROM CALLOG c,
ASIGNMENTS a,
CUSTOMERS s
Code:
stringvar ClientName;
if {Command.CUSTTYPE} = "TYPE1" then (ClientName:= {Command.REPORTED_BY_ORGANIZATION})
else
(ClientName:= {Command.CUSTID});
ClientName