selection of the missing records between 2 duplicity without worrying about tables of records

Hi all

I have received_bills and send_bills of 2 tables.

The SEND_BILLS table is the source table displaying all records in it.

I need to compare two tables together and insert all the missing elements in received_items including duplicate records.

There may be duplicate in 2 tables records.

I wrote a query, but it does not select the duplicate records if it's all the 2 tables. When the same duplicate records are send_bills and received_bill without worrying because send_bills has 4 of them and received_bill 2, it does not select the other 2 duplicate records. And it's just what I need.

the query is

SELECT SEND. POINT OF REFERENCE,

Send. PAYMENT,

Send. CODE

OF SEND_BILLS SEND

WHERE THERE IS NOT (SELECT REC. DATUM, PAYMENT, REC. REC. CODE

OF RECEIVED_BILLS REC

WHERE REC. REFERENCE = SEND. SCRATCH CARDS

AND REC. PAYMENT = SEND. PAYMENT

AND REC. CODE = SEND. CODE)

send_bills records

OCTOBER 10, 1519A1
OCTOBER 10, 1519A1
OCTOBER 10, 1519A1
OCTOBER 10, 1529A3
OCTOBER 10, 1547A4
9 OCTOBER 1519A8
OCTOBER 10, 1520A1
OCTOBER 10, 1519A1
OCTOBER 10, 1525A5
OCTOBER 10, 1525A5

received_bills records

OCTOBER 10, 1519A1
OCTOBER 10, 1529A3
OCTOBER 10, 1547A4
OCTOBER 10, 1519A1

the result of the query is:

OCTOBER 10, 1525A5
OCTOBER 10, 1525A5
OCTOBER 10, 1520A1
9 OCTOBER 1519A8

So he selects all the records

the result should be

OCTOBER 10, 1525A5
OCTOBER 10, 1525A5
OCTOBER 10, 1520A1
9 OCTOBER 1519A8
OCTOBER 10, 1519A1
OCTOBER 10, 1519A1

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

-The DOF for Table SEND_BILLS

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

CREATE TABLE SEND_BILLS

(DATE OF "DATUM",

NUMBER OF "PAYMENT."

'CODE' VARCHAR2 (5 BYTE)

)  ;

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

-The DOF for Table RECEIVED_BILLS

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

CREATE TABLE 'RECEIVED_BILLS '.

(DATE OF "DATUM",

NUMBER OF "PAYMENT."

'CODE' VARCHAR2 (5 BYTE)

)  ;

-Insert the script for send_bills

Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 19, 'A1');

Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 19, 'A1');

Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 19, 'A1');

Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 29, 'A3');

Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 47, 'A4');

Insert into SEND_BILLS (DATUM, CODE) values (to_date('09-OCT-15','DD-MON-RR'), 19, 'A8');

Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 20, 'A1');

Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 19, 'A1');

Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 25, 'A5')

Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 25, 'A5')

-Insert invoices received from script

Insert into RECEIVED_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 19, 'A1');

Insert into RECEIVED_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 29, 'A3');

Insert into RECEIVED_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 47, 'A4');

Insert into RECEIVED_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 19, 'A1');

Can someone please help me with the query so that I can also select all the missing records, including duplicates.

Thanks in advance.

Best regards

Caroline

If you should by all means use loop and then (send_bills and received_bills contain the same data as your original post):

Select the reference, payment, code

of (with

Duplicator (Datum, Payment, code, CNT) as

(select the reference, code, payment, cnt - 1).

from (select datum, payment, code, count (one) - cnt count (two)

(select date, payment, code, 1 one, to_number (null) two)

of send_bills

Union of all the

Select datum, payment, code, to_number (null), 2 two

of received_bills

)

Reference group, code

having count (one)! = count (two)

)

Union of all the

Select the reference code, payment, cnt - 1

The duplicator

where cnt > 0

)

Select the reference, payment, code

The duplicator

)

DATUM PAYMENT CODE
10/09/2015 19 A8
10/10/2015 19 A1
10/10/2015 25 A5
10/10/2015 20 A1
10/10/2015 19 A1
10/10/2015 25 A5

Concerning

Etbin

Tags: Database

Similar Questions

  • If I sell my iPhone 6, indicating the error 53, for parts, should I worry about the person buying it have some sort of access to the personal data registered on this phone?

    If I sell my iPhone 6, indicating the error 53, for parts, should I worry about the person buying it have some sort of access to the personal data registered on this phone?

    Hello error 53 matched a UN failure to the home button you had to replace the screen or the home button alone or outside apple store so if you replace the button man of origin and you restored the iPhone error will be fixed but if you sell the buyer has no access to the data of the iPhone

  • ORA-01445: cannot select ROWID, or sample, a view of join without key - preserved table form w/report and LOV

    I create a page "Form on a Table with Report" (APEX 5). Table I has 3 columns: cat_key, item_value, item_description. The cat_key is a foreign key in a table with columns cat_key, cat_value. I created the report and everything works fine.  The page of the report shows my domain cat_key in number, so I want it instead to display the cat_value. I change the field cat_key to a text based on LOV, select my LOV and now when I view the page of report I get the "'ORA-01445: cannot select ROWID from where sample, a join without key preserved table view ' error." The report uses the ROWID as a link to the edit page field.

    If I use the same tables and even shared LOV in a report page interactive, it works fine.

    What I am doing wrong?

    This is a limitation of the IR Apex will rewrite your query to a query that includes the lookup table and the columns. So now you have actually created a query on an inline view, which causes the error. You can see the query apex created when running in debug mode. APEX will join the table of choice with your primary table. For example from one of my IR:

    Select 'ID '...

    "MSL". "" HIS_COUNTRIES "=> my primary table

    ) ) b,

    (select rv_meaning d, rv_low_value r

    of msl_ref_codes_table

    where rv_domain = "JOHN".

    ) L1 = > query My LOV Lookup

    ...

    So, if possible, base your reports and forms on the real primary key, no rowid.

    You can also write the IR query with the search yourself:

    Select T1.rowid...

    of primary_table T1

    look_table L1

    ...

  • Select all the paragraphs of a certain style without looping

    Did a quick search, so please forgive me if this is a duplicate.

    paragraphs var = app.activeDocument.textFrames.everyItem ().paragraphs.everyItem ();

    Is it possible to points of reference with a certain style applied without a loop in each paragraph?

    I am thinking something like this:

    Var headlines = paragraphs.itemsByAppliedParagraphStyle ("title 1");

    Headlines is an array of the paragraph, all which have the "Heading 1" paragraph style applied to them

    Thanks for any help you can provide.

    Just use findGrep or findText like this

    app.findGrepPreferences = null
    app.findGrepPreferences.appliedParagraphStyle = "Headline 1"
    myHeadlineParagraphs = app.activeDocument.findGrep()
    

    Trevor

  • Install the missing drivers after cleaning to Windows 7 from XP

    Hello. I have a custom computer I upgraded from xp to Windows 7 Home Premium. Everything worked perfectly before the upgrade. After the upgrade, my multimedia card, PCI, has stopped working and The Geek Squad, nor the built-in convenience store could find the drivers for it. It says "code OxC004C008 and 28 for the NTativrv01". then another message said: "PCI simple communications controller - no driver; then "Mlti-media conroller does not have a pilot.  appreciate any help I can get. Thank you

    1 a helpful to take before step same you've solved these problems is to create two alternative accounts protected by password Admin-level.

    • Accounts of users & their safety are taken much more seriously in Windows 7 so the tricks we learned under XP can not help us any more.
    • [No matter what account can suffer from corruption of the profiles user and if it's your main account and you have no spare Admin account to access the system, then you have a serious problem that we are not even allowed to advise you in this forum other than to suggest a complete reinstall of Windows 7].
    • If you have these two alternative accounts then, because they are rarely used, they are less likely to suffer from the corruption that is in use.
    • So even if you have problems in your account you can then log in as one of them and solve the problem.
    • You must write the passwords and ensure the safety of the sheet of paper.  You could do 'Password' reset disks instead, but they are not more effective than a piece of paper and they will also have to be stored somewhere in the place safe.

    2. did you run the Windows 7 compatibility checker before the upgrade?  You can start now and its results will always help you.  See Windows 7, 8.1, 10 compatibility tests for Windows XP, Vista - WiKi

    3 then see where to find the hardware drivers to treat your problems with your multimedia controller etc.

    4 once you get these things sorted, then you want to probably ensure that you get a Windows 10 forced update before you're ready - see disable Windows 10 improvement and ignore someone who starts to tell disable you updates specific Windows or turn off Windows update itself because it's all nonsense.

    5 like many of us when we arrived first of XP, you reach not used 'images of the system' which is worth doing as soon as you have a system worth preserving - so you probably want to turn it off until you have fixed your problem with drivers hardware.

    • You can make an image of the system in less than half an hour.
    • You can restore an image system in less than half an hour and thus replace problems based on software, including problems of drivers, who have appeared on your computer.
    • Search for create a system image using Windows to get an introduction to & use,
    • Then go into Control Panel, [view by - small icons, if necessary], Backup & Restore for the link on the left side to create a system image to run the utility.
    • Note that you should not make the system repair disc which will find references to your Windows 7 installation disc can do what a system repair disc can [etc.].
    • Target the most convenient & reliable to record images of system on is an external hard drive.  An image of the system does not have the external hard drive to any target, so it can also be used for other purposes such as the storage of your current file backups.
    • Rewritable DVD is not as reliable and you need several whenever you made a new image.
    • Utility of third to party system images can be better that the built-in Windows utility I use Acronis TI which has a very good reputation.  Macrium Reflect free edition also has a good reputation.  But you can start with the built-in utility, and then you worry about the alternatives later.

    All the best,

    Denis

  • How to make the handles visible direct selection on the pasteboard?

    When I go to for transformation/resize images within frames using direct Selection, I don't see the handles of the image because they are white against a white cardboard.  I use InDesign CS5 (ver 7.0.4) on a Mac. I've been using InDesign for a few years and never noticed that it was a problem; all of a sudden, the handles seem invisble. I don't remember what the color scheme was before. (Maybe I'll lose my mind). The colors did not alter an update? There is an option in the preferences to choose the color of the pasteboard, but this does not seem to have any effect. In the meantime, I can't find the handles to resize/convert images. I can enter a percentage to scale, but it is sometimes useful. How to make the handles visible direct selection on the pasteboard?

    If you're talking about the color of a path and its handles, which is dependent on the color of the layer selection. Go to the layers panel. Double-click the currently selected schema and change the selection to something darker color.

  • Why finder hide Documents and office files in the home directory of the user by activating iCloud drive? What about the behavior of Time Machine backup or third-party applications?

    I'm under MacOS Sierra. I am connected to my iCloud account. I activated the option Desktop and Documents, but I did NOT activate the option optimize Mac storage, because I wanted to make sure that all my files would be available locally, just in case, I would need to work without an internet connection.

    -J' noticed there now a menu iCloud in my sidebar in the Finder, with links to Documents and desktop.

    -J' also noticed that Documents is no longer presented in my favorites in my side bar of the Finder.

    -This last suggests that files saved in 'Documents' are not saved more on my HD... but only in iCloud, which isn't what I want.

    -Then, sailing in the Finder Macintosh HD/users / 'My account' /, I noticed that my Documents and desktop folders are more visible, as if these files are not saved in my home folder most. Which raises the question: where are My Documents and files on my HD, so they are still?

    -Using a shell session in the terminal and again navigate to/Users / 'My account' /, I noticed that my Documents and desktop folders are still there. Which suggest that records and records of office reside actually still in my home folder under users, but Finder actually hide it and present them as being stored in iCloud only disc. It's very confusing.

    This raises several questions:

    -In the first place, why Apple hide Documents and office files in the directory? Why not view these folders in iCloud and directory?

    -Whence the iCloud folder or drive, reside actually on my hard drive?

    -What time Machine. Is it still back up my document files and folders?

    -What games third-party app mirroring backup of My Documents files and folders? They still work properly? (I use Livedrive backup and Sugarsync for files mirrored across several macs).

    -How can I understand that Apple is doing with my folders and files? Some users might be happy with the iCloud drive concept, without worrying about how it works, but I don't take chances, and I want to keep a good understanding about the functioning of my system.

    Could someone explain what is exactly happening?

    With office and selected Documents, access to these files are now in the iCloud Drive, not in your home folder.

    My guess would be that they do not appear in your file because it would be confusing for many people to make them in two places.

    If you want in the Favorites, open iCloud Drive and drag them in the sidebar here.

    All about iCloud drive has been saved on your Mac. With the exception of the office and the Documents, they are in ~/Library/Mobile Documents. However, if you choose optimized storage, older documents are removed from your Mac. I don't know what is "old".

    ~/Documents and ~/desktop have new metadata indicating probably Finder does not display them in a Finder window, only in iCloud drive. They are not hidden in one of the normal methods of unix.

    I have not tested Time Machine or any other backup program. The folder still exist in your directory home, and they still have all the files, I don't think that changes anything.

  • Place the missing documents in the list of records with a rank value

    Hi all

    I have this table:
    WITH taba AS (SELECT 99 AS id,
                         '2011-08-08' AS date_ini,
                         10 AS VALUE,
                         1 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 99 AS id,
                         '2011-09-08' AS date_ini,
                         11 AS VALUE,
                         2 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 99 AS id,
                         '2011-10-08' AS date_ini,
                         10 AS VALUE,
                         4 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 999 AS id,
                         '2011-08-08' AS date_ini,
                         10 AS VALUE,
                         1 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 999 AS id,
                         '2011-09-08' AS date_ini,
                         10 AS VALUE,
                         2 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 999 AS id,
                         '2011-10-08' AS date_ini,
                         10 AS VALUE,
                         3 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 9999 AS id,
                         '2011-08-08' AS date_ini,
                         10 AS VALUE,
                         2 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 9999 AS id,
                         '2011-09-08' AS date_ini,
                         15 AS VALUE,
                         3 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 9999 AS id,
                         '2011-10-08' AS date_ini,
                         10 AS VALUE,
                         4 AS RANK
                    FROM DUAL)
    SELECT *
      FROM taba
    And I need to return the same results but with the addition of records that have no rank. For new records the VALUE must always be zero (0) and the value of DATA_INI must have the same value as the order of the records immediately following. Just like that:
    99       2011-08-08     10     1
    99       2011-09-08     11     2
    *99       2011-10-08     0     3*
    99       2011-10-08     10     4
    999      2011-08-08     10     1
    999      2011-09-08     10     2
    999      2011-10-08     10     3
    *9999     2011-08-08     0     1*
    9999     2011-08-08     10     2
    9999     2011-09-08     15     3
    9999     2011-10-08     10     4
    I can do this using a loop procedure, but I want a filter query. ;)

    Thanks in advance.
    Filipe Almeida

    Hi, Felipe,.

    So, you want multiple copies of a few lines. In other words, if a value or rnk (RANK is not a column name right) is missing in a given id you want to with the next highest rnk and the same id line repeated 2 or maybe even several times. All copies will be identical, except that rnk will have the missing numbers, and the value will be 0 on all additional copies.

    A way to do that is to join your table (or something very similar to it, as in the example below) to a Meter of Table , which is a table (or a result set, in this example) counts 1, 2, 3,... up to however many copies may be required.

    WITH     got_rows_needed          AS
    (
         SELECT     id, date_ini, value, rnk
         ,     rnk - LAG (rnk, 1, 0) OVER ( PARTITION BY  id
                                                ORDER BY          rnk
                                )         AS rows_needed
         FROM    taba
    )
    ,     cntr               AS
    (
         SELECT     LEVEL - 1     AS n
         FROM     (
                   SELECT     MAX (rows_needed)     AS max_rows_needed
                   FROM     got_rows_needed
              )
         CONNECT BY     LEVEL <= max_rows_needed
    )
    SELECT    r.id
    ,       r.date_ini
    ,       CASE
              WHEN  c.n  = 0
              THEN  r.value
              ELSE  0
             END               AS value
    ,       r.rnk - c.n          AS rnk
    FROM       got_rows_needed  r
    JOIN       cntr             c     ON  c.n  < r.rows_needed
    ORDER BY  id
    ,            rnk
    ;
    

    By elsewhere, store date information in a VARCHAR2 column, such as date_ini, is a very bad idea. Use a DATE column.

    Published by: Frank Kulash, August 8, 2012 11:02

    RANK is a keyword from Oracle. (It is the name of a built-in function). If you specify your own columns of RANK, it will confuse people reading the code, and it can result in compiler errors, too.
    ID is also an Oracle keyword. To be sure, you can use another name, such as grp_id, instead of id.
    It is best not to name your own objects with any name of fArrondi in v$ reserrved_words.keyword.

  • I do not understand this statement "It is a good idea to keep track that uses a bunch of Audio channels selected in the arrange window, unless you actively play or record on a software Instrument."

    It's a good idea to keep track that uses a bunch of Audio channels selected in the arrange window, unless you actively play or record on a software Instrument.

    Which no longer applies in Logic Pro X 10.2.3. In old versions of logic, selecting a range with a software instrument automatically would make this instrument in "Live" mode, which means that the instrument has begun to transform any MIDI in sound with a minimum of delay. This direct mode becomes an instrument need CPU power (on a single processor) and peut overload the audio engine. It is a waste of CPU if there is no direct game. Then select an audio track would ensure that No instrument is in direct mode. Now (LPX 10.2.2 or more) in direct mode can be turned on or off on a track, chosen or not - it is the R button on the track header.

  • Make the midi recording when the track is not selected

    Hi, asking for my friend and will try and find a solution when I get home, but...

    My friend (using logic 9.1.8) made some record with about 12 actors/singers alive. I suggested to him that he must save the midi for keyboard player (who is also the composer of all parts) as well as the audio just to give them some flexibility later. It is a great keyboard player and uses its own external keyboard. (i.e. not logic instrument). All the other singers/actors are all audio.

    So it is easy to implement but as such sessions can become a little hectic and although the midi for keyboard track is in record mode, the midi does not record unless the track is selected on the left. Sometimes, in the madness of him the entire midi track remains not selected and if the midi data does not get saved. Is it possible to routing in the environment where the midi will get recorded although the midi track is not selected? Don't forget, the midi track is always made armed.

    Thank you very much

    Looks like you entered only followed for the targeted track has allowed...

    This picture isn't in X 9 - but it's the same setting...

    Make sure that this is not the case-

  • In the latest version of MF, there is a missing button, who was in the previous version: between backward/forward buttons and the bar hits there was little flash, who showed a few recent pages I just went through. How can I restore it?

    In the latest version of MF, there is a missing button, who was in the previous version: between backward/forward buttons and the bar hits there was little flash, who showed a few recent pages I just went through. How can I restore it?

    If you mean the drop marker so you can always get history buttons front and rear, if necessary by left clicking and for a second, or by right-clicking on them.

    If you want to continue the brand drop there too there is that Extension to https://addons.mozilla.org/en-US/firefox/addon/backforward-dropmarker/

    Also the abbreviation for Firefox is Fx

  • Select the last record of each month

    Hello

    to select the last docnumber and qty of every month

    Structure

    Name Null?    Type

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

    PRODUCTCODE NUMBER

    NUMBER NUMBER

    DATE OF PLANFORMONTH

    NUMBER OF CLEXPECTEDQTY

    NUMBER OF CLCONFIRMQTY

    NUMBER OF CLFGBUFFERQTY

    NUMBER OF CLTOTPRINTBUFFER

    in this select query if I take the sum he required all records where, as I want the last record of each month

    SELECT productcode docnumber MAX (Number), planformonth, SUM (clexpectedqty) clexpectedqty (planformonth) MAX.

    SUM (clconfirmqty) clconfirmqty, SUM (clfgbufferqty) clfgbufferqty, cltotprintbuffer OF FGSALESPLAN of the SUM (cltotprintbuffer)

    GROUP BY productcode, (planformonth)

    Sandy

    Hello

    Thanks its working now the code is written as below:

    SELECT * FROM

    (SELECT

    e.*,

    ROW_NUMBER() OVER (partition by PRODUCTCODE by DOCNUMBER DESC order) r

    Of

    E FGSALESPLAN)

    WHERE r = 1 AND

    entryvalid = 'Y '.

    order by Number

    Sandy

  • How the records are selected in the database

    Hello

    How the records are selected in the database


    Thank you.

    Read articles on JDBC, here is what I understand...

    If I set LignesMax = 1 (in out select adapter DB) and I have 30 record in the table that satisfy the select query then what line is picked up? the first in the table or randomly any folder?

    The query returns the first line of the result set.  Not just a random line.  However, to get the rows to return in the result set in a specific order, you must include an order by clause, or the query will return rows in random order.

    And if I set LignesMax = 0 (unbounded, means any number registration) in this case if my select query satisfy 100 million documents so all million records will be picked up once, in one cycle?

    The answer to this depends on the size of the extraction of the query.  If the size of the extraction is > = 100 million, everything goes back in a single cycle of the DB.  If< 100="" million,="" then="" it="" will="" be="" divided="" into="" multiple="" trips="" to="" the="">

  • What is the difference between count (1) selection of the tab and select count (*) tab;

    What is the difference between count (1) selection of the tab and select count (*) tab;

    994122 wrote:

    Hello

    SQL > set timing on

    SQL > select count (*) of the emp

    2 where deptno = 30;

    COUNT (*)

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

    6

    Elapsed time: 00:00:00.01

    SQL > select count (1) of the emp

    2 * where deptno = 30

    SQL > /.

    COUNT (1)

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

    6

    Elapsed time: 00:00:00.01

    See that both give the same time

    Do you really think the 100th's of a second it takes 6 rows from counting will truly representative of the difference it takes actually?

    Such a small data set cannot possibly show no difference to these larger units of time (in the calculation of terms where we have millions of instructions per second in lieu)

    As the link to the FAQ provided in the response of Anton (first response on this thread) Watch, count (1) and count (*) are essentially the same, except that count (1) actually get re-written by the query re - write the step of the optimization to make it count (*).

    Generally 'count (*)' makes more sense language, because it reads like "count" while "count (1)" reads as "count we ', which does not have as much good sense when you actually count all.

  • Insert selected in several checked uncheck the delete record

    Hi all

    I have a detailed block I add a checkbox not database once check the records is inserted into the temporary table

    the same records uncheck the box delete records

    IAM has inserted when checking the records of the table

    but when I have a check only check all records are deleted in my temporary table

    WHEN-BOX-CHANGE

    declare

    v_app_user_id integer (10);

    number of v_count;

    Start

    v_app_user_id: = dtc_util.get_global_value('dtc_global.user_id');

    go_block ('RULE_ITEM');

    premier_enregistrement;

    loop

    SELECT count (1) in the dtc_rule_item_lock v_count

    where rule_item_id =: rule_item.rule_item_id;

    If Checkbox_Checked ('rule_item.checkout') and v_count = 0 then

    insert into dtc_rule_item_lock values (:rule_item.rule_item_id, v_app_user_id, sysdate);

    ELSIF: RULE_ITEM. BOX = 'n' then

    DELETE FROM dtc_rule_item_lock

    where exists (select 'x' from dtc_rule_item dtcl

    where dtcl.rule_item_id =: rule_item.rule_item_id);

    end if;

    When the output: system.last_record = "TRUE";

    next_record;

    end loop;

    premier_enregistrement;

    If form_success or sqlcode = 0 then

    message ("documents saved successfully in the database '");

    message (' ', no_acknowledge);

    FORMS_DDL ('COMMIT');

    on the other

    message ("error saving documents: ' |") SQLERRM);

    message (' ', no_acknowledge);

    end if;

    end;

    Let me help you for this

    Thank you

    Olivier

    I guess there is the clause does not. You check against dtc_rule_item, I guess that is dtc_rule_item_lock.

Maybe you are looking for

  • Legitimate website inaccessible

    I'm trying to access a website from home.  This site should give me the opportunity to complete some of my work of office required at home.  I work for the veteran's Administration.   I keep getting the message that this site is not accessible.   Oth

  • the maximum output nest

    Hello Labviewers, I am using the PID function for the proportions of 2 components in a tank of an agreement. As input, I have a variable related to the color of the liquid and the output a Retiro between 2 of the liquid ingredients. The problem that

  • I want to find the Properties menu

    but when I click on an open part of the high office he has not just upward it please tell me how to open it

  • The Task Manager does not work properly

    My admin task manager does not work properly... its not showing menu bars and process... what should I do now?

  • Vs native Web

    What are the things that can be achieved by using a native application that cannot be done with a web app?