|
Re: ORA-00905, ORA-06550 [message #593240 is a reply to message #593238] |
Thu, 15 August 2013 04:30   |
cookiemonster
Messages: 13967 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
Code should always be posted as text in [code] tags not as an image.
Case statements return values. exrate1 = <whatever> is a Boolean expression not a value that can be returned.
Each THEN clause should just have the number you want to return, nothing else.
|
|
|
|
Re: ORA-00905, ORA-06550 [message #593259 is a reply to message #593240] |
Thu, 15 August 2013 05:40   |
pablolee
Messages: 2882 Registered: May 2007 Location: Scotland
|
Senior Member |
|
|
cookiemonster wrote on Thu, 15 August 2013 10:30
Case statements return values. exrate1 = <whatever> is a Boolean expression not a value that can be returned.
Minor nit pick. CASE statements allow you to perform actions. CASE expressions return values. Case statements are not valid in SQL, whereas Case expressions are.
The OP appears to have mixed the two together.
[Updated on: Thu, 15 August 2013 05:41] Report message to a moderator
|
|
|
|
|
|
Re: ORA-00905, ORA-06550 [message #593600 is a reply to message #593593] |
Mon, 19 August 2013 02:32  |
Roachcoach
Messages: 1576 Registered: May 2010 Location: UK
|
Senior Member |
|
|
The error means your query returned no rows. The code compiled and ran as coded, but no data was returned.
Although the way your code is written I seriously doubt it's going to achieve your functional requirements.
Also, you're passing a string into a timestamp field, don't do that, convert the literal (or better yet, dont use a literal).
|
|
|