Sathish Kothandam
Sathish Kothandam

Reputation: 1520

Invalid number error - NVL function

I just found out an error (Invalid Number) in this line of SQL code:

WHERE NVL((submit_time - req_time) * 24 ,12121)  != 12121

Can someone explain what may be the problem?

Upvotes: 0

Views: 763

Answers (1)

arunb2w
arunb2w

Reputation: 1196

Can you try something like this , to make sure that we are not dealing with null on those two fields

where decode(submit_time,NULL,12121,decode(req_time,null,12121,(submit_time - req_time) * 24))

Upvotes: 1

Related Questions