Can we convert EPOCH data and time format in to normal time and date format in web i itself by writing some sought of variable…?
I’ve read couple of articles on this, where they are mentioning to install BO on top of UNIX or some sought of technical setup required to achieve…i cant go for that procedure as my BASIS team here is too slow it’ll take forever to solve this issue.
1,270,444.943,534 this is how i am getting the values from MySQL table…i have applied a variable in web i itself i.e =[Workorder].[Createdtime]/86400+25569 (dividing it with number of seconds in a day and sum 1 jan 1970 epoch time)
After applying the above formula…i am getting result value now as 14,729,792.88 which is also alien format for me… Now when i am trying to convert this format into date and time the values are giving #FORMAT error.
When I worked with these the DW team translated into dates and other transforms for me.
Also they worked some magic with regards to producing a calendar table with clever formats for filtering, returning a “1” for a day ago, “2” for two days ago…, the same for weeks, months, years etc. this performed very well.
i’ve done some work around from IDT side, where i have added the script and there while running the query it is giving me proper converted values for time and date.
Now applying same script in web i panel it is giving the below error
“The data type of a column in the query is not valid. (IES 10811)”
This is the script i used…
SELECT DISTINCT workorder_0.WORKORDERID, statusdefinition_0.STATUSID, statusdefinition_0.STATUSNAME, aaauser_1.FIRST_NAME, FROM_UNIXTIME(workorderstates_0.ASSIGNEDTIME/1000) AS ‘ASSIGNEDTIME’
FROM servicedesk.aaauser aaauser_0, servicedesk.aaauser aaauser_1, servicedesk.sduser sduser_0, servicedesk.statusdefinition statusdefinition_0, servicedesk.workorder workorder_0, servicedesk.workorder_threaded workorder_threaded_0, servicedesk.workorderstates workorderstates_0
WHERE workorder_0.WORKORDERID = workorder_threaded_0.WORKORDERID AND workorderstates_0.WORKORDERID = workorder_0.WORKORDERID AND statusdefinition_0.STATUSID = workorderstates_0.STATUSID AND workorder_0.REQUESTERID = sduser_0.USERID AND sduser_0.USERID = aaauser_0.USER_ID AND workorderstates_0.OWNERID = aaauser_1.USER_ID AND ((aaauser_1.FIRST_NAME<>‘Bassem’) AND (statusdefinition_0.STATUSNAME<>‘Closed’ And statusdefinition_0.STATUSNAME<>‘Cancelled’))
database error : [MySQL][ODBC 5.1 Driver][mysqld-4.1.18-pro-nt] you have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'statusdeination_0.statusid as ‘statusdefination’ ‘statusdefination_0.STATUSNAME’ at line 3