Thanks a million, you solved my problem :-)
Greetz,
Theo
Main Topics
Browse All TopicsI have a view that calls a function with an incorrect dateformat, and I need to change that format as parameter for the function, but when I save I get ORA-00998 error:
Viewname: ILN_DUAL
SELECT
(to_char(sysdate, 'J') -
to_char(to_date('01-01-197
to_char(sysdate, 'HH24') * 3600 +
to_char(sysdate, 'MI') * 60 -
is_dlst(to_char(sysdate, 'YYYY-MM-DD')) * 3600
FROM DUAL
and when I change the last date format to 'DD-MM-YY' and save this:
ORA-00998 Must name this expression with a column name.
Cause: An expression or function was used in a CREATE VIEW statement, but no corresponding column name was specified. When expressions or functions are used in a view, all column names for the view must be explicitly specified in the CREATE VIEW statement.
Action: Enter a column name for each column in the view in parentheses after the view name.
But, I do not use columnnames in this view. Where do I have to put what column name??? The ILN_DUAL view is used to calculate a scalar date/time from a date, and is_dlst is used to determine daylight savings time. It returns 1 or 2 which reflect the hours to subtract in or out of DST.
Anyone any suggestions?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: angelIIIPosted on 2002-08-21 at 03:01:26ID: 7232926
Try this:
0', 'DD-MM-YYYY'), 'J')) * 86400 +
SELECT
(to_char(sysdate, 'J') -
to_char(to_date('01-01-197
to_char(sysdate, 'HH24') * 3600 +
to_char(sysdate, 'MI') * 60 -
is_dlst(to_char(sysdate, 'YYYY-MM-DD')) * 3600 AS Calculated_Hours
FROM DUAL
CHeers