PLSQL Insert and Special Circumstance

I am using APEX 4.0.
This one is strange. I have a system used to renew UCC filings, which must be renewed within six months of their expiration. I have a report (UCC Tracker Report) which lists all records falling within this date range. I click a sequence number (column link) for a record and go to a form detail page (UCC Detail) for the record identified by the sequence number. There are a number of data items on this page which will not change with the filing renewal; so I want to carry these data items into the new record. I do this with a button labeled "Renew UCC." It executes a PLSQL process which does two things: (1) it inserts a new record with the data preserved from the old record, and (2) updates the old record with an "H" in the "histrec" column (which makes this record history).
Now, the second part works; the old record is always updated. The first part (the insert) does not work, except under a special circumstance. Back on the UCC Tracker Report page there is a button labeled "Enter New UCC Record." This button calls the same page (UCC Detail) that is called for the renewal, but, of course, since it is for new record, it will have null items. There is a button on it (Return to UCC Tracker Report) which will simply allow the user to return to the report page. If the user goes to this UCC Detail page, then returns to the UCC Tracker Report page, and then clicks a sequence number (column link) to bring up the record for renewal, clicking the Renew UCC button causes the PLSQL to insert the new record. Otherwise, it will not insert.
Somewhere there must be a setting that needs to be changed for this form to operate as intended. Please help.
**********************************Additional Wrinkle***************************
After posting this question, I tried one more thing. I clicked the "Enter New UCC Record" button to go to the UCC Detail page and then edited the Action on the "Return to UCC Tracker Report" button to clear the cache on this page. After that the PLSQL insert would not work.
Edited by: Doug on Apr 27, 2012 3:45 PM

Hi,
The Form page where you Create/Edit does not really come into play in the duplication of record process , unless you are trying to insert a row on that page (which would be bad idea) in the Page rendering side. Analyzing the UCC Detail page may offer clues, but it can also confuse.
Chances are you are inserting a new record while navigating out of the UCC Tracker Report page in a OnSubmit process. And that would be the right thing to do.
You also need to make a distinction between "Row not getting inserted in the table" and "Row not showing in the Edit (UCC Detai)". If the parameter passing from UCC Tracker Report to UCC Detail page is not correct you will not see the newly created row even though it is present in the table.
The scenario you are describing is a routine one.
If you put up this scenario on apex.oracle.com it will be possible to help fix it. Otherwise one can only guess !
Regards,

Similar Messages

  • Hello Am trying to insert a special characcter "ƒ" but its not taking

    Hello all ,
    Help is greatly appreciated.
    Am trying to insert a special character for currency symbol -"ƒ". Below is my insert statement.
    INSERT INTO PROD.region
    (COUNTRY_ID, CURRENCY_SYMBOL , NAME)
    VALUES
    (530,'"ƒ"', 'Netherland Antilles' );
    I tried from TOAD as well as Sql Plus , but its inserting as "?" for currency symbol column .
    So please kindly anyone provide me suggestion how to have the exact value- "ƒ" to be inserted.'

    Hello,
    this is anything but trivial.
    My characterset is
    SELECT value
    FROM   v$nls_parameters
    WHERE  parameter = 'NLS_CHARACTERSET';
    WE8ISO8859P15One might assume that inserting the charcter is simply a matter of the correct ascii code
    SELECT ASCII('ƒ') x FROM dual;
             X
           191So we set up a test table
    DROP TABLE t_nvarchar;
    CREATE TABLE t_nvarchar(
         v NVARCHAR2(1)
        ,who VARCHAR2(20)
        );Now we insert some lines using SQL Developer
    INSERT INTO t_nvarchar (v,who) VALUES ('ƒ','SQL Developer 1');
    INSERT INTO t_nvarchar (v,who) VALUES (N'ƒ','SQL Developer 2');
    INSERT INTO t_nvarchar (v,who) VALUES (NCHR(191),'SQL Developer 3');
    INSERT INTO t_nvarchar (v,who) VALUES (UNISTR('\0192'),'SQL Developer 4');   
    COMMIT;And the same lines using SQL*PLUS
    INSERT INTO t_nvarchar (v,who) VALUES ('ƒ','SQL*PLUS 1');
    INSERT INTO t_nvarchar (v,who) VALUES (N'ƒ','SQL*PLUS 2');
    INSERT INTO t_nvarchar (v,who) VALUES (NCHR(191),'SQL*PLUS 3');
    INSERT INTO t_nvarchar (v,who) VALUES (UNISTR('\0192'),'SQL*PLUS 4');   
    COMMIT;And what do we get (Executed in SQL Developer, since SQL*PLUS cannot show the "foreign" characters
    SELECT v,who,DUMP(v) FROM t_nvarchar;
    V WHO                  DUMP(V)          
    ¿ SQL Developer 1      Typ=1 Len=2: 0,191
    ¿ SQL Developer 2      Typ=1 Len=2: 0,191
    ¿ SQL Developer 3      Typ=1 Len=2: 0,191
    ƒ SQL Developer 4      Typ=1 Len=2: 1,146
    Ÿ SQL*PLUS 1           Typ=1 Len=2: 0,159
    Ÿ SQL*PLUS 2           Typ=1 Len=2: 0,159
    ¿ SQL*PLUS 3           Typ=1 Len=2: 0,191
    ƒ SQL*PLUS 4           Typ=1 Len=2: 1,146How could it be that SQL*PLUS inserted the character 159 for ƒ?
    Because SQL*PLUS uses another characterset by default on my machine
    SELECT ASCII('ƒ') x FROM dual;
             X
           159So the only reliable way to insert UNICODE characters is the UNISTR function. And of course this only works when the column can accept these values.
    When you repeat the example with a VARCHAR column
    DROP TABLE t_nvarchar;
    CREATE TABLE t_varchar(
         v VARCHAR2(1)
        ,who VARCHAR2(20)
        );Now we insert some lines using SQL Developer
    INSERT INTO t_varchar (v,who) VALUES ('ƒ','SQL Developer 1');
    INSERT INTO t_varchar (v,who) VALUES (N'ƒ','SQL Developer 2');
    INSERT INTO t_varchar (v,who) VALUES (NCHR(191),'SQL Developer 3');
    INSERT INTO t_varchar (v,who) VALUES (UNISTR('\0192'),'SQL Developer 4');   
    COMMIT;You don't get what you might expect
    SELECT v,who,DUMP(v) FROM t_varchar;
    V WHO                  DUMP(V)          
    ¿ SQL Developer 1      Typ=1 Len=2: 0,191
    ¿ SQL Developer 2      Typ=1 Len=2: 0,191
    ¿ SQL Developer 3      Typ=1 Len=2: 0,191
    ¿ SQL Developer 4      Typ=1 Len=2: 0,191Regards
    Marcus
    Edited by: Marwim on 25.03.2013 16:06
    Added explanation for value 159 in SQL*PLUS

  • Trigger insert and commit

    Dear all
    I had made a trigger to insert a record to another database. Am I need to commit the inserted record inside the trigger?
    Thank !!!
    Kwan

    Okay, but autonomous transactions are - by definition - not part of the transaction. They are useful only in certain special circumstances when we need to retain certain changes no matter what, e.g. auditing user activity.
    Besides, the AUTONOMOUS TRANSACTION pragma doesn't work in distributed transactions (see the original question).
    There were rumours that Oracle were going to fix this in 9.2 - does anybody know if this is the case?
    Cheers, APC

  • Inserting and Selecting LONG with PRO*C

    Is there any special hints in order to use
    the LONG datatype with pro*c ? Can I insert
    and select this kind of type like any other
    CHAR/VARCHAR/VARCHAR2, even if this field
    has a length of about 65536 chars ?

    Well, random because it is not always the same nor the error code.
    - Sometimes I get segmentation fault on "sqlcxt";
    - "ORA-01024: invalid datatype in OCI call" on queries that usually work
    - "ORA-03114: not connected to ORACLE" on queries that usually work
    I have run valgrind and the only "place" where there could be an issue is reported to be caused by oracle libs:
    ==27055== 8,214 bytes in 1 blocks are possibly lost in loss record 193 of 206
    ==27055== at 0x40046FF: calloc (vg_replace_malloc.c:279)
    ==27055== by 0x43E2975: nsbal (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x42F04E6: nsiorini (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x4300FD2: nsopenalloc_nsntx (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x42FFD73: nsopenmplx (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x42F91FD: nsopen (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x42BDAFE: nscall1 (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x42BB0D7: nscall (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x435F653: niotns (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x43F9E40: nigcall (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x436AD4B: osncon (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x41EAA31: kpuadef (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)

  • Validating text field based on the combination of alphabets and special characters

    Hi Everyone,
    I am Using Oracle Apex 4.2 Version . I want to do validation for a textbox where it should accept all alphabets,numbers and special characters (abc12#$ , zbc, 123, nd12, 23_6!, @%77).
    But it should NOT accept all special characters only.(@#$#!)
    Pelase do help if any knows this.
    Thanks in advance,
    Nikhil.

    Hi Nikhil,
    Here is one way that could work.
    CREATE TABLE t (x VARCHAR2 (30));
    INSERT ALL
    INTO t
    VALUES ('XYZ123')
    INTO t
    VALUES ('XYZ 123')
    INTO t
    VALUES ('xyz 123')
    INTO t
    VALUES ('X1Y2Z3')
    INTO t
    VALUES ('123123')
    INTO t
    VALUES ('abc12#$')
    INTO t
    VALUES ('@%77')
    INTO t
    VALUES ('!@#$')
    INTO t
    VALUES ('~%^&*()_+')
    INTO t
    VALUES ('23_6!')
    INTO t
    VALUES ('zbc')
    INTO t
    VALUES ('123*456')
    SELECT * FROM DUAL;
    SELECT x
    FROM   t
    WHERE  ( Regexp_like (x, '[[:alpha:]]') -- include alpha characters
              OR Regexp_like (x, '[[:digit:]]') -- include numbers
              OR Regexp_like (x, '[[:punct:]]') ) -- include special character
           AND ( Regexp_like (x, '^[^%]*$');
                 AND Regexp_like (x, '^[^*]*$') ) -- exlude special characters % and *
    Jeff

  • ODBC, bulk inserts and dynamic SQL

    I am writing an application running on Windows NT 4 and using the oracle ODBC driver (8.01.05.00, that inserts many rows at a time (10000+) into an oracle 8i database.
    At present, I am using a stored procedure to insert each row into the database. The stored procedure uses dynamic SQL because I can only determine the table and field names at run time.
    Due to the large number of records, it tends to take a while to perform all the inserts. I have tried a number of solutions such as using batches of SQL statements (e.g. "INSERT...;INSERT...;INSERT..."), but the oracle ODBC driver only seems act on the first statement in the batch.
    I have also considered using the FOR ALL statement and SQL*Loader utility.
    My problem with FOR ALL is that I'm not sure it works on dynamic SQL statements and even if it did, how do I pass an array of statements to the stored procedure.
    I ruled out SQL* Loader because I could not find a way to invoke it it from an ODBC statement. Secondly, it requires the spawining of a new process.
    What I am really after is something similar the the SQL Server (forgive me!) BULK INSERT statement where you can simply create an input file with all the records you want to insert, and pass it along in an ODBC statement such as "BULK INSERT <filename>".
    Any ideas??
    null

    Hi,
    I faced this same situation years ago (Oracle 7.2!) and had the following alternatives.
    1) Use a 3rd party tool such as Sagent or CA Info pump (very pricey $$$)
    2) Use VisualC++ and OCI to hook into the array insert routines (there are examples of these in the Oracle Home).
    3) Use SQL*Loader (the best performance, but no real control of what's happening).
    I ended up using (2) and used the Rouge Wave dbtools.h++ library to speed up the development.
    These days, I would also suggest you take a look at Perl on NT (www.activestate.com) and the DBlib modules at www.perl.org. I believe they will also do bulk loading.
    Your problem is that your program is using Oracle ODBC, when you should be using Oracle OCI for best performance.
    null

  • Bulk inserts and dynamic SQL

    I am writing an application running on Windows NT 4 and using the oracle ODBC driver (8.01.05.00, that inserts many rows at a time (10000+) into an oracle 8i database.
    At present, I am using a stored procedure to insert each row into the database. The stored procedure uses dynamic SQL because I can only determine the table and field names at run time.
    Due to the large number of records, it tends to take a while to perform all the inserts. I have tried a number of solutions such as using batches of SQL statements (e.g. "INSERT...;INSERT...;INSERT..."), but the oracle ODBC driver only seems act on the first statement in the batch.
    I have also considered using the FOR ALL statement and SQL*Loader utility.
    My problem with FOR ALL is that I'm not sure it works on dynamic SQL statements and even if it did, how do I pass an array of statements to the stored procedure.
    I ruled out SQL* Loader because I could not find a way to invoke it it from an ODBC statement. Secondly, it requires the spawining of a new process.
    What I am really after is something similar the the SQL Server (forgive me!) BULK INSERT statement where you can simply create an input file with all the records you want to insert, and pass it along in an ODBC statement such as "BULK INSERT <filename>".
    Any ideas??
    null

    Hi,
    I faced this same situation years ago (Oracle 7.2!) and had the following alternatives.
    1) Use a 3rd party tool such as Sagent or CA Info pump (very pricey $$$)
    2) Use VisualC++ and OCI to hook into the array insert routines (there are examples of these in the Oracle Home).
    3) Use SQL*Loader (the best performance, but no real control of what's happening).
    I ended up using (2) and used the Rouge Wave dbtools.h++ library to speed up the development.
    These days, I would also suggest you take a look at Perl on NT (www.activestate.com) and the DBlib modules at www.perl.org. I believe they will also do bulk loading.
    Your problem is that your program is using Oracle ODBC, when you should be using Oracle OCI for best performance.
    null

  • Difference between empty plsql record and null plsql record

    Hi there,
    I am kinda getting confused with empty plsql record and null plsql record.
    How do I assign plsql record to be empty and to be null?
    create type emp_obj as object (enum number, ename varchar2);
    CREATE OR REPLACE TYPE emp_type AS TABLE OF emp_obj;
    Thanks

    First of all, do not use term PL/SQL record in this context. Record type in PL/SQL is completely different from object type. Secondly, there are 2 states of a nested table:
    1. Unintialized:
    SQL> create or replace
      2    type emp_obj_type as object(enum number, ename varchar2(10));
      3  /
    Type created.
    SQL> create or replace
      2    type emp_tbl_type as table of emp_obj_type
      3  /
    Type created.
    SQL> declare
      2      v_emp_tbl emp_tbl_type;
      3  begin
      4      v_emp_tbl.extend;
      5  end;
      6  /
    declare
    ERROR at line 1:
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at line 4
    SQL> 2 Empty:
    SQL> set serveroutput on
    SQL> declare
      2      v_emp_tbl emp_tbl_type := emp_tbl_type();
      3  begin
      4      dbms_output.put_line('Nested table v_emp_tbl has ' || v_emp_tbl.count || ' element(s).');
      5  end;
      6  /
    Nested table v_emp_tbl has 0 element(s).
    PL/SQL procedure successfully completed.
    SQL> NULL aplies to nested table element, not to nested table itself:
    SQL> declare
      2      v_emp_tbl emp_tbl_type := emp_tbl_type();
      3  begin
      4      v_emp_tbl.extend;
      5      if v_emp_tbl(1) is null
      6        then
      7          dbms_output.put_line('Nested table v_emp_tbl first element is NULL.');
      8      end if;
      9  end;
    10  /
    Nested table v_emp_tbl first element is NULL.
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Missing Format Text, Insert, and Edit Source, etc Options on Some Pages

    I’m having trouble understanding why certain pages have more edit options than others. I’m new to Sharepoint Workspace 2010 and I’ve been reading/ researching for answers for 2 days now. I tried to HyperSnap in some pictures however it will not allow me
    to until my account is verified and it's not sending a verification email, sorry!
    Issue: 
    On some pages, I have the edit pencil with lots of great edit options such as Format Text, Insert and Edit Source. (This is good!)
    On some pages I have no edit pencil, but when I go to Page
    à Edit Page à I get few edit options, not including Format Text, Insert or Edit Source. (This is not good)
    After reading other somewhat similar posts, I noticed that on the pages where I get lots of edit options, they show SitePages in the URL. Where I get few edit options, SitePages is not in the URL.
    Is there a fix so that I can have the expanded edit options in all of my pages? Thank you for your help!

    Hi,
    In SharePoint we don’t have edit page options [ribbon toolbar page edit formatting options] for all types of page for application page we cannot edit application page like site pages
    again the missing edit button might be due to many causes:  
    Can you verify that it's not a permissions issue? Try navigating to the page in edit mode by appending to the url: your-site/Pages/YourPage.aspx?ControlMode=Edit&DisplayMode=Design
    Or you can try this
    your-site/Pages/YourPage.aspx? ?ToolPaneView=2
    1. You can check  that on some pages the ribbon is hidden by default. You need to make it visible by clicking on "Show Ribbon" on the "Site Actions" drop-down menu.
    2. You haven't been doing Visual Upgrade (which actually replaces your master page with the v4.master)
    3. If you have different master page and may be your master page is not 100% compatibile with SP2010, nor does it use the elements from v4.master (collaboration) or the example nightandday.master
    To add the button in your page you could use the <SharePoint:PageStateActionButton id="PageStateActionButton" runat="server" Visible="false" /> (if you've seen already that would generate the button on the left side of
    the ribbon)!
    Please can you ping the URL of the page and how you crated that page to further assist, we would be happy to help.
    Krishana Kumar http://www.mosstechnet-kk.com

  • How do I get more effects in my action box?  I am only showing a few, like BOTTOM BORDERS, LOSE WEIGHT AND SPECIAL EFFECTS. That is all. The turotials I've checked into all show a long list of effects in the actions box. If anyone could help, I appreciate

    How do I get more effects in my action box? I am only showing a few, like "Bottom Borders, Losing Weight, Resize and Crop, and Special Effects. And they do not list but a few effects. When I have watched the tutorials, they are showing a long list of effects in the action box. (with a side space bar)  I do not.  When I have clicked on the little arrow at top, and clicked "Load Actions", a box comes up, but it is blank,saying "no items match your search".  I'm lost!  If someone could help, it would be much appreciated!  I would like to start using this.
    Thank you. 

    Apple Computer Customer Relations:
    1-512-674-2500

  • Can we use both INSERT and UPDATE at the same time in JDBC Receiver

    Hi All,
    I would like to know is it possible to use both INSERT and UPDATE at the same time in one interface because I have a requirement in which I have to perform both the task.
    user send the file which contains both new and old record and I need to save those in MS SQL database.
    If the record exist then use UPDATE otherwise use INSERT.
    I looked on sdn but didn't find any blog which perform both the things at the same time.
    Interface Requirement
    FILE -
    > PI -
    > JDBC(INSERT & UPDATE)
    I am thinking to use JDBC Lookup but not sure if it good to use for bulk record.
    Can somebody please suggest me something or send me the link of any blog or anything to solve this problem.
    Thanks,

    Hi ,
              If I have understood properly the scenario properly,you are not performing insert and update together. As you posted
    "If the record exist then use UPDATE otherwise use INSERT."
    Thus you are performing either an insert or an update which depends on outcome of a search if the records already exist in database or not. Obviously to search the tables you need " select * from ...  where ...." query. If your query returns some results you proceed with update since this means there are some old records already in database. If your query returns no rows  you proceed with "insert into tablename....." since there are no old records present in database.
      Now perhaps the best method to do the searching, taking a decision to insert or update, and finally insert or update operation is to be done by a stored procedure in MS SQL database.  A stored procedure is a subroutine available to applications accessing a relational database system. Here the application is PI server.   If you need further help on how to write and call stored procedure in MS SQL you can look into these links
    http://www.daniweb.com/web-development/databases/ms-sql/threads/146829
    http://www.sqlteam.com/article/stored-procedures-parameters-inserts-and-updates
    [ This part you can ignore, Since its not sure that you will face this situation
        Still you might face some problems while your scenario runs. Lets consider this scenario, after the stored procedure searches the database it found no rows. Thus you proceed with an insert operation. If your database table is being accessed by multiple applications (or users) other than yours then it is very well possible that after the search operation completed with a null result, an insert/update operation has been performed by some other application with the same primary key. Now when you are trying to insert another row with same primary key you get an error message like "duplicate entry not possible for same primary key value". Thus you need to be careful in this respect. MS SQL has a feature called "exclusive locks ". Look into these links for more details on the subject
    http://msdn.microsoft.com/en-us/library/aa213039(v=sql.80).aspx
    http://www.mssqlcity.com/Articles/Adm/SQL70Locks.htm
    http://www.faqs.org/docs/ppbook/r27479.htm
    http://msdn.microsoft.com/en-US/library/ms187373.aspx
    http://msdn.microsoft.com/en-US/library/ms173763.aspx
    http://msdn.microsoft.com/en-us/library/e7z8d5hf(v=vs.80).aspx
    http://mssqlserver.wordpress.com/2006/11/08/locks-in-sql/
    http://www.mollerus.net/tom/blog/2008/03/using_mssqls_nolock_for_faster_queries.html
        There must be other methods to avoid this problem. But the point is you need to be sure that all access to database for insert/update operations are isolated.
    regards
    Anupam

  • How to insert and edit equations with Math Type in IBA??

    Hi,
    I want to add  fractions in IBA with Math Type.
    Here is what i found:
    And here is the General Preferences
    Like you see, i can't select Insert and edit equations with Math Type, it's grey.
    How can i use Math Type?
    Tx

    We have an article that describes not only how to use MathType with iBooks Author (iBA), but also using LaTeX and MathML. http://www.dessci.com/en/support/mathtype/works_with.asp#!target=ibooks_author_m ac
    It's important to note that no matter how you get equations into iBA, all equations are represented as MathML in the published iBook. (except, obviously I hope, equations that are simply images that you insert)
    If you need more help, feel free to ask here.
    Bob Mathews
    Design Science

  • My iPhone is stuck in headphone mode. I've tried inserting and removing headphone jacks, blowing compress air into jack opening, using warm air from hair dryer, but

    My iPhone is stuck in headphone mode. I've tried inserting and removing headphone jacks, blowing compress air into jack opening, using warm air from hair dryer, and a number of setting changes, but the iphone is still in headphone mode.

    it's a hardware issue
    https://discussions.apple.com/thread/1343532?start=315&tstart=0

  • URGENT HELP PLSQL INSERT?

    I have view with 2 columns and a table with two cols.
    I need to INSERT into Table 1 from VIEW DISTICT CUST_JOB_ID WHERE SALARY is
    40,000 . in this CASE ABC(23000+21000) > 40,000 . INSERT SYSDATE. (This is a batch job running in the night). PQR is INSERTED and NOT HIJ into new table. VIEW1
    CUST_JOB_ID, SALARY
    ABC.. 23000
    ABC.. 21000
    DEF 39000
    XYZ.. 54000
    PQR .. 47000
    HIJ ... 15000
    TABLE1
    CUST_JOB_ID DATE
    ABC ............. 12/13/06
    XYZ .............. 5/4/ 05
    Thanks for advance help.
    Tigre.

    SQL> with employee as
      2   (select 'ABC' cust_job_id, 23000 salary from dual
      3    union all
      4    select 'ABC' cust_job_id, 21000 salart from dual
      5    union all
      6    select 'DEF' cust_job_id, 39000 salart from dual
      7    union all
      8    select 'XYZ' cust_job_id, 54000 salart from dual
      9    union all
    10    select 'PQR' cust_job_id, 47000 salart from dual
    11    union all
    12    select 'HIJ' cust_job_id, 15000 salart from dual)
    13  select e.cust_job_id,
    14         e.tot_sal
    15    from (select cust_job_id, sum(salary) tot_sal
    16            from employee
    17          group by cust_job_id) e
    18   where e.tot_sal > 40000
    19  ;
    CUST_JOB_ID    TOT_SAL
    ABC              44000
    PQR              47000
    XYZ              54000
    SQL> your code will look like something below:
      insert into table1
       (cust_job_id, date_column)
      select e.cust_job_id, sysdate
        from (select cust_job_id, sum(salary) tot_sal
                from employee
              group by cust_job_id) e
       where e.tot_sal > 40000

  • How to get count of records inserted and errored out in an email

    Hi
    I have following question
    I want to send report statics of scenario i.e Number of rows inserted during the scenario and
    Number of rows in error in the scenario in an email.Here in my scenario I am trying to insert data into Essbase database and when i try to use getNbInserts() and getNbErrors functions of ODI in an email body,its giving zero value even though there 140 records inserted and 10 errored out.Can any one let me know how we get this number of records inserted and number of records errored in email.
    Thanks in advance
    Regards
    Baji

    Hi
    I have following question
    I want to send report statics of scenario i.e Number of rows inserted during the scenario and
    Number of rows in error in the scenario in an email.Here in my scenario I am trying to insert data into Essbase database and when i try to use getNbInserts() and getNbErrors functions of ODI in an email body,its giving zero value even though there 140 records inserted and 10 errored out.Can any one let me know how we get this number of records inserted and number of records errored in email.
    Thanks in advance
    Regards
    Baji

Maybe you are looking for

  • Purchase order status open

    Hi Experts, Due to some other reasons we tried clear GR/IR clearing a/c. i will explain clearly. We have some purchase orders pertaining to 2006 year. we have not done MIGO and we did MIRO, So that we could not able to clear GR/IR A/C. SO, we have po

  • Terminal won't stop opening two windows.

    Every time I open Terminal, it opens two windows. One window has a bunch of text at the top that appears to be old commands(perhaps that I had typed? I don't remember all that I've typed into Terminal since the beginning of time ) in grey and then th

  • Assamese language India in Adobe PageMaker 7 in Windows 8.1 Pro x64 environment

    How can I type 'Assamese language, India' in Adobe PageMaker 7 in Windows 8.1 Pro x64 environment ? http://answers.microsoft.com/en-us/windows/forum/windows8_1-performance/assamese-language- india-in-adobe-pagemaker-7-in/3f97fbde-332c-48f1-a7f0-62f61

  • AddProvider in a signed applet(cab file)

    Hi, I have been trying to sign an applet such that I can use the JCA from within an applet. My goal is to encrypt a file and then ftp it to a server. I am currently able to "read" the file from the client's system and then ftp it. I have created a te

  • No usb sticks show up on my mackbook pro

    Hi, I have a big dilema, any usb stick that i insert does not show on my macbook pro. Card readers work, Usb Drives (backup drives) work but USB Sticks don't work at all. I have tried about 3 or 4 different ones. Some error happened about a week a go