place all of the values on a line

Hi, people.

I have the situation of a query result set

Val (HAE) 1 time2 time3 of cod
1 to 18:30 null null
1 a 20:30 null null
1 a null null 21:40
2 b 10:27 null null

understand 'null' or empty spaces or null

How do I show record 1 i a line, I need this way

1 18:30 to 20:30 21:40
2 b 10:27



Thank you...

Published by: claudioaragao on 05/07/2012 09:36

Published by: claudioaragao on 05/07/2012 09:38

Hello

claudioaragao wrote:
but I can´t do with values of time, I get the error ora-01722... ?

You can do this with all values.

Display a test script complete (including CREATE TABLE and INSERT statements for some examples of data with your query) for people who want to hellp you can recreate the problem and test their ideas.
It is very difficult to tell what you're doing wrong without knowing what you are doing.

Tags: Database

Similar Questions

  • Dynamic MessageChoice based on the value of each line

    Hi all

    I'm trying to implement a requirment, don't know how I can acchive this in the OPS.
    I appriciate any person that makes me in the right direction


    How to have a dynamic messageChoice in OAFTable.

    My scenario is like this,


    OAFTable [UI Table]
    ========================================
    | Name | xxx movies | MessageChoice values.
    ========================================
    | 12-A | xxx movies | Apple, Airport |
    | 15-B | xxx movies | Ball, box |
    | 20 S | xxx movies | Singapore |
    =======================================|


    VALUE_TABLE [table DB]
    =======================
    | Letter | Value |
    =======================
    | A     | Apple |
    | S     | Singapore |
    | A     | Airport |
    | B | Ball |
    | B | Box |
    =======================

    (There is a messageChoice column in my third OAFTable represented above column).
    the values for this messageChoice must be filtered on the 'Name' column in each snippet of it IE row letter and use this value to filter the values of VALUE_TABLE.

    Where clause for each message lines choice should change dynamically as

    Rank 1: select the value in VALUE_TABLE where letter = "A".
    Rank 2: select the value in VALUE_TABLE where letter = 'B '.
    Rank 3: select the value from VALUE_TABLE where letter = 'C '.

    Since the messageChoice EVENT is generated only after the exchange of value, I cann which allows to change the place where the clause of the VO.

    Is there a feature in OAF WHERE clause of that VO modifyes for each line?


    What will be the ideal approach to acchive. Surely someone would have solved this kind of scenario...

    Thanks for your suggestions in advance :)

    Srinath

    Hello

    Yes there is an available standard approach

    Consider a container, such as a table that has two columns. A column is a Department, while the
    another column shows all employees of this Ministry in a poplist. The view object used for the poplist
    (The view definition list pick) needs the number of Department (the "Deptno" of the container field) destined for bind
    variable: 1. This can be done with the following sample code in the processRequest of the controller method:
    Table OATableBean =...
    OAMessageChoiceBean = empPoplist
    (OAMessageChoiceBean) table.findChildRecursive ("EmpName");
    empPoplist.setListVOBoundContainerColumn (0, / * bind index * /)
    table, "Deptno");
    Copy the following lie the first index of (0th) bind to the view of poplist object used to the displayed value by the
    column named Deptno in the table.
    The setListVOBoundContainerColumn method can be called multiple times if the query used for the poplist
    several bind variables. Note that this approach actually simulates a BC4J link, except that it relies on
    the table columns of the user interface for bind rather than object attribute values values view directly.

    Thank you
    Gerard

  • Help to submit Input tag - how to wrap the value on two lines for BB Pearl (8100)

    Hello

    I have a question about the packaging of the value of a tag input submit on a page I have.

    I have an input tag:

    
    

    On the BB Bold/Storm is very good but I find on the Blackberry 8100 in the button text appears as a 'Yes. Dangerous goods have... ».

    Is there a way to encapsulate the text? I tried the class CSS white-space: normal but that has not worked. I also tried to add in
    (new line) and an assortment of different ways without success.

    Users want is the full text for legal purposes.

    If it is not possible, what would be the best option in addition to shorten the text (which is my last option)?

    Thanks in advance for your help.

    Kind regards

    Andrew Low

    You can also change your user interface so that both boxes option for the user to choose Yes or no, and then have a submit with generic text button that is perhaps not as long.

  • Returns the value of column line

    Greetings!  I currently have a request we will tell

    SELECT value, period FROM MAS_CFUS_KEYACM_CONTROLDATA ORDER BY cf_keyword_ID

    RESULTS

    Period value

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

    100.0002 1 JANUARY 14

    -35.68 1 DECEMBER 14

    -1943.67 NOVEMBER 1, 14

    678.0013 OCTOBER 1, 14

    This continues for about 15 results by cf_keyword_ID.

    I'm looking to return the VALUE first in a new column called PREV1, the second value of PREV2, third in PREV3 and so on.  The same goes for the dates.  And all this for only the first 10 values of each cf_keyword_ID.  Can anyone suggest the best way to achieve this?

    Thank you!!

    Hello

    This is called pivoting.  Because I don't have a copy of your table test, I'll use scott.emp to illustrate.

    This shows the first 3 employees for each job, in order by hiredate, along with their hiredates:

    WITH relevant_data AS

    (

    SELECT ename, job, hiredate

    row_number () taken OVER (PARTITION OF work

    ORDER BY hiredate

    ) AS r_num

    FROM scott.emp

    )

    SELECT *.

    OF relevant_data

    PIVOT (MIN (ename) AS ename

    MIN (hiredate) AS hiredate

    FOR r_num (1, 2, 3)

    )

    ORDER BY job

    ;

    Output:

    WORK 1_ENAME 1_HIREDATE 2_ENAME 2_HIREDATE 3_ENAME 3_HIREDATE

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

    ANALYST FORD 3 December 1981 SCOTT April 19, 1987

    The CLERK SMITH December 17, 1980, 3 December 1981 JAMES MILLER January 23, 1982

    MANAGER JONES 2 April 1981 BLAKE 1 May 1981 CLARK June 9, 1981

    PRESIDENT KING November 17, 1981

    SELLER ALLEN 20 February 1981 WARD 22 February 1981 TURNER 08-Sep-1981

    There are actually more than 3 SECRETARIES and SALESMEN.  Which does not cause an error; the only first 3 are shown.

    As you can see, having less of 3 does not cause any errors, either.

    For more info on pivots, see the FAQ of the Forum:

    Re: 4. How can I convert rows to columns?

    I hope that answers your question.

    If this isn't the case, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.

    Explain, using specific examples, how you get these results from these data.

    If yod post rather a problem using scott.emp, then you need not display the sample data; just results and explanations.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum:

    Re: 2. How can I ask a question in the forums?

  • Change the number of decimal places according to the value of the field

    Hello world

    I'm doing a form using Adobe Acrobat.

    I want a field that usually has only 2 decimal places, to have 4 decimal positions ONLY when necessary.

    Example: If the value of the field is 3.53 that's fine, but if the value is 3,5346 I want to show him this.

    I played around field properties and I realized that I need to use a custom format script. I don't know where to start, however. Can you point me in the right direction?

    Thank you in advance.

    I just threw together quickly and did not test, take is as a general guide. It is intended to be placed in a JavaScript to the document level and called from custom Format script of the field. You can not put it simply everything as the script to Format because of the way that Acrobat behaves when you do.

    The point of the script is to calculate the number to use as the first parameter to the AFNumberFormant function, which is that Acrobat uses when configuring a digital format. I couldn't think of a clever name for the function, so I leave it to you:

    function fmt1() {
    
        // Set the minimum number of digits to the right of the decimal
        var min = 2;
    
        // Get the field value, as a string
        var val = event.value;
    
        // Round to the nearest 10-thousand of a cent
        var rn = util.printf("%.4f", val);
    
        // Replace any trailing zeroes with nothing
        rn = rn.replace(/[0]+$/, "");
    
        // Get the number of characters after the decimal
        var num = rn.split(".")[1].length;
    
        // Set to the minimum if appropriate
        if (num < 2) num = 2;
    
        // Use built-in formatting function
        AFNumber_Format(num, 2, 0, 0, "\u20ac", true);
    
    }
    

    Call it like that in the case of the field Format:

    fmt1();
    

    If this isn't a calculated field, but the one who interacts with a user, you'll want to add a function with the swing, something like:

    function keystroke1() {
    
        AFNumber_Keystroke(2, 2, 0, 0, "\u20ac", true);
    
    }
    
  • Single request for the display of all, but the values of 1 column for all tables

    Hello

    All tables have the column SYS_CREATION_DATE.
    But I don't want to not display the value of this column

    Can anyone suggest a way in which I could achieve this?

    Oracle version: 11 GR 1 material
    OS: SunOS


    See you soon,.
    Malika

    Published by: user9131570 on July 6, 2010 19:57

    user9131570 wrote:
    @Tubby

    I * table-wise display the values of all but 1 columns (SYS_CREATION_DATE) in my database.*

    I need it to compare to another data base for all these values.

    I would like to make a wild guess at what you are getting.

    In view of these two tables

    create table emp
       (empid number,
        empname varchar2(15),
        empaddr   varchar2(15),
        sys_creation_date date);
    --
    create table dept
       (deptid number,
        deptmgr varchar2(10),
        sys_creation_date date);
    

    you want to combine somehow

    select empid,
             empname,
             empaddr
    from emp;
    

    with

    select deptid,
             deptmgr
    from dept;
    

    in a single sql statement?

  • Get the range of values such as the value of my line

    Hello

    I want one of my column in the table ("for example: column name = ' GVW") appears as below
    {code}
    PBV
    ----------------
    0-> 5
    5. > 10
    10 > 15
    {code}


    The values of the line comes from the table, called report_range_parameters table and it looks like in below

    {code}

    ID group name min_value max_value
    1 gvw_group 0 5 gvw_name
    gvw_group 2 5 10 gvw_name
    3 gvw_group 10 15 gvw_name

    {code}

    Here's my INSERT sample data.
    {code}

    INSERT INTO REPORT_RANGE_PARAMETERS (ID, GROUP, NAME, MIN_VALUE, MAX_VALUE)
    VALUES ('1 ', 'SPEED_GROUP', 'SPEED_NAME', '0', 5')
    INSERT INTO REPORT_RANGE_PARAMETERS (ID, GROUP, NAME, MIN_VALUE, MAX_VALUE)
    VALUES ('2 ', 'SPEED_GROUP', 'SPEED_NAME', '5', 10')
    INSERT INTO REPORT_RANGE_PARAMETERS (ID, GROUP, NAME, MIN_VALUE, MAX_VALUE)
    VALUES ('3 ', 'SPEED_GROUP', 'SPEED_NAME', '10', 15')


    {code}

    How I write a query to get the values of line like below?

    -----------------
    GVW |
    -----------------
    0-> 5
    5. > 10
    10 > 15



    Thank you

    Hello

    SELECT min_value || ' -> ' || max_value AS GVW FROM REPORT_RANGE_PARAMETERS;
    

    Kind regards

    Published by: Walter Fernández on 12 June 2009 20:45

  • Select all, when the value of the field is not distinct

    Hello.

    Suppose I have a table with data like this SAMPLE:

    ID | Number |      Date | Data1 | Data2
    ________________________________________________
    1. 0001 | 2001.01.01 | Data1-1 | 2-1 data
    2. 0001 | 2011.01.01. Data1-2 | 2-2 data
    3. 0002 | 2010.01.01 | Data1-3 | Data 2-3
    4. 0003 | 2008.01.01 | Data1-4 | Data 2-4
    5. 0003 | 2009.01.01 | Data1-5 | Data 2-5
    6. 0004 | 2000.01.01 | Data1-6 | Computer 2-6
    7. 0003 | 1999.01.01 | Data1-7 | Data 2-7

    What I need is to get all the data lines that don't have NO distinct numbers. It is:


    ID | Number |      Date | Data1 | Data2
    ________________________________________________
    1. 0001 | 2001.01.01 | Data1-1 | 2-1 data
    2. 0001 | 2011.01.01. Data1-2 | 2-2 data
    4. 0003 | 2008.01.01 | Data1-4 | Data 2-4
    5. 0003 | 2009.01.01 | Data1-5 | Data 2-5
    7. 0003 | 1999.01.01 | Data1-7 | Data 2-7

    Note that numbers have not only duplicates, but reanalysis, quadruplicates and n-plicates as well. All other data in the row may or may not be separate from the data in other rows with the same number.

    I used

    Select number, count (number) of SAMPLE
    Group number
    After count (number) > 1

    It makes me only no separate numbers and their total number, each number only once. Any ideas how to get the entire file?

    Hello

    You can use the analytic COUNT function to do this:

    WITH     got_cnt          AS
    (
         SELECT     sample.*
         ,     COUNT (*) OVER (PARTITION BY number_col)     AS number_col_cnt
         FROM     sample
    )
    SELECT     id
    ,     number_col     -- NUMBER is not a good column name
    ,     date_col
    ,     data1
    ,     data2
    FROM     got_cnt
    WHERE     number_col_cnt     > 1
    ;
    

    GROUP BY always returns exactly one row per group.
    Most of the aggregate functions (for example, AVG, COUNT, MIN, SUM,...) have analytical equivalents, which can give you the same results without reducing the number of lines. The PARTITION BY clause from analytical functions is similar to the GROUP BY clause that used to aggregate functions.

  • compare the value of previous line with the current value

    I need to compare the previous value with the current value. All Oracle functions could there be to do?
    Something similar as a result.
    If previous (Amt {}) > Current (({Amt}) then 0 Else Null.)

    Something like that?

    SQL> WITH test_data AS
      2  (
      3          SELECT 107019 AS ID, 1583 AS AMT FROM DUAL UNION ALL
      4          SELECT 107019 AS ID, 1572 AS AMT FROM DUAL UNION ALL
      5          SELECT 107019 AS ID, 1572 AS AMT FROM DUAL
      6  )
      7  -- END SAMPLE DATA
      8  SELECT  ID
      9  ,       (CASE
     10                  WHEN LAG(AMT,1) OVER (PARTITION BY ID ORDER BY ID) = AMT THEN NULL
     11                  ELSE AMT
     12          END) AS AMT
     13  FROM test_data;
    
            ID        AMT
    ---------- ----------
        107019       1583
        107019       1572
        107019
    
  • How to update columns with the value of other lines in the same table

    Hello

    I use Oracle 11.2, I'd use SQL statements to update a column based on values in other rows in the same table. Here are the details:

    create table TB_test (number 4 myId, crtTs date, date of MDPU);

    insert into tb_test (1, to_date ('20110101', 'YYYYMMDD'), null);
    insert into tb_test (1, to_date ('20110201', 'YYYYMMDD'), null);
    insert into tb_test (1, to_date ('20110301', 'YYYYMMDD'), null);
    insert into tb_test (2, to_date ('20110901', 'YYYYMMDD'), null);
    insert into tb_test (2, to_date ('20110902', 'YYYYMMDD'), null);

    After you run the SQL code, I would like to have the following result:

    1, 20110101, 20110201
    1, 20110201, 20110301
    1, 20110301, null
    2, 20110901, 20110902
    2, 20110902, null

    Thanks for your suggestion.

    I guess you need this, otherwise please explain logic correctly:

    SQL> merge into tb_test t
      2  using (
      3    select rowid as rid
      4         , lead(crtts) over(partition by myid order by crtts) as updts
      5    from tb_test
      6  ) v
      7  on (t.rowid = v.rid)
      8  when matched then update
      9   set t.updts = v.updts
     10  ;
    
    5 rows merged.
    
    SQL> select * from tb_test order by 1,2;
    
          MYID CRTTS     UPDTS
    ---------- --------- ---------
             1 01-JAN-11 01-FEB-11
             1 01-FEB-11 01-MAR-11
             1 01-MAR-11
             2 01-SEP-11 02-SEP-11
             2 02-SEP-11
    
  • At all times the value/var/log/messages * mode 644

    What process constantly changes/var/log/messages * mode back to the 640? I want to disable that. Thank you.

    I'd guess logrotate.  Have you checked /etc/logrotate.d/syslog?  It does not specify a particular permission?

    If not specified, logrotate should retain the existing file permissions.

    Marc

  • for each loop to print the values in the same line?


    Hi guys,.

    For our customer, I create a RTF file.

    In one line, I use this:

    Internal req. Ref #: <? for-each: G_2? > <? SEGMENT1? > <? end foreach? >

    Now when I run this report this part of line shows the values in separate lines

    Output:

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

    Inside Ref No. DDE:

      226

    230

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

    How can I make it back in the same line. Like this and separated by commas

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

    Internal req. Ref #: 226 230

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

    You can use inline grouping, please take a look at these posts:

    https://blogs.Oracle.com/XmlPublisher/entry/inline_grouping

    Re: Using conditional output

    Re: Display data from a list in a single field with values separated by commas

  • Title dymanic - getting the value of a CELL

    Hi Experts,

    We have a customer's requirement. We have a table (or Pivot) data view. We apply the sort on a single measure.

    In the third column, we have the list of processes. Customer wants to see value to the FIFTH RANK in the THIRD COLUMN.

    I tried using narrative view, BUT the problem is if I use < @3 > it give me all the value in the third column. I only need value ranked FIFTH.

    We cannot do something like < @3.5 > in new storytelling OR 'Display lines', I use 5-5 (5-5) ranks?

    This is a very valid customer requirement we succeed in obiee?

    Concerning
    Saurabh

    Hello

    Don't know if there is a simple way to do this, but you can do a trial the way below.

    -In narrative mode, check the option "contains the HTML markup. Then for different sections specify the values as mentioned below:
    prefix: * *.
    -While you are editing in narrative mode, make sure that you uncheck the "display results".
    -Now add this view to your layout composed. You should be able to see the value of 3rd line 5th column. Here at the NTC is 5, 5 being the line number that we want to display.
    -That this piece of code is that it presents an equivalent meter to the line number and line number is equal to the specified value it will display the value, otherwise it will not.

    This is for example to 10g. You can repeat the same steps to achieve in 11g too.

    Thank you

  • How to extract the value of the element as an array in javascript

    Hi all

    I want to do some calculations on the value entered by the user in the textfield of a tabular presentation, how can I retrieve the value of the element as an array in javascript?

    I use as a normal, do not use in the form of apex_item.

    I can pass the current value of the textfield to the function using 'this' as a parameter, but how can I retrieve the value of other lines of the same column?

    Thank you
    Tauceef

    If it is a page element wouldn't be better to make a calculation of point page when onload of the page? Just do a SQL as select sum (col1) of dual nationality or whatever is your table/column?

  • Contents of a cell based on the value of another

    Hello

    I have a sheet with several table (DATA and PREP).

    I used the 'FEATURES' table to fill the cells being DRAFTED.

    For PREP::C1, I have this formula: "= DATA::A13" (a chemical name).

    But, in PREP::D6, I need to have "= DATA::C13" (the chemical concentration).

    In PREP::G3, I need to have "= DATA::F13" (the chemical product prices).

    Is it possible to automatically generate PREP::D6 and PREP::G3 based on PREP::C1? As a formula, saying "even rank, but two columns next."

    I propose PREP::C1 only in column A (such as A1, A2, A3... (AX) and PREP::D6/C1 will always be in column C and F.

    Thank you!

    You can "find" the values of the data table with something like this:

    The formula in D6:

    = INDEX(Data::C,MATCH(C1,Data::A,0)))

    The part of the CORRESPONDENCE of the formula found which line the value of C1 occurs in column A of the data table and the INDEX then seeks the value of this line number in column C of the data table.

    The formula of the G3:

    = INDEX(Data::F,MATCH(C1,Data::A,0)))

    The part of the CORRESPONDENCE of the formula search which line the value of C1 occurs in column A of the data table and the INDEX then seeks the value of this number of line in column F of the data table.

    SG

Maybe you are looking for

  • Laptop HP windows 8.1: startup screen apps not wanting to open.

    I just bought this laptop and when I first used apps in the menu start up has worked well.  I did a files yesterday and since then when I try to use an application, it opens and says that it cannot open for sending me to the windows store where she t

  • electrical interference?

    I have a HP Presario CQ62 laptop which seems to have an electrical interference which is evident through the speakers. The hum and the block is only for a fraction of a second, but it's boring. The computer has windows 7 and there has been no recent

  • AnyConnect SBL fails to connect.

    Hello No doubt a well discussed topic, but I have tried all sorts to try to get Anyconnect SBL working without success. I am running XP Pro SP3. I can connect to my Anyconnect VPN without any problem through the FULL domain name once XP is running. 

  • Profile löschen!

    Hi I want my deleted account as soon as possible and frankly I'm extremely agitated I post to a forum to achieve this. ... Thank you.

  • Adobe Digital Editions 4.5 silent installation

    Dear support,I try to deploy ADE 4.5 silently with the following command but a popup window comes up and ask me if I want to include Norton Security: ADE_4.5_Installer.exe/sI have red on this post a solution which does not seem to work any more:Re: I