we have a column of int/varchar datatype,but when we run
the report we should get the date format
i.e., suppose date key is a query item consists of data as
20040105,20030503,20060410.......
output should be 5 jan 2004,3 may2003,10 apr
2006..........respectively.Can i knnow the answer
Answer Posted / nasa
Hello it is possible...
IN ORACLE:----
Datatype is int or varchar... so first convert into date by using date function
Eg: to_date('20040105','yyyymmdd');
By using to_char() use can extract which format you want or which particular thing you want.. ex: month, year, date, time...
Eg: select to_char(to_date('20030503','yyyymmdd'),'DD Mon Yyyy') from dual;
here answer: 03 May 2003
IF you want this feature in Cognos use extract().
Regards,
Nasa...
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what are the errors faced while bursting the reports and how to solve those errors?
tell me two or three issues from client side and how to solve those issues?
-------------What is Coditional Prompting?
What is a Folder?
What is main difference mapplets and mapping?
hi i need to rename a file in cognos8? can anyone help me out how 2 do it? pls suggest some solution such as using a batch file or using a procedure node or anything to rename the file
What are the types of folder present in cognos?
Why is auto-regression used in forecasting used on cognos platform?
What you mean by drill across?
What is the difference between ‘macro’ and ‘prompt?
What do you understand by the term 'aggregate advisor?'
How create measures and demensions?
Write types of folders present in cognos?
How can I test reports in cagonos?
How do you call a store procedure within a transformation?