Column as Number

I have a column in the Database of Type Number,,
I have called the ViewObject in my AppMoudle.
And i am minipulating the data on the row with get,set methods
Now i have a setDisplay() that take type Number
How do i enter a value in there
Because if i type in a number then it gives and error
setDisplay(1);
does not work
please help

Thanks
I had imported the wrong packedm was supposed to be oracle.jbo.number
Thanks

Similar Messages

  • How to add a new column (Project Number) in the action items table under NPD Module?

    There are two projects with same name and created by same person in NPD.
    So when it is displayed in "Action Items" table, It looks similar.
    To avoid this, I need one more column (Project Number) to be added in the "Action Items" table and " Strategic briefs and projects" table.
    So, How to add a new column (Project Number) in the "Action Items" table and " Strategic briefs and projects" table under NPD Module?
    Please do the needful.

    There is no out of the box configuration available to add columns to NPD action items.   As always we welcome enhancement requests. 
    Thanks
    Kelly

  • FDPSTP failed due to ORA-06550: line1 ,column:" Wrong number of types of ar

    Hi All
    I am tying to submit the concurrent request through buttom, when i press the button.. the request is submitting but showing the error"FDPSTP failed due to ORA-06550: line1 ,column:" Wrong number of types of argument in call"
    What are the paramerter i submited in SRS window( normal submition not throu button) is are equall submition throw button.... And in procedure also i am using errbuf and retcode...
    Can any one help regarding the issue where i am doing the mistake...
    PROCEDURE Einvoice(ERRBUF OUT VARCHAR2,RETCODE OUT VARCHAR2,P_INVOICE_TYPE RA_CUST_TRX_TYPES_all.type%TYPE,
    P_INVOICE_FROM RA_CUSTOMER_TRX_PARTIAL_V.TRX_NUMBER%TYPE,
    P_INVOICE_TO RA_CUSTOMER_TRX_PARTIAL_V.TRX_NUMBER%TYPE,
    P_CUSTOMER_ID RA_CUSTOMER_TRX_PARTIAL_V.SOLD_TO_CUSTOMER_ID%TYPE,
    P_DOCUMENT_NUM NUMBER,
    P_reprint_flag VARCHAR2
    In the button trigger
    FND_REQUEST.SUBMIT_REQUEST('GETSAR'
    ,'EINVOICE'
    ,NULL ,NULL ,FALSE
    ,:main_b.invoice_type
    ,to_number(:main_b.From_Invoice_number)
    ,to_number(:main_b.to_invoice_number)
    ,:main_b.customer_id
    ,to_number(:main_b.document_no_from)
    ,:main_b.reprint_flag
    ,'') up to 100 parameters
    We need to change any datatypes in procedure ?????????????

    Duplicate post.
    "FDPSTP failed due to ORA-06550: line1 ,column:" Wrong number of types of
    "FDPSTP failed due to ORA-06550: line1 ,column:"   Wrong number of types of

  • Select query to select a column named NUMBER

    Hi all,
    I have a table which is having a COLUMN NAME as NUMBER whose DATA TYPE is VARCHAR2(90 BYTE).
    How should I select the column named NUMBER.
    I am trying the sql query through SQL Developer.
    I tried with following options.
    1) select NUMBER from table_name
    2) select [NUMBER] from table_name
    3) select "NUMBER" from table_name
    4) select [table_name.NUMBER] from table_name
    But i did'nt succeed through the above queries. all the above queries are giving error.
    So, please help me in this regard to query the column named NUMBER (which is a reserved word in Oracle)

    Hi,
    create table x3(
      "number" varchar2(200)
    insert into x3 values(2);
    insert into x3 values(2);
    insert into x3 values(1);
    select * from x3
    where "number" = '1'
    This gives me output properly. But when i tried creating a column just with name "NUMBER"... got below error. Your 2nd query looks ok. What error do you get there?
    Error report:
    SQL Error: ORA-00904: : invalid identifier
    00904. 00000 -  "%s: invalid identifier"
    *Cause:   
    *Action:

  • ODI 10g: NUMBER column becomes NUMBER(22,0) on reverse

    ODI Version: 10.1.3.6.3
    Database Version: Oracle 10g (also seen in XE)
    In the database, one of the columns in the table is defined as "num_val NUMBER". It has been defined this way to accomodate for decimals also. However, when I reverse this to my ODI model using the "Selective Reverse" the column gets created as "num_val NUMBER(22, 0)" due to which the decimals have got truncated.
    I would like to know if this is an ODI bug (if yes, please point me to the patch) or the developer is expected to manually look and correct this in the ODI model ?
    In Oracle database, defining a number column without precision & scale would designate maximum precision & scale to the column. I would expect that ODI should be aware of this during model reverse and create the column with maximum range as it exists in the Oracle database.
    Edited by: museshad on Feb 7, 2011 12:28 PM

    Hi,
    Good to know ur problem is solved.
    Yes as i said, RDBMS reversing can be carried out by Standard method but in some cases ODI and JDBC drivers compatibility doesn't pull certain tables/views/data types etc and MOS declare it as a BUG.
    So in those cases its suggested/advised to use RKM mode of reversing as a "work around" option.
    But in general real time scenario RKM, is dedicated to reverse the meta data of adapters applications say Hyperion, essbase,planning, HFM etc and standard for any ANSI SQL/RDBMS applications.
    Makes sense?
    Thanks,
    Guru

  • JTable Column Max Number Doubt

    Hello there,
    I have this JTable Doubt. I have always been strugling with jtables and here I am stuck again and not able to do this.
    My Database has defined a column that accepts a String Number. It can have upto 4 decimals and 2 fractional Numbers. So thats a total of 6 digits with a contraint as mentioned above.
    I can have user input as 9999.99 and not 99999.9
    Could you please tell me how I could have one of my JTables column to accept only input like this.
    Regards,
    Hemanth

    It is not clear to me whether you are talking about rendering or editing.

  • Impact of table columns with number datatype but has no precision in Forms

    Hi.
    Currently, I have table columns that have a data type of number but has no precision declared (e.g. AGREEMENT_CODE NUMBER). I would just like to ask if there's anyone out there who knows if this has a negative impact on Oracle's forms and reports...with the way buffer memories are allocated or other things on performance. I am still putting in maximum length values for base table items. I don't know if this will affect buffer memory allocation as well.
    Thank you.

    I don't know this for fact, but I would think that numbers with a large number of significant figures might affect buffer sizes, but I'll bet your example AGREEMENT_CODE values would never have a large number of figures. In fact, whether or not you limit the size of a number in the database or your form probably does not affect the way the actual data values are transmitted or stored.
    If someone is telling you to worry about this, I think they are barking up the wrong tree someplace way out in left field.
    There are so many other things that can seriously affect processing speed and data transfer speed, starting with query plans and index usage. I have never heard this one causing concern anywhere before.

  • How do I locate column/row (number) selected in applescript

    I require a simple script to adjust the column widths of the current selected column only. I want to base it on a script below which I found on the internet. This script adjusts multiple column widths to the value input and adjusts the stub column to the remaining space. I would like to know how easy it is to create a script with a similar input window that adjusts the column/row selected leaving the others in tact.
    tell application "Adobe InDesign CS4"
        activate
        if class of parent of selection is not cell then
            display dialog " Do not highlight any cells " buttons " OK " default button 1 with icon caution
        else
            set monTableau to parent of parent of selection
            set NbColonnes to count columns of monTableau
            set monBlocTexte to parent text frames of selection
            set maBoiteTexte to item 1 of monBlocTexte
            set {y, x, h, l} to geometric bounds of maBoiteTexte
            set largeurBloc to (l - x)
            tell text frame preferences of maBoiteTexte
                set NumColTexte to text column count
                set largGout to text column gutter
            end tell
            display dialog "Width of columns (mm) " default answer 20
            set largeurTexte to text returned of the result
            set largcol2 to (largeurTexte as integer)
            set largcol1 to ((largeurBloc - (NumColTexte - 1) * largGout) / NumColTexte - (NbColonnes - 1) * largcol2)
            if largcol1 < 2 then
                set largcol1 to ((largeurBloc - (NumColTexte - 1) * largGout) / NumColTexte) / NbColonnes
                set largcol2 to ((largeurBloc - (NumColTexte - 1) * largGout) / NumColTexte) / NbColonnes
            end if
            set width of column (1) of monTableau to largcol1
            repeat with counter from 2 to NbColonnes
                set width of column (counter) of monTableau to largcol2
            end repeat
        end if
    end tell
    Your help will be greatly appreciated
    Thanks
    Dave Williams

    Perhaps like this:
    tell application "Microsoft Excel"
        set i to first row index of active cell
    end
    log i
    Regards,
    H

  • I have a fact table with column as NUMBER (25)

    Kindly let me know how to use this column in Physical layer so that values are not getting rounded.
    I tried to use double.
    can i use varchar in this case?
    Thanks

    well, afterstruggling with this for 2 weeks, i posted my question and went back to the computer to start work, and up popped a windowfrom itunes regarding updating my phone. So now it is synched.
    Thanks

  • Sorting Columns in Number 09

    Hi,
    i found no way to sort columns in Numbers 09 - i can only sort rows.
    I can only rearrange columns with dragging but not automatically sort.
    I think this should be a standard funktion like in other Programs like Open Office - but i'm searching and searching and doesn't find this function in Numbers?
    Has anybody an idea how I can sort columns in Numbers 09?

    Michael,
    You're correct, there is no way in Numbers to sort columns. It's something that you need to keep in mind as you design your layout. My copy of Excel, Office 2004 for Mac, doesn't seem to allow sorting by columns either. Sort by column content, yes; sort by row content, no.
    The Numbers way is the conventional way. The only solution that i can think of, beyond the manual re-ordering of columns that you mention, would be to transpose the entire table such that your rows turn into columns and columns into rows. Then you can sort by column and if you wish, transpose back to where you started.
    Jerry

  • Rows to columns, dynamic number of rows.

    Hi all,
    I want to make a query over an oracle database version 10.2.0.4.0 but I'm unable to find a way to do it.
    Next I have an example of what I need to do:
    account     gadget
    111        iphone
    111        ipad
    111        nokia
    111        pencil
    222        hard drive
    222        iphone
    222        nokia
    333        pencil
    444        pen drive
    444        nokiaI need to get the follow output:
    account     gadget
    111        iphone|ipad|nokia|pencil
    222        hard drive|iphone|nokia
    333        pencil
    444        pen drive|nokiaI tried the following diferent queries based on examples I tried to understand:
    select account, Cursor(select gadjet from user_gadgets e2 where e2.account = user_gadgets.account)
    from (select distinct account from user_gadgets ) user_gadgets;
    SELECT account, CAST(MULTISET(SELECT account FROM user_gadgets  e
    WHERE contrno = e.contrno) AS
    varchar2_table_t) FROM user_gadgets e GROUP BY account;
    select
    account
    ,sum(case when account = 'iphone'     then 'iphone' end)  as IPHONE
    from crm_user_equipments@dbl_tabsdmx
    group by
    accountI was unable to make the first two to work and The third one cannot be applied because I have a dynamic list.
    The third options cannot be applied because both columns: account contains thousands of distinct values and gadget contains near 80 diferent items and it is changing.
    thanks and regards,
    Ricardo Tomás

    Well clearly you didn't read any of the links given as you've marked correct the one solution that will perform the worst due to context switching between the SQL and PL/SQL engines.
    Your requirement can be achieved simply using SQL alone...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 111 as account, 'iphone' as gadget from dual union all
      2             select 111, 'ipad' from dual union all
      3             select 111, 'nokia' from dual union all
      4             select 111, 'pencil' from dual union all
      5             select 222, 'hard drive' from dual union all
      6             select 222, 'iphone' from dual union all
      7             select 222, 'nokia' from dual union all
      8             select 333, 'pencil' from dual union all
      9             select 444, 'pen drive' from dual union all
    10             select 444, 'nokia' from dual)
    11  --
    12  -- end of test data
    13  --
    14  select account, trim('|' from sys_connect_by_path(gadget,'|')) as gadgets
    15  from (
    16        select account, gadget, row_number() over (partition by account order by 1) as rn from t
    17       )
    18  where connect_by_isleaf = 1
    19  connect by account = prior account and rn = prior rn + 1
    20* start with rn = 1
    SQL> /
       ACCOUNT GADGETS
           111 iphone|ipad|nokia|pencil
           222 hard drive|nokia|iphone
           333 pencil
           444 pen drive|nokia
    SQL>Or, if you were to upgrade to 11g there is a new LISTAGG analytical function built into SQL that can be used to achieve it even more simply.

  • Procedure with variable number of columns

    Hi, I have a procedure that looks like this:
    PROCEDURE PROC(p_cursor OUT sys_refcursor)
    And in the procedure, I build up QUERY dynamically and the number of columns varies at runtime.
    At the end I do
    OPEN p_cursor for QUERY
    Then to call this, I'm doing
    call PROC(?)
    My question is, how would I go about running the query from this procedure, then adding rows or modifying the existing results, then returning the modified data?
    What I want to do is add a new row based on some condition, so I still need to return a variable number of columns, but I need to modify the results before I return them.
    Is there any way of doing this? I need to do some calculations on the columns (the variable columns), create a new row, insert into result set, and return this new result set.

    A sys_refcursor is ideally suited to pass back to a front end gui like .NET or Java which can then use that cursor to retrieve the data.
    In PL/SQL there is no point in using a sys_refcursor unless you know, at design/compile time what the returned columns are going to be.
    If the resultant columns are dynamic, then you have no choice but to use the DBMS_SQL package, where you can parse and execute any SQL statement you like and then use the DBMS_SQL package to describe what the resultant columns are and how many there are. From that you can reference the columns by position rather than by name.
    e.g.
    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2) IS
      v_v_val     VARCHAR2(4000);
      v_n_val     NUMBER;
      v_d_val     DATE;
      v_ret       NUMBER;
      c           NUMBER;
      d           NUMBER;
      col_cnt     INTEGER;
      f           BOOLEAN;
      rec_tab     DBMS_SQL.DESC_TAB;
      col_num     NUMBER;
      v_rowcount  NUMBER := 0;
    BEGIN
      -- create a cursor
      c := DBMS_SQL.OPEN_CURSOR;
      -- parse the SQL statement into the cursor
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      -- execute the cursor
      d := DBMS_SQL.EXECUTE(c);
      -- Describe the columns returned by the SQL statement
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      -- Bind local return variables to the various columns based on their types
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000); -- Varchar2
          WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);      -- Number
          WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);     -- Date
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);  -- Any other type return as varchar2
        END CASE;
      END LOOP;
      -- Display what columns are being returned...
      DBMS_OUTPUT.PUT_LINE('-- Columns --');
      FOR j in 1..col_cnt
      LOOP
        DBMS_OUTPUT.PUT_LINE(rec_tab(j).col_name||' - '||case rec_tab(j).col_type when 1 then 'VARCHAR2'
                                                                                  when 2 then 'NUMBER'
                                                                                  when 12 then 'DATE'
                                                         else 'Other' end);
      END LOOP;
      DBMS_OUTPUT.PUT_LINE('-------------');
      -- This part outputs the DATA
      LOOP
        -- Fetch a row of data through the cursor
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        -- Exit when no more rows
        EXIT WHEN v_ret = 0;
        v_rowcount := v_rowcount + 1;
        DBMS_OUTPUT.PUT_LINE('Row: '||v_rowcount);
        DBMS_OUTPUT.PUT_LINE('--------------');
        -- Fetch the value of each column from the row
        FOR j in 1..col_cnt
        LOOP
          -- Fetch each column into the correct data type based on the description of the column
          CASE rec_tab(j).col_type
            WHEN 1  THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                         DBMS_OUTPUT.PUT_LINE(rec_tab(j).col_name||' : '||v_v_val);
            WHEN 2  THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                         DBMS_OUTPUT.PUT_LINE(rec_tab(j).col_name||' : '||v_n_val);
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                         DBMS_OUTPUT.PUT_LINE(rec_tab(j).col_name||' : '||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'));
          ELSE
            DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
            DBMS_OUTPUT.PUT_LINE(rec_tab(j).col_name||' : '||v_v_val);
          END CASE;
        END LOOP;
        DBMS_OUTPUT.PUT_LINE('--------------');
      END LOOP;
      -- Close the cursor now we have finished with it
      DBMS_SQL.CLOSE_CURSOR(c);
    END;
    SQL> exec run_query('select empno, ename, deptno, sal from emp where deptno = 10');
    -- Columns --
    EMPNO - NUMBER
    ENAME - VARCHAR2
    DEPTNO - NUMBER
    SAL - NUMBER
    Row: 1
    EMPNO : 7782
    ENAME : CLARK
    DEPTNO : 10
    SAL : 2450
    Row: 2
    EMPNO : 7839
    ENAME : KING
    DEPTNO : 10
    SAL : 5000
    Row: 3
    EMPNO : 7934
    ENAME : MILLER
    DEPTNO : 10
    SAL : 1300
    PL/SQL procedure successfully completed.
    SQL> exec run_query('select * from emp where deptno = 10');
    -- Columns --
    EMPNO - NUMBER
    ENAME - VARCHAR2
    JOB - VARCHAR2
    MGR - NUMBER
    HIREDATE - DATE
    SAL - NUMBER
    COMM - NUMBER
    DEPTNO - NUMBER
    Row: 1
    EMPNO : 7782
    ENAME : CLARK
    JOB : MANAGER
    MGR : 7839
    HIREDATE : 09/06/1981 00:00:00
    SAL : 2450
    COMM :
    DEPTNO : 10
    Row: 2
    EMPNO : 7839
    ENAME : KING
    JOB : PRESIDENT
    MGR :
    HIREDATE : 17/11/1981 00:00:00
    SAL : 5000
    COMM :
    DEPTNO : 10
    Row: 3
    EMPNO : 7934
    ENAME : MILLER
    JOB : CLERK
    MGR : 7782
    HIREDATE : 23/01/1982 00:00:00
    SAL : 1300
    COMM :
    DEPTNO : 10
    PL/SQL procedure successfully completed.
    SQL> exec run_query('select * from dept where deptno = 10');
    -- Columns --
    DEPTNO - NUMBER
    DNAME - VARCHAR2
    LOC - VARCHAR2
    Row: 1
    DEPTNO : 10
    DNAME : ACCOUNTING
    LOC : NEW YORK
    PL/SQL procedure successfully completed.
    SQL>In 11g, you can create a sys_refcursor and then the DBMS_SQL package allows you to convert that refcursor into a DBMS_SQL cursor so that you can get the description of the results and do the same. This isn't available prior to 11g though.
    However_ before any of that, you should really ask yourself if there is a real need to dynamically be creating queries. There is rarely any real need to do that and if you're finding it's common in your application then this is often a sign of poor design or poorly defined business requirements (leaving the technical side to try and be "flexible" and hence leading to unmaintainable code etc.).

  • Using column number inplace of column name in SQL Select statement

    Is there a way to run sql select statements with column numbers in
    place of column names?
    Current SQL
    select AddressId,Name,City from AddressIs this possible
    select 1,2,5 from AddressThanks in Advance

    user10962462 wrote:
    well, ok, it's not possible with SQL, but how about PL/SQL?As mentioned, using DBMS_SQL you can only really use positional notation... and you can also use those positions to get the other information such as what the column is called, what it's datatype is etc.
    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2) IS
      v_v_val     VARCHAR2(4000);
      v_n_val     NUMBER;
      v_d_val     DATE;
      v_ret       NUMBER;
      c           NUMBER;
      d           NUMBER;
      col_cnt     INTEGER;
      f           BOOLEAN;
      rec_tab     DBMS_SQL.DESC_TAB;
      col_num     NUMBER;
      v_rowcount  NUMBER := 0;
    BEGIN
      -- create a cursor
      c := DBMS_SQL.OPEN_CURSOR;
      -- parse the SQL statement into the cursor
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      -- execute the cursor
      d := DBMS_SQL.EXECUTE(c);
      -- Describe the columns returned by the SQL statement
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      -- Bind local return variables to the various columns based on their types
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000); -- Varchar2
          WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);      -- Number
          WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);     -- Date
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);  -- Any other type return as varchar2
        END CASE;
      END LOOP;
      -- Display what columns are being returned...
      DBMS_OUTPUT.PUT_LINE('-- Columns --');
      FOR j in 1..col_cnt
      LOOP
        DBMS_OUTPUT.PUT_LINE(rec_tab(j).col_name||' - '||case rec_tab(j).col_type when 1 then 'VARCHAR2'
                                                                                  when 2 then 'NUMBER'
                                                                                  when 12 then 'DATE'
                                                         else 'Other' end);
      END LOOP;
      DBMS_OUTPUT.PUT_LINE('-------------');
      -- This part outputs the DATA
      LOOP
        -- Fetch a row of data through the cursor
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        -- Exit when no more rows
        EXIT WHEN v_ret = 0;
        v_rowcount := v_rowcount + 1;
        DBMS_OUTPUT.PUT_LINE('Row: '||v_rowcount);
        DBMS_OUTPUT.PUT_LINE('--------------');
        -- Fetch the value of each column from the row
        FOR j in 1..col_cnt
        LOOP
          -- Fetch each column into the correct data type based on the description of the column
          CASE rec_tab(j).col_type
            WHEN 1  THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                         DBMS_OUTPUT.PUT_LINE(rec_tab(j).col_name||' : '||v_v_val);
            WHEN 2  THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                         DBMS_OUTPUT.PUT_LINE(rec_tab(j).col_name||' : '||v_n_val);
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                         DBMS_OUTPUT.PUT_LINE(rec_tab(j).col_name||' : '||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'));
          ELSE
            DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
            DBMS_OUTPUT.PUT_LINE(rec_tab(j).col_name||' : '||v_v_val);
          END CASE;
        END LOOP;
        DBMS_OUTPUT.PUT_LINE('--------------');
      END LOOP;
      -- Close the cursor now we have finished with it
      DBMS_SQL.CLOSE_CURSOR(c);
    END;
    SQL> exec run_query('select empno, ename, deptno, sal from emp where deptno = 10');
    -- Columns --
    EMPNO - NUMBER
    ENAME - VARCHAR2
    DEPTNO - NUMBER
    SAL - NUMBER
    Row: 1
    EMPNO : 7782
    ENAME : CLARK
    DEPTNO : 10
    SAL : 2450
    Row: 2
    EMPNO : 7839
    ENAME : KING
    DEPTNO : 10
    SAL : 5000
    Row: 3
    EMPNO : 7934
    ENAME : MILLER
    DEPTNO : 10
    SAL : 1300
    PL/SQL procedure successfully completed.
    SQL> exec run_query('select * from emp where deptno = 10');
    -- Columns --
    EMPNO - NUMBER
    ENAME - VARCHAR2
    JOB - VARCHAR2
    MGR - NUMBER
    HIREDATE - DATE
    SAL - NUMBER
    COMM - NUMBER
    DEPTNO - NUMBER
    Row: 1
    EMPNO : 7782
    ENAME : CLARK
    JOB : MANAGER
    MGR : 7839
    HIREDATE : 09/06/1981 00:00:00
    SAL : 2450
    COMM :
    DEPTNO : 10
    Row: 2
    EMPNO : 7839
    ENAME : KING
    JOB : PRESIDENT
    MGR :
    HIREDATE : 17/11/1981 00:00:00
    SAL : 5000
    COMM :
    DEPTNO : 10
    Row: 3
    EMPNO : 7934
    ENAME : MILLER
    JOB : CLERK
    MGR : 7782
    HIREDATE : 23/01/1982 00:00:00
    SAL : 1300
    COMM :
    DEPTNO : 10
    PL/SQL procedure successfully completed.
    SQL> exec run_query('select * from dept where deptno = 10');
    -- Columns --
    DEPTNO - NUMBER
    DNAME - VARCHAR2
    LOC - VARCHAR2
    Row: 1
    DEPTNO : 10
    DNAME : ACCOUNTING
    LOC : NEW YORK
    PL/SQL procedure successfully completed.
    SQL>

  • Like operator issue with on Number column

    Hi,
    Query with like operator for Example: " where RATE LIKE ('%2%')"
    the result of the query returns rows which contains "2" as part of field value along with few rows which are updated recently, but do not contain 2 in that row.
    In the table data type of COLUMN is Number, no precision.
    Pls let me know if any one knows about this.
    --satya.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Can you please post the result of the query you are using?
    Regards

  • Dynamic Number Of Data Columns

    Greetings - I'm attempting to create a report that has a dynamic number of columns.  The type of data in the columns varies (number, string), and I need the details to display, not a summary.
    If I knew the max number of columns I'm sure I could figure out some logic to make it work, but that is not the case.
    Data example:
    Row 1: Name Timestamp Country Height ...
    Row 2: Name Timestamp Country Weight ....
    Desired report:
    Hdr1-Hdr2Hdr 3-Height---Weight
    Name Timestamp Country Height   <blank>
    Name Timestamp Country <blank>  Weight
    There may be a solution in a cross-tab but I will need the Name, Timestamp, Country in separate columns as this may be output as CSV.
    Any assistance will be appreciated.

    Generally, when you don't know the number of columns, a cross-tab is the way to go.
    You can get the first three column that you stated by putting all three fields in the Rows section of the Crosstab Expert. 
    As for the data returned from the database, you'll want the three row fields, a "value name" field (containing value such as "Weight" and "Height"), and then a Value column with the value of the "value name" field.
    HTH,
    Carl

Maybe you are looking for

  • Develop settings when importing RAW + jpeg

    When importing NEF files from my D700 I apply the landscape sharpening pre-set and am happy with the results.  However on my Fuji X20 I import RAW+jpeg rather than just RAW, in this situation if I use the landscape sharpening pre-set sharpening is ap

  • How can I know the numbers of my podcast hits and downloads?

    I need your help

  • Adding metadata to .mp4 files or .flv files

    I just recently discovered that I cannot tag .mp4 files or.flv files with metadata in bridge? Anyone know of a workaround to add metadata to these files within bridge besides using Quicktime? Thanks

  • Java Applet Communication

    I have discovered that a Java Applet in a browser (Win or Mac) can talk to a Servlet on a server to access a database. Is there anyway that a Java Applet in a browser (Win or Mac) can talk to a Java application running on the client system so that it

  • VDI Core

    Hello, I have some questions regarding the VDI Core part: - I want to install 4 servers for VDI Core. I run vda-config script on primary server. I can "only" set two secondary servers within this script. What I have to do to configure the fourth serv