Quote:
Originally Posted by anacedent
Oracle does not like or expect space characters for/within column alias
|
Unless you use double quotes around the alias
Quote:
|
Originally Posted by ARER01
"FROM keyword not found where expected"
|
A table alias cannot use the AS keyword. You need something like:
Code:
... FROM (SELECT CURCROSSES.CURCRO...) T ...
Note the missing
AS after the closing bracket.
Another thing: the condition
PRICE_DATE = ('02-jan-2012') is bound to fail if your SQL runs in an environment that uses a different locale (i.e. date format).
You should change that to:
PRICE_DATE = to_date('02-01-2012', 'dd-mm-yyyy'). This will work correctly regardless of the environment.
And please use [code] tags in the future to make your SQL readable
For details see the help link at the bottom of the page:
http://www.dbforums.com/misc.php?do=bbcode