Wrong query in pl/sql

Good Morning,
i have a string containing a query in pl/sql :
description varchar2(100) := 'select adeia_id||description,adeia_id from mis_adeia where plafon=1';
which selects adeia_id and description fron a table and displays them together, but i want to seperate adeia_id and description with a blank or a dot, so i change the string and make it like:
description varchar2(100) := 'select adeia_id||' || ' ' || 'description,adeia_id from mis_adeia where plafon=1';
am i doing something wrong?
thanks for reading.

thank you peter but it doesn't work. i tried it. the string i pass it as argument in the create_group_from_query function in forms builder, and when i use double quots it gives me the error, that cannot create the group! i don't know what is the fault.

Similar Messages

  • Query in pl/sql oracle

    Hi All!
    I want to write following type of query in PL/SQL
    How can I write one which will work.
    <B>
    SELECT count(1) INTO v_count2 from TRJ_TRAN_REJ_T a and PEU_PUR_ENRL_UNT_T b
    where a.TRJ_CVRG_PER_DATE IN (b.PEU_EFF_DATE AND b.PEU_END_DATE) AND
    a.purik = b.purik AND a.peuik = b.peuik
    <B>
    Above query is not working correctly. Any changes?? DATE stored in database is like 01/01/2001
    v_count2 is NUMBER variable declared in PL?SQL.
    SA

    You don't need to use a PL/SQL, a simple SQL will suffice. I guess you could write it as a function?
    I think your SQL was wrong so I took the liberty of fixing it for you. You seperate tables with commas in a FROM clause, not AND.
    Anyway, on the lines of a SQL Statement you can do the following.
    SELECT     count(1) AS mycount
    FROM     TRJ_TRAN_REJ_T a,
         PEU_PUR_ENRL_UNT_T b
    WHERE     a.TRJ_CVRG_PER_DATE IN (b.PEU_EFF_DATE AND b.PEU_END_DATE)
    AND     a.purik = b.purik
    AND     a.peuik = b.peuik
    Connection conn = DriverManager.getConnection(URL, username, password);
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery( your sql);
    while ( rs.next() )
         int mycount = rs.getInt("mycount");
    close stuff down here

  • Wrong query output..

    Guys,
    Please can someone help me ? I am getting a wrong query output.. There is data available for 31-DEC-2006 but the below query doesn't seem to display it.. What could be the reason ? The query displays results for all date except 31st
    SELECT   date_inserted                 ||','||
          COUNT (DECODE (HR, '00', user_id)
                   )                      ||','||
             COUNT (DECODE (HR, '01', user_id)
                   )                     ||','||
             COUNT (DECODE (HR, '02', user_id)
                   )                     ||','||
             COUNT (DECODE (HR, '03', user_id)
                   )                     ||','||
             COUNT (DECODE (HR, '04', user_id)
                   )                     ||','|| 
             COUNT (DECODE (HR, '05', user_id)
                   )                     ||','||  
             COUNT (DECODE (HR, '06', user_id)
                   )                     ||','|| 
             COUNT (DECODE (HR, '07', user_id)
                   )                     ||','|| 
          COUNT (DECODE (HR, '08', user_id)
                   )                     ||','|| 
          COUNT (DECODE (HR, '09', user_id)
                   )                     ||','|| 
          COUNT (DECODE (HR, '10', user_id)
                   )                     ||','|| 
          COUNT (DECODE (HR, '11', user_id)
                   )                     ||','|| 
          COUNT (DECODE (HR, '12', user_id)
                   )                     ||','|| 
          COUNT (DECODE (HR, '13', user_id)
                   )                     ||','|| 
          COUNT (DECODE (HR, '14', user_id)
                   )                     ||','|| 
          COUNT (DECODE (HR, '15', user_id)
                )                     ||','||
             COUNT (DECODE (HR, '16', user_id)
                   )                     ||','||
          COUNT (DECODE (HR, '17', user_id)
                   )                     ||','|| 
          COUNT (DECODE (HR, '18', user_id)
                   )                     ||','|| 
          COUNT (DECODE (HR, '19', user_id)
                   )                     ||','||
          COUNT (DECODE (HR, '20', user_id)
                   )                     ||','||   
          COUNT (DECODE (HR, '21', user_id)
                   )                     ||','||
          COUNT (DECODE (HR, '22', user_id)
                   )                     ||','||   
          COUNT (DECODE (HR, '23', user_id)
                   )                     ||','
        FROM (
    select      distinct user_id,
         trunc(date_inserted) date_inserted,
         to_char(date_inserted,'HH24') HR
    from      production.gl_user_game_sessions ugs
    where      date_inserted between '01-DEC-2006' and '31-DEC-2006'
    AND exists(     select 1
              from production.gl_user_registrations gur
               where gur.registration_site = 'rokes.com'
              and  gur.user_id = ugs.user_id)
    order by user_id,trunc(date_inserted))
    group by date_inserted
    order by date_inserted
    Date,00:00 to 00:59,01:00 to 01:59,02:00 to 02:59,03:00 to 03:59,04:00 to 04:59,05:00 to 05:59,06:00
    01-DEC-06,66,47,23,20,11,9,23,45,59,82,68,78,77,87,85,101,118,129,129,140,139,142,132,111,
    02-DEC-06,88,53,29,24,15,19,15,38,53,66,83,96,85,116,128,139,133,132,123,102,133,125,113,113,
    03-DEC-06,100,68,45,23,18,14,21,19,42,75,87,87,82,92,103,72,0,111,225,170,165,125,124,81,
    04-DEC-06,70,42,25,36,8,15,22,35,58,68,54,75,78,78,101,90,125,130,132,112,107,132,122,81,
    05-DEC-06,56,44,25,12,6,16,28,28,69,89,65,75,67,86,110,90,104,123,123,144,137,140,109,83,
    06-DEC-06,54,36,24,11,12,13,21,28,60,72,61,89,67,73,105,94,104,106,131,127,170,123,134,85,
    07-DEC-06,58,26,23,17,11,9,22,31,59,63,69,75,82,79,103,79,102,106,150,138,178,163,126,103,
    08-DEC-06,59,45,19,17,12,10,24,35,59,57,75,64,68,59,92,101,108,123,131,119,133,129,110,80,
    09-DEC-06,77,50,28,21,14,16,19,32,65,61,69,87,107,109,106,114,121,122,94,113,113,110,131,101,
    10-DEC-06,73,57,42,16,21,18,20,25,34,61,44,88,62,88,96,127,140,107,141,115,117,126,93,78,
    11-DEC-06,58,32,17,8,6,8,14,29,57,62,76,73,58,72,96,95,102,98,129,126,124,148,117,92,
    12-DEC-06,67,37,20,15,11,16,19,33,62,76,75,55,67,71,75,98,103,101,116,119,134,121,120,88,
    13-DEC-06,57,37,11,15,3,14,2,0,9,73,61,59,59,75,85,87,97,107,122,124,143,129,124,105,
    14-DEC-06,55,39,14,16,11,17,25,35,40,61,54,62,69,68,87,79,108,99,118,132,132,142,124,82,
    15-DEC-06,69,39,21,26,12,13,17,27,50,64,69,60,74,88,88,92,115,105,114,127,106,123,117,114,
    16-DEC-06,77,59,27,24,20,16,17,24,41,68,75,98,82,87,90,111,103,122,102,99,131,71,117,103,
    17-DEC-06,84,47,22,17,13,13,12,25,40,59,45,56,72,82,85,96,88,106,107,117,149,116,105,82,
    18-DEC-06,51,24,29,12,15,10,10,28,38,38,48,47,59,80,72,74,91,103,100,116,119,123,139,83,
    19-DEC-06,53,36,17,12,11,23,20,29,58,77,70,71,62,83,81,89,106,104,101,120,130,118,125,94,
    20-DEC-06,60,32,12,18,11,14,17,27,53,56,66,67,76,65,103,103,125,92,112,123,109,130,108,86,
    21-DEC-06,50,29,22,16,9,12,22,34,35,58,78,71,62,85,101,105,110,124,129,147,156,129,108,88,
    22-DEC-06,64,36,23,28,20,14,31,44,58,49,65,78,76,81,109,117,139,138,141,121,112,130,128,94,
    23-DEC-06,95,67,31,28,22,13,21,32,40,48,80,76,83,105,123,126,118,155,131,124,147,124,135,106,
    24-DEC-06,84,53,44,31,15,18,22,33,36,58,76,82,91,90,113,124,118,113,98,108,117,124,107,91,
    25-DEC-06,71,54,40,15,12,20,17,22,38,61,56,70,63,73,94,93,109,97,87,100,98,109,85,84,
    26-DEC-06,56,45,18,23,13,14,14,18,35,48,73,82,95,115,143,153,136,147,111,110,138,125,96,85,
    27-DEC-06,82,42,27,18,13,13,27,18,37,60,65,87,78,94,164,166,171,147,160,143,120,150,118,115,
    28-DEC-06,98,51,38,28,18,22,16,25,49,57,78,82,95,129,145,135,145,142,133,157,183,165,131,136,
    29-DEC-06,93,62,32,20,16,13,24,31,51,72,71,84,96,110,179,166,190,167,156,153,142,162,148,114,
    30-DEC-06,94,66,44,28,18,18,21,21,41,53,95,87,91,139,161,154,201,162,150,166,152,128,144,133,
    SQL> Thanks in advance
    G

    Hi,
    try this:
    where date_inserted between to_date('01-DEC-2006 00:00:00','DD-MM-YYYY HH24:MI:SS') and to_date('31-DEC-2006 23:59:59' 'DD-MM-YYYY HH24:MI:SS')(not tested)

  • Query help in sql commands

    using apex 4.1 i'm entering the following query in the sql command window and I keep getting a pop-up for Entering Bind Variable. I'm not using bind variables though, anyone else see this issue before?
    SELECT A.FIRST,A.LAST,A.COMPANY AS CNAME,
    J.TOT_MAN_HOURS,
    J.ACREAGE,
    W.NUM_WORKERS,
    W.START_DT
    FROM EW_ACCOUNTS A, EW_WORK_ORDER W, EW_JOBS J
    WHERE A.ID = J.ACCT_ID
    AND J.JOB_ID = W.JOB_ID
    AND W.START_DT >= SYSDATE
    AND W.START_DT < SYSDATE+1
    ORDER BY W.START_DT

    I tried that and it didn't seem to help either.
    Funny though, if I write a new query against just one of the tables and write out each column name. it works. If I use the * instead of writing each column name, I have the same issue.
    This is in apex.appshosting.com free demo environment. I sent them an email asking about it and they told me it was a code issue and they don't support the demo environment.

  • What is the wrong in this PL/SQL  block

    Hi a...
    Can you please tell what is the wrong in this pl/sql block.
    declare
    TYPE TYP_NT_NUM IS TABLE OF NUMBER ;
    v_tab TYP_NT_NUM := TYP_NT_NUM();
    TYPE uname is VARRAY(30) of varchar2(100) ;
    usr uname := uname ( 'u1','u2','u3','u4' );
    TYPE pwd is VARRAY(30) of varchar2(100) ;
    psw pwd := pwd('p1','p2','p3','p4');
    x number(10):=0;
    Cursor fcid IS Select distinct FC_ID From FCMASTER ;
    Begin
    Open fcid ;
    --for ii in usr.first .. usr.last loop
         Loop
              Fetch fcid Into x ;
              Exit When fcid%NOTFOUND ;
              v_tab(fcid%ROWCOUNT) := x ;
         End loop ;
         For iii IN v_tab.FIRST .. v_tab.LAST Loop
              dbms_output.put_line(v_tab(iii).FC_ID) ;
              End loop ;
    End loop; End of outer loop
    End;
    The error is
    Error
    [row:28,col:36] ORA-06550: line 28, column 36:
    PLS-00487: Invalid reference to variable 'NUMBER'
    ORA-06550: line 28, column 4:
    PL/SQL: Statement ignored
    Thanks in advance,
    Pal

    v_tab(iii).FC_ID
    declare
      type typ_nt_num is table of number;
      v_tab typ_nt_num;
    begin
      select distinct object_id bulk collect into v_tab from all_objects where rownum <= 10;
      for i in 1 .. v_tab.count loop
        dbms_output.put_line(v_tab(i)) ;
      end loop ;
    end;
    /

  • Query in PL/SQL Help

    Hi All!
    I want to write following type of query in PL/SQL
    How can I write one which will work.
    SELECT count(1) INTO v_count2 from TRJ_TRAN_REJ_T a and PEU_PUR_ENRL_UNT_T b
    where a.TRJ_CVRG_PER_DATE IN (b.PEU_EFF_DATE AND b.PEU_END_DATE) AND
    a.purik = b.purik AND a.peuik = b.peuik
    Above query is not working correctly. Any changes?? DATE stored in database is like 01/01/2001
    v_count2 is NUMBER variable declared in PL?SQL.
    SA

    I'd also watch out for the TIME part of the date matching, best to do a TRUNC on them, but make sure also [purik] and [peuik] are indexed. This is the format I use for a select. Some parts were removed but you get the idea.
    --[START]
    --[SELECT]
    SELECT
    --/*+ choose */
    /*+ RULE */
    --/*+ first_rows */
    --/*+ all_rows */
    count(1)          --[C1]
    --[INTO]
    INTO
    v_count2          --[V1]
    --[FROM]
    FROM
    trj_tran_rej_t T1,
    peu_pur_enrl_unt_t T2
    --[WHERE]
    WHERE
    TRUNC(T1.trj_cvrg_per_date) = TRUNC(T2.peu_eff_date)
    OR
    TRUNC(T1.trj_cvrg_per_date) = TRUNC(T2.peu_end_date)
    AND
    T1.purik = T2.purik
    AND
    T1.peuik = T2.peuik
    --[ABORT]
    AND 1=1;
    --[END]
    Tyler Durden

  • Query in PL/SQL code is slower

    I have a very strange issue within my development database, I'm using Oracle 10g.
    I created a query to read some data from a large collection of tables -OFDM tables- I have tested and tuned the performance of the query from (PL/SQL Developer 7 ), it takes only 2 minutes to finish but when I use the same query as a cursor in a database procedure it consume a lot of time around 15 min to get the data.
    Your help is appreciated

    [url http://groups.google.de/group/comp.databases.oracle.server/browse_frm/thread/df893cf9be9b2451/54f9cf0e937d7158?hl=de&tvc=1&q=%22Beautified%22+code+runs+slower#54f9cf0e937d7158]Recently somebody complained about slow performance after code was beatified in PL SQL Developer, after recompilation without flag "Add Debug Information" it run faster...
    (just a guess)
    Best regards
    Maxim

  • Re: How to converting from PL/SQL query to T-SQL query

    How to converting from PL/SQL query to T-SQL query... Its Urgent

    Download the
    SQL Server Migration Assistant for Oracle.  It will convert whole Oracle databases, or single queries or PL/SQL stored procedures.
    With caution that If your database is using Collation which is case sensitive SSMA will not work.SSMA doesnt guarantees 100% for conversion of Queries/stored proc /database if it fails to do so for some queries you will have to do it manually.
    But you can try
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Data discrepancy between Webi Report and same Query fired on SQL Server 2k5

    Hi ,
    We are facing an issue in BO XI R2.
    We need to run a Webi report in which negative values for forecasting data for year 2011 and 2012 should be displayed.
    When we are running this report for negative values, we are getting message u2018There is no data corresponding to this queryu2019.
    Then we tried executing the same query on Database. Here at db level we got the correct required result.
    So now we are not able to find the reason for data discrepancy .
    Why the same query generated by Webi is providing correct data when fired on reporting database and not when running the Webi Report.
    Checklist we have gone through for this troubleshooting is-
    -Connections of Universe (Is universe pointing to same database or not)
    -Any filter condition present at universe level and at report level.
    Could anyone please help on this.
    Regards,
    Vaibhav

    Vaibhav,
    Have you tried the following when you are in WebI: go under the Edit Query panel, click on the "SQL" icon, and review the query that is getting generated?  At this point you can also click on the "copy" option, then paste this query into your SQL application analyzer and run to see what results are generated.  To me, it sounds like the portion trying to generate the "minus" sign might be getting tripped up causing the disconnect....
    Thanks,
    John

  • BI server generating wrong query

    Hi,
    I have an issues with query generation by report. we have one fact table and 3 dim tables using by query. If I use aggregate functions like max, avg and stddev in column formula, BI server generating wrong query but normal report without any aggregate functions working fine(generation correct query by bi server). fact tables sources>>content tab, level settng to all three dim tables is at detailed level. I'm expecting BI server to rollup the detailed data to calculate min, max and stddev but it's not doing that and it is trying to join so many other unwanted tables in the query and fetching no result.
    How would I fix the above problem? thanks for your help
    Thanks
    Jay.

    One of the dimension table have joins to other fact tables and query routed through unwanted dim and fact tables. this is happeneing because of aggregate navigation in fact sources, content tab set to detailed level. I'm trying to use aggregate functions...

  • Crosstab query using pure SQL only

    Hi all,
    Found a lot of threads on crosstab, but none seems to address what I need. I need to perform crosstab query using pure SQL only & the number of columns are dynamic. From a query, I obtained the below table:
    Name Date Amount
    Alex 2005-06-10 1000
    Alex 2005-06-20 1000
    Alex 2005-07-10 1000
    Alex 2005-07-20 1000
    Alex 2005-08-10 1000
    Alex 2005-08-20 1000
    John 2005-06-10 2000
    John 2005-06-20 2000
    John 2005-07-10 2000
    John 2005-07-20 2000
    John 2005-08-10 2000
    John 2005-08-20 2000
    And I need to transform it into:
    Name 06-2005 07-2005 08-2005
    Alex 2000 2000 2000
    John 4000 4000 4000
    Reason for the columns being dynamic is because they'll be a limit on the date ranges to select the data from. I'd have a lower & upper bound date say June-2005 to August-2005, which explains how I got the data from the above table.
    Please advise.
    Thanks!

    Hi,
    I couldn't resist the intellectual challenge of a pure SQL solution for a pivot table with a dynamic number of columns. As Laurent pointed out, a SQL query can only have a fixed number of columns. You can fake a dynamic number of columns, though, by selecting a single column containing data at fixed positions.
    <br>
    <br>
    If it were me, I'd use a PL/SQL solution, but if you must have a pure SQL solution, here is an admittedly gruesome one. It shows the sum of all EMP salaries per department over a date range defined by start and end date parameters (which I've hardcoded for simplicity). Perhaps some of the techniques demonstrated may help you in your situation.
    <br>
    <br>
    set echo off
    set heading on
    set linesize 100
    <br>
    select version from v$instance ;
    <br>
    set heading off
    <br>
    column sort_order noprint
    column sal_sums format a80
    <br>
    select -- header row
      1        as sort_order,
      'DEPTNO' as DEPTNO ,
      sys_connect_by_path
        ( rpad
            ( to_char(month_column),
              10
          ' | '
        ) as sal_sums
    from
        select
          add_months( first_month, level - 1 ) as month_column
        from
          ( select
              date '1981-01-01' as first_month,
              date '1981-03-01' as last_month,
              months_between( date '1981-03-01', date '1981-01-01' ) + 1 total_months
            from dual
        connect by level < total_months + 1
      ) months
    where
      connect_by_isleaf = 1
    connect by
      month_column = add_months( prior month_column, 1 )
    start with
      month_column = date '1981-01-01'
    union all
    select -- data rows
      2 as sort_order,
      deptno,
      sys_connect_by_path( sum_sal, ' | ' ) sal_sums
    from
      select
        dept_months.deptno,
        dept_months.month_column,
        rpad( to_char( nvl( sum( emp.sal ), 0 ) ), 10 ) sum_sal
      from
          select
            dept.deptno,
            reporting_months.month_column
          from
            dept,
            ( select
                add_months( first_month, level - 1 ) as month_column
              from
                ( select
                    date '1981-01-01' as first_month,
                    date '1981-03-01' as last_month,
                    months_between( date '1981-03-01', date '1981-01-01' ) + 1 total_months
                  from
                    dual
              connect by level < total_months + 1
            ) reporting_months
        ) dept_months,
        emp
      where
        dept_months.deptno = emp.deptno (+) and
        dept_months.month_column = trunc( emp.hiredate (+), 'MONTH' )
      group by
        dept_months.deptno,
        dept_months.month_column
    ) dept_months_sal
    where
      month_column = date '1981-03-01'
    connect by
      deptno = prior deptno and
      month_column = add_months( prior month_column, 1 )
    start with
      month_column = date '1981-01-01'
    order by
      1, 2
    <br>
    VERSION
    10.1.0.3.0
    <br>
    DEPTNO      | 81-01-01   | 81-02-01   | 81-03-01
    10          | 0          | 0          | 0
    20          | 0          | 0          | 0
    30          | 0          | 2850       | 0
    40          | 0          | 0          | 0
    <br>
    Now, if we substitute '1981-03-01' with '1981-06-01', we see 7 columns instead of 4
    <br>
    DEPTNO      | 81-01-01   | 81-02-01   | 81-03-01   | 81-04-01   | 81-05-01   | 81-06-01
    10          | 0          | 0          | 0          | 0          | 0          | 2450
    20          | 0          | 0          | 0          | 2975       | 0          | 0
    30          | 0          | 2850       | 0          | 0          | 2850       | 0
    40          | 0          | 0          | 0          | 0          | 0          | 0
    <br>To understand the solution, start by running the innermost subquery by itself and then work your way outward.

  • Edit query results in SQL worksheet

    I can't edit query results in SQL worksheet, I not found any options to "ON" this. I use SQL Developer 2.1.1.64.

    You can't edit results in the worksheet. It's an accepted feature request with no scheduled date. In the mean time you have to go to the table or write an update statement.

  • NVARCHAR (MAX) TO PRINT DYNAMIC SQL QUERY TO A SQL FILE

    Hi 
    I have a requirement where i need to write an SP which would construct a huge query using dynamic SQL and save the Dynamic query to a file. 
    The Dynamic SQL Variable I am using as @NVARCHAR(MAX) but since the query being built is large (>4000 characters), I am not able to select it into a table. PRINT @SQL prints the whole query but SELECT @SQL prints only upto 4000 characterrs. 
    And I need to save this huge dynamix sql to a file using the SP.
    Any thoughts as to how i can achieve this?
    Rajiv

    This is a know problem with dynamic SQL nvarchar(max) concatenation.
    See below for correct assembly of large SQL strings:
    CREATE table #temp(qry nvarchar(max));
    declare @cmd nvarchar(max);
    SELECT @cmd=CONCAT(CONVERT(nvarchar(max),N'SELECT '),
    CONVERT(nvarchar(max),REPLICATE (N'A',4000)),
    CONVERT(nvarchar(max),REPLICATE (N'A',4000)),
    CONVERT(nvarchar(max),REPLICATE (N'A',4000)),
    CONVERT(nvarchar(max),REPLICATE (N'A',4000)),
    CONVERT(nvarchar(max),N'FROM SYS.TABLES'));
    insert into #temp SELECT @cmd;
    select * from #temp;
    select len(qry), datalength(qry) from #temp;
    -- 16022 32044
    drop table #temp;
    Dynamic SQL:  http://www.sqlusa.com/bestpractices/dynamicsql/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Transalate JPQL query to be SQL

    I'm using toplink. I wonder if there is tool to translate toplink JPQL query to be SQL in developer? what I'm looking for is I can type in a JPQL query, IDE will be able to show me the translated SQL. is this can be done in jdeveloper?
    Thanks

    Dear Friends,
    I have done the same thing. We r using PI 7.1.
    I have Sync Proxy ->  Syn JDBC . I tried to execute a simple query at the JDBC adapter by sending it through *access*  field in the XML structure.
    This is the input
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:CoilNoReceive xmlns:ns0="urn:essar-com:production:shearslitpoconfirm">
    - <stmt>
    - <TABLENAME action="SQL_QUERY">
      <access>SELECT coil_no,PARTS_ACT FROM P_INV where fac_index <> 6 and fac_index <>7 and rownum<5</access>
      </TABLENAME>
      </stmt>
      </ns0:CoilNoReceive>
    I am getting this error msg..
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error 'java.sql.SQLException: ORA-00900: invalid SQL statement ' executing service raw2sql with SQL statement '<?xml version="1.0" encoding="UTF-8"?> <ns0:CoilNoReceive xmlns:ns0="urn:essar-com:production:shearslitpoconfirm"><stmt><TABLENAME action="SQL_QUERY"><access>SELECT coil_no,PARTS_ACT FROM P_INV where fac_index <> 6 and fac_index<>7 and rownum<5</access></TABLENAME></stmt></ns0:CoilNoReceive>'</SAP:AdditionalText>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    What could be the problem. Reply ASAP.
    Thanks
    K. Ramesh

  • Visual query  builder in SQL developer ...

    hi
    Thank you for reading my post
    when we can expect a visual query builder in sql Developer ?
    also , how i can make an auto increment field in SQL develoepr ?
    Thanks

    I can't answer your first question.. but the second has been hashed over a few times. In short, there are no auto-increment fields in Oracle. Instead there are sequences which are more complicated to use, but much more versitile.
    Auto increment trigger
    Auto Increment
    Eric

Maybe you are looking for

  • Error 39008: logical table does not join to fact source

    About to lose my mind over this error! I'm told logical table IT_WORK_ITEM_D (a dimension) does not join to any fact source, although it should show as joined to IT_WORK_ITEM_DSNPSHT_F - I have verified the physical joins - I have verified the busine

  • Display blacks out

    so on my ibook g4 mid way through using it the screen blacks out (there is a very faint glow) this is happening more regularly now and atm as a temporary fix i just close the lip and open it. iv looked through some forums and it seems like a problem

  • Installing Window 7 with bootcamp

    Hi I installed windows 7 with bootcamp and it worked. Later I removed windows 7 with bootcamp and it also worked. Now I'm reinstalling windows with bootcamp and I'm not able to create a partition that I can use for Windows. Bootcamp creates a partiti

  • I can't open the app idvd 5 with mac X , before I can make it and now i don't open it

    why i can't open the app idvd 5 with my mac x.5.8 before i can open and make films now i don't do it i don't speak english very well i'm french thanks Nasria

  • Print through?

    Some background first. I am relatively new to DV. I have just bought a new Sony Hidef DV camcorder. (HC5). My issue is this – In the old days of analogue tape recording there was an issue with "print-through". This meant that given time, the magnetic