How to handle the data type DECIMAL MySQL converted to DOUBLE in OBIEE 10 gR 3?

Hi all

I have a problem in OBIEE 10g to I use the MySQL database as datasource direct to the server of the OBI and I have a column in a MySQL table which was designed as the DECIMAL data type (18.0).
This column is used to measure a length, and values are included in seconds (without decimals), in the form as:
"1200"
in the MySQL database.

After the import of the MySQL table associated with the repository of the OBI, the OBIEE converts the DECIMAL data type column to the DOUBLE PRECISION data type automatically.

My goal is to reach the values in this form, certainly in the sense of the term (not at the time!):
hh mm ss

In order to accomplish, I tried to change the format of column with the ROUND function:
ROUND (db.table.column / * 3600 * 2)

The problem is that it doesn't work well if values can be divided with no rest for example
original value: 7200
new value (ROUND): 2

In the case of my example:
original value: 1200
new value (ROUND): 0
It's false, because 1200 seconds are not equal to 0 hours, I want to see two hours of _0.33333_ OR I much prefer more _0 hour 20 m_

Anyone have any ideas?
I tried to make a view of database and importing that type of CHAR data in the database, but is not the solution too, because if I filter BI app or try to make a SUM the BI would drop errors...

Kind regards
Laszlo

Hello
SE refer to this link, it is exactly will meet your need.

OBIEE 11 g - change seconds in the format hh: mm: DD
OBIEE functions

Share updates... :)

check if useful/correct...

Tags: Business Intelligence

Similar Questions

  • How to declare the data type of a column in a select query?

    How can we give the data type of each column on the fly during the selection of rows in a query?

    the cast function converts one data type to another.

    The syntax of the cast function is:

    Cast ({expr |}) (subquery) | (MULTISET (subquery)} AS type_name)

    Select cast (22 August 2003 ' AS varchar2 (30))
    Double;

    Published by: b_ * August 12, 2011 10:08

  • How to get the data type of an object?

    I have some custom classes, and I would like to make conditional function that behaves differently depending on the data type of the object. How can I do this?

    you could do something like

    var obj:CustomObject = new CustomObject();

    If (obj is Objetpersonnalise)

    {

    do something

    }

    or you could look at using getQualifiedClassName() or getDefinitionByName()

  • How to set the date type date of work

    This is perhaps a silly question, but I can't seem to get the data type date to work for a member account. When I go to the planning application and choose an account I want to put in a date entry account, the web form seems to show that the setting of the date works for the account. I even put my account type to be saved hypothesis. For example, I expect to see the date formatted in 10/20/2009 when I enter this value in the web form under my account "Hire Date". I also checked the display options in the preferences of planning. If anyone knows if this function works even on 9.3 or 11.1?

    Hello

    Looks like you have not defined the order of evaluation of Auditors. Administration > Dimensions > evaluation order > select plan type > moving accounts to another window, apply.
    Try the form again.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to recover the data type of a column in a table?

    Hello

    I want to retrieve the data type of a column in a table. At the moment I'm querying attribute 'OCI_ATTR_DATA_TYPE', but it is SQLT_CHR varchar2 and nvarchar2 data type columns. I need to make a distinction between these columns of two separate data types. Y at - it all API through which I could get the exact data type of a column, i.e. "nvarchar2?

    Thanks in advance.

    Hashim

    Hello

    It is not a very direct way to do it. What you can do is to call OCIDescribeAny on the table that you want to get information. You can then get the OCI_ATTR_CHARSET_FORM attribute for the column. If the value of the attribute that you get is SQLCS_IMPLICIT, that would mean its a varchar/char/varchar2 column regular. If you get SQLCS_NCHAR, this means that the column is NCHAR. You can get the example of it here:

    http://download.Oracle.com/docs/CD/B14117_01/AppDev.101/b10779/oci06des.htm#446491

    Just look for the section "Recovering for a Table column Datatypes".

    Thank you
    Sumit

  • How to return the data type complex of a synchronous BPEL process

    Hi all
    I have created a synchronous BPEL process, so a partner customer link was automatically created in the project. Now the link partner of this client is to have input and output variable of type normal string where as my BPEL process finally returns a complex data type.
    In order to solve this problem, I took a processing activity and mapped the collection [variable returned by my BPEL process] to the chain of production of the customer but in this way I just get a single string to store the entire collection but I want that they separately.

    Can someone tell me, how to manage this scenario.

    Concerning
    Lokesh

    After creating the partner link and the invoke (to create the variables), change the element type of the response message to the complex type definition of your collection that appears in the XSD. You can do the same thing if you want to change the element type of the payload of the request message as well.

  • How to force the data type in create table field?

    Hi all

    I need to force my table to create as follows

    Create table XYZ

    (Test varchar2 (10 CHAR)

    ...

    );

    When I run my Interface the script is

    Create table XYZ

    (Test varchar2 (10))

    ...

    );

    and the DBMS translated into

    Create table XYZ

    (Test varchar2 (10 BYTE),

    ...

    );

    I have the same problem with I$, C$, and so on.

    Best regards

    Marco

    Hi all

    I fix my problem:

    In Phisical Tecnology, under ORACLE Tecnology, data TYPE, I modified the definition of VARCHAR2 in VARCHAR2(%L CHAR).

    (Before it was VARCHAR2 (%)).

    Thank you all.

    Marco

  • How to detect the data type is?

    Hello!

    I built a function of VI. But I want to make it safe - function could detect what type of data is connected to the inputs and only allow certain types of data cabling. How can I do this?

    Thank you

    You could look in polymorphic VI.  They will allow you to connect different types of data.  However, it is not really an option to "do not allow" it.

    If someone creates their own s VI in LabVIEW, then they should pay attention to details like the stress points.  Other than provide good documentation describing the function, inputs and outputs of a Subvi, it's not really necessary for the creator of the Subvi to prevent another programmer to use this Subvi wrongly.

  • How to change the data type of a column after the creation of the table

    It comes to my table desc

    SQL > desc job1

    Name                                      Null?    Type

    ----------------------------------------- -------- ----------------------------

    JOB_CODE NOT NULL VARCHAR2 (3)

    JOB_CLASS VARCHAR2 (30)

    CHG_HOUR NUMBER (5.2)

    OVERTIMECHARGE NOT NULL NUMBER

    I want to change column CHG_HOUR to store numbers up to 12 digits in length (including the decimal points).

    I tried the following and it did not help

    SQL > alter table job1 change column chg_hour number (6.6);

    ALTER table job1 change column chg_hour number (6.6)

    *

    ERROR on line 1:

    ORA-01735: invalid option of ALTER TABLE

    SQL > alter table job1 change chg_hour number (6.6);

    ALTER table job1 change chg_hour number (6.6)

    *

    ERROR on line 1:

    ORA-01438: value larger than the precision specified for the column

    where I'm going wrong?

    Hello

    I want to change the CHG_HOUR column to store numbers up to 12 digits in length (including the decimal points).

    I tried the following and it did not help

    ALTER table job1 change chg_hour number (12.6);

  • How to display the data type long using the select statement

    Hai All

    I have to select the text of a view. But the text is declared as long and I need to see full view

    When I use this

    Select the text in all_views where view_name = "DAILY_ATTEND_VIEW";

    I have got only half of a select statement

    Concerning

    Srikkanth.M

    Hello

    SQL> SET LONG 100000
    SQL> select text from user_views
      2   where view_name='MVIEW';
    
    TEXT
    ------------------------------------------
    select e.empno,e.deptno,d.dname
    from emp@sdblink e,dept@sdblink d
    where e.deptno=d.deptno
    

    But it is limited to sql alone. If you use the double click TOAD on the text column in the grid will show you the entire SQL views.
    Unfortunately, there is limitation to consider,
    The largest value that you return from the function would be 32 k (RETURN VARCHAR2), both.

    Twinkle

  • Get the Data Type of queue

    I'm working my way through my first vi producer consumer and I have two questions.

    1 I am the queue data x, y samples acceleration waveform type z. The code snippet shows how to set the data type in the queue to get. It is rather ugly and disturbing, even if it seems to work.  Is there a way more elegant and beautiful to set the data type?

    2. the sampling frequency of the accelerometer is 5120 Hz.  The DAQmx Read buffer is 1024 length samples.  Therefore, it takes 200 [ms] to fill the buffer.  I put the metronome 100 [MS] to ensure that the producer is not without samples.  This means that the loop While producer will spend much of its time waiting.  Right?  Given the wait cost anything?

    In ProducerConsumerExample.vi of LabVIEW, the sampling frequency is 10000.  The size of the read buffer is 1000.  And the metronome is set to 100 [ms].  The sampling frequency of the device comes from the hardware device in the cDAQ.  100 [ms] interval comes from the PC.  It will not be a mismatch?  I would like to understand this before I put my metronome to 200 [ms].

    Arizona_Joe wrote:

    Then, can shed you some light on the behavior of the loop while you mentioned is not a metronome that is is punctuated by DAQmx? I think it would do a lot of rotation.

    It is not spinning as he waits inside the DAQmx Read for samples N must be obtained.  This isn't a request for data.  It takes time to collect these samples.  That length of time depends on your sampling rate and how many samples you request.  So because he is waiting inside the DAQmx Read, there is no need to add an additional wait.  Let the DAQmx Read limit the rate of the loop.

    It's actually like the loop of consumer for the consumer to the producer.  Playback of the queue will limit the rate at which that loop runs.  It should therefore no waiting.

  • Change the data type of a Coloumn

    Hi, I created the Employee table.
    Its data type is the following...

    Name Null? Type
    ----------------------------------------- -------- -------------------------

    EMP_ID NUMBER (5)
    EMP_NAME NOT NULL VARCHAR2 (10)
    EMP_SAL VARCHAR2 (8)
    DATE OF MEP_HIREDATE
    NUMBER OF COMM

    How to change the data type of number data type EMP_SAL...
    Thank you..
    SQL> CREATE TABLE EMP (
    EMP_ID NUMBER(5),
    EMP_NAME  VARCHAR2(10),
    EMP_SAL VARCHAR2(8),
    MEP_HIREDATE DATE,
    COMM NUMBER)
    /
    ALTER TABLE EMP MODIFY (EMP_SAL NUMBER);
      2    3    4    5    6    7
    Table created.
    
    SQL>
    Table altered.
    
  • change the data type of a column

    Since the previous post: how to change the data type of column number to varchar2 in oracle10g

    Measures may be:
    create table TestTable (ColA varchar2 (5));
    Insert into TestTable values('12345');

    ALTER table TestTable Add (ColATemp number (5));
    setting a day of TestTable set ColATemp = ColA;

    ALTER table TestTable remove column ColA;
    change the column in table TestTable rename ColATemp CLC;

    My question is:
    If the table half million records

    setting a day of TestTable set ColATemp = ColA;

    will it be a good solution? Any performance issues? There is no index on this column.

    Sort while you do DDL, you will not be able to do any operation on the table. You the best suites you. It's a time operation, you can change the table to change the data type, but it may not work if some of the data in the table confirms no new data type of column.

    Concerning

  • determination of the data type of an existing column in a table

    Hello
    I did some googling on this, and I know I've done it before, but I can't find / remember how to determine the data type of a column in an existing table... I have tried select dump (column_name) table, but it didn't work.
    any suggestions?
    Thanks in advance

    data type field in

    select * from user_tab_cols where table_name= and column_name=
    

    Ravi Kumar

  • [nQSError: 43119]:-the data type: 25 is not supported columns error for data type "uniqueidentifier".

    Hi all


    I am facing a problem while creating a BI reports to the SQL Server 2008 Database.

    Access to columns of data type "uniqueidentifier" I get error [nQSError: 43119]:-the data type: 25 is not supported.

    • OBIEE 11.1.1.6.11 on Linux x86_64 servers is hosted by the Services of Oracle Cloud.
    • Using last "ODBC driver for SQL server 11" for connection (also tried driver "DataDirect SQL Server 6.0 native Wire Protocol").
    • No "Uniqueidentifier" data type columns display correctly in reports.
    • I tried to change the columns of data type "Uniqueidentifier" to char (36), VARCHAR (36), VARCHAR (40), types of binary data (16) in the physical layer on various suggestions but error still there.

    Same columns questioned the SQL Developer (using third-party jTDS JDBC driver "jtds - 1.2.7 - dist") I am able to see these "uniqueidentifier" data columns. record sample:-"CB350576-FCD8-DE11-B111-002219598619".


    Please advice if this is a bug or I'm missing some property of SQL server database settings.


    Thanks in advance.

    Yes Srini,

    This type of column becomes UNKNOWN when they are imported into SPR but its strange after changing to VARCHAR (36), we can use it for joining tables without any problem.

    Only issue I'm facing now is the limitation to use in queries like calculate the total number of incidents (in my case incidentid is the primary key).

    But I've found a workaround. I am formulating a measure in MDB layer to get the number of total incidents as {CASE WHEN is NULL then 0 otherwise 1 END}.  the aggregation is defined on the sum and I get incident count works correctly.

    Thanks for your help.

Maybe you are looking for

  • Re: Why my Satellite P300 "stereo mix" in "recording devices"?

    I want to record the internal sounds on my new Satellite P300, but there is no "stereo mix" in "recording devices". I chose "show disabled devices" and "show disconnected" features (see screenshot below), but still nothing. Is there a driver missing

  • reset the BIOS

    Pls help. When I plug in my hp mini1000 it will restart and boot with bios password. Is it possible to reset? The error code is CNU9103PVS thank you very much, hope of solution.

  • Replacing motherboard NE56R27U gateway is not well...

    My son NE56R27U had a motherboard failure (a short circuit somewhere on the Board, could not isolate), so I bought a new gateway/Acer.  Well, the jury arrived and I replaced it in the laptop, and now it does not recognize the hard drive.  Before star

  • flash drive for the new Pavilion touchscreen

    I have a new laptop Pavilion touhsmart, 15-no47cl.   Need to make the recovery disc.  I have a USB sandisk flash drive to 2.0 GB.  Don't know if it will work.  The Instructions don't tell you what to buy. I'd appreciate any help / it has Windows 8.1

  • Display clock Leap blackBerry

    HelloI put my "screen timeout" to 1 minute... After that, the screen goes black and the mobile capacity... Now; is there a way to display the clock, while the mobile is in standby?Thank you...