explain the nvl in the not exists

Hello

I try inserting sample_sender table sample_receiver

CREATE TABLE sample_sender

(

A_ID NUMBER,

b_id NUMBER,

sum_total NUMBER,

NUMBER of sum_toatal2

code VARCHAR2 (6).

default_value NUMBER

);

(1) insert into sample_sender values (10,11,100,120, NULL, NULL);

(2) insert into sample_sender values (10,11,100,120, NULL, 1);

4)

CREATE TABLE sample_receiver

(

A_ID NUMBER,

b_id NUMBER,

sum_total NUMBER,

NUMBER of sum_toatal2

code VARCHAR2 (6).

default_value NUMBER

);

5)

INSERT INTO sample_receiver

(

A_ID,

b_id,

sum_total,

sum_toatal2,

code,

default_value

)

SELECT a.a_id,

a.b_id,

a.sum_total,

a.sum_toatal2,

a.code,

a.default_value

OF sample_sender one

WHERE THERE IS NO

(

SELECT 1 b sample_receiver

WHERE a.a_id = b.a_id

AND a.b_id = b.b_id

-AND NVL(a.code,'X') = NVL(b.code,'X')

-AND NVL(a.default_value,-1) = NVL (b.default_value-1)

);


First I used the 1st insert command

so my sample_sender table has 1 row and my line of table 1 sample_receiver

and I tried once again inserted with the 2nd order insertion so my sample_sender table has 2 rows and my sample_receiver line of the table only 1 who is ranked Exist

That ' S why we can NVL used, but I want to know how TI NVL works here?


Thank you

Post edited by: additional Message added to Rajesh123

Hello Renon,

It seems to me that your problem is the absence of primary key of the SAMPLE_RECEIVER - I would say that PK should probably be on (a_id, b_id).

Your INSERTION try inserting "everything which is in sample_sender and is not yet in sample_receiver ', but with a PK on (a_id, b_id) the condition would simply be

INSERT INTO...

SELECT...

A

WHERE DOES NOT EXIST (SELECT 1

B

WHERE a.a_id = b.a_id

AND a.b_id = b.b_id

)

But if there is no PK on the table (and not even a UNIQUE index on (a_id, b_id)), it seems that people have stated that a way to uniquely identify a line had to use (allocation a_id, b_id, code, default_value), with the added complexity that the code and default_value can be NULL ((BTW in your definition and b_id a_id allocation table can also be NULL... I guess that it is a mistake and that the fields are declared as NOT NULL)).

And conditions with NULL values are a bit complicated as for example a.code = b.code is NOT 'true' if the code is NULL (even if it is null, both for a and b).

So to compare the 'code', common sense is: a.code = b.code OR a.code IS NULL AND b.code IS NULL

In your post, this was changed in NVL (a.code, 'X') = NVL (b.code, 'X') which is not really the same thing... It's OK only if 'X' is 'impossible value' for the 'code' (otherwise if you're unlucky, you might have a row with a.code = 'X' and b.code = NULL and the test will judge that they are 'the same').

Same remark with the value - 1 for default_value.

Suggestion: check the definitions of table for "NOT NULL", and if possible (it should always be possible) defines a key primary on the tables so that the conditions use simple equal. (reminder: a PK columns are "NOT NULL")

Best regards

Bruno Vroman.

Tags: Database

Similar Questions

  • Understanding behavior of the not exists Clause

    I do not understand why the following selects does not produce the same result set. First, I did not write and the second that I did:

    Select ftvorgn_orgn_code, ftvorgn_eff_date, ftvorgn_nchg_date

    of ftvorgn one

    where a.ftvorgn_eff_date > (sysdate - 300)

    and not exists (select ' x'

    of ftvorgn b

    When trunc (b.ftvorgn_nchg_date) = trunc (a.ftvorgn_eff_date)

    and b.ftvorgn_orgn_code = a.ftvorgn_orgn_code);

    Select ftvorgn_orgn_code, ftvorgn_eff_date, ftvorgn_nchg_date

    of ftvorgn

    where ftvorgn_eff_date > (sysdate - 300)

    and trunc (ftvorgn_nchg_date)! = trunc (ftvorgn_eff_date);

    The second produced a result set of 35 lines, while the first one returns only 4 lines that are a subset of the second result set.

    I would like to understand the difference between the two queries.

    The second query compares trunc (ftvorgn_nchg_date) and trunc (ftvorgn_eff_date) on the same line; the first query checks the lines with the same ftvorgn_orgn_code. If it finds a match on another line, then the current line will not be selected. This is the reason why she returns fewer rows than the other.

  • How to use the not exists query

    Hello

    Using obiee 11g,.
    I would like to know how treat does not exist the application in the obiee11g,

    the query is like that

    Select count (a.col1), a.col2 from table1, table2 b where a.col1 = b.col1
    and not exists
    (by selecting d.col1 in table 3, table 4 e)
    where d.col1 = e.col1 and d.col1 = a.col1)
    A.col2 Group

    There are 4 tables.
    Table1, table2, table 3, tabel4

    That's what I need in a report, these tables are used in other places also.
    prefer if possible to do an analysis of i.e.e report itself.
    If this isn't possible then can be in Dr. because if I change in RPD it can reflect all the places
    and not in a report itself.

    Thank you

    This implementation in the report itself can be a difficult and tedious work... But it is better to be RPD - physical type - select a Table
    USE NOT IN in place of NOT exist... You can just use a SELECT statement to SELECT the TYPE of TABLE

    I hope that's clear

  • That IS NULL is done by replacing the NOT EXISTS operator with an outer join?

    DB version: 10 gr 2

    An example of searchoracle.target.com

    The query that contains a NOT EXISTS operator
    SELECT M.ModulId, M.Modul FROM MODULE M
    WHERE NOT EXISTS
    ( SELECT PROJEKTMODUL.IdModul 
      FROM PROJEKTMODUL 
      WHERE M.ModulId = PROJEKTMODUL.IdModul 
      AND PROJEKTMODUL.IdProjekt = 23 )
    is replaced by an equivalent outer join query
    select distinct
           M.ModulId
         , M.Modul 
      from MODULE M
    left outer
      join PROJEKTMODUL
        on M.ModulId = PROJEKTMODUL.IdModul
       and PROJEKTMODUL.IdProjekt = 23
     where PROJEKTMODUL.IdProjekt is null
    I do not understand what
    PROJEKTMODUL.IdProjekt is null
    fact in the above rewritten query.

    He is to perform an anti-jointure. As far as I know Oracle (starting with version 10g - I thought that release 1) rewritten a Join Anti that resembles your second query of your request NOT EXISTS and NOT IN.

    Look at the results of the query without the predicate IS NULL and see what records (from this set) must be selected to show the same results as the first query. Areas of interest match the predicate IS NULL.

  • Not Exists works not

    I'm trying to get a list of menu choice for a responsibility.

    If I run the following without the Not exists sql code I get the results below showing the entrance, under providers, banks, etc.. Entry is excluded from this responsibility and are not the case of the banks.

    Select r.RESPONSIBILITY_ID away r.responsibility_name, menu1, sub1, prompt1 fme1.prompt fme1.sub_menu_id fme1.menu_id,.
    Sub2 menu2, fme2.sub_menu_id FME2.menu_id, fme2.prompt orders2, fme2.function_id fun2
    of fnd_responsibility_vl r, fnd_menu_entries_vl fme1, fnd_menu_entries_vl wwf2
    where are.menu_id = fme1.menu_id
    and r.responsibility_name = "ASPT to THE AP Manager"
    and fme1. SUB_MENU_ID = fme2.menu_id
    and fme1.prompt is not null
    and fme2.prompt is not null


    RES_ID RES NAME Menu1, Menu2 Sub1 Sub2 prompt prompt function2

    50281 ASPT to THE AP Manager 68030 68015 suppliers 68015 68238 entry 1348
    68015 68015 68238 ASPT 50281 to THE AP providers consultation Manager 68030 2252
    50281 ASPT to THE AP Manager 68030 68015 suppliers 68015 provider merge 1055
    50281 ASPT to THE AP Manager 68030 68015 68015 68196 suppliers banks 1066
    50281 ASPT to THE AP Manager 68030 68015 suppliers 68015 77218 others


    But when I run with the

    and NOT Exists (select action_id fnd_resp_Functions
    where responsibility_id = r.responsibility_id
    and fme2.function_id = action_id or fme2.menu_id = action_id or fme2.sub_menu_id = action_id)

    The entry does not appear, this is correct, but banks does not appear and should be:

    68015 68015 68238 ASPT 50281 to THE AP providers consultation Manager 68030 2252
    50281 ASPT to THE AP Manager 68030 68015 suppliers 68015 provider merge 1055
    50281 ASPT to THE AP Manager 68030 68015 suppliers 68015 77218 others

    The following query shows that there is no exclusion of the banks menu or functions:

    Select count (*) in fnd_resp_functions
    where responsibility_id = 50281
    and action_id in (68030,68015,1066,68196)

    Count = 0

    You might have a problem with the parenthesis.

    Try like this:

    ...
    and NOT Exists(select null from fnd_resp_Functions
                   where responsibility_id = r.responsibility_id
                   and (fme2.function_id=action_id or fme2.menu_id = action_id or fme2.sub_menu_id = action_id))
    

    or

    ...
    and NOT Exists(select null from fnd_resp_Functions
                   where responsibility_id = r.responsibility_id
                   and action_id in (fme2.function_id, fme2.menu_id, fme2.sub_menu_id))
    

    Explanation: the AND operator has a higher precedence than the OR operator. So you must always set the parentheses () when you mix AND and OR conditions. Just to be on the safe side.

    Published by: Sven w. on October 21, 2008 16:50

  • Satellite P10 - after installing XP, the SD card reader does not exist

    I formatted my Satellite P10 and complete nine with XP SP1 installed. Since that time the integrated SD card reader no longer exists in the system (when I insert an SD card it doesn't work). Is this a problem with a driver or what can be the problem?

    Before formatting, it's normal. Pleas explain easily. I'm not a professional user.

    Hello

    What drive did you use to reinstall Windows XP? If you use the Toshiba recovery disc are all drivers and pre-installed tools because the disc contains a picture of the factory settings.

    In your case, I would try to install the latest driver for the European driver of Toshiba download page card reader. Maybe it's just a driver problem you s wrote:
    http://EU.computers.Toshiba-Europe.com > support & downloads > download drivers

    I m wondering that you only use the SP1 for XP. SP2 or SP3 new contains a lot of important security updates. I recommend you to update your XP version.

    Welcome them

  • The Apple showing in the page settings of ICloud ID does not go and watch my old email address that does not exist as an Apple ID.

    ID showing in the page settings of ICloud Apple won't and watch my old email address that does not exist in the Apple continues to him I identification code is required to sign in this old apple ID, but when I try to reset the password of the site Web of Apple tells me that this 'old' email address is not a piece of identification If that makes sense. I tried to disconnect from ICloud, but always keep asking the password sign to find my Ipad.

    I know my good Apple ID and password and have checked the details on Apple's site that shows the Ipad on the list of devices.

    The Ipad will connect has WiFi and I took it at John Lewis today where I bought it and they think that the problem is being caused by this problem of ID.

    Another that take it to the Apple store, anyone have any suggestions please?

    Welcome to the Apple community.

    If you are unable to remember your password, security issues, do not have access to your address of rescue or are unable to reset your password for any reason, your only option is to contact the Support of Apple ID, to speak to an operator you should explain that your problem is related to your Apple ID This way you can be attributed to the assistance, even if you do not have an AppleCare plan.

    You will need to be patient with the process and to be ready to prove without doubt that the account belongs to you. Do not expect access to be restored immediately and if you are not the owner of the Apple ID saved to the device the account will not be reset.

  • IPM. The weblogic user does not exist in the policy store

    We cannot connect to the MPI with the error: the weblogic user does not exist in the policy store.

    I updated COE field to add the Capture and Imaging.

    We have 11.1.1.8 patched with more late installed environment

    Related to the AD and SSO configured (kerberos)

    Providers are:

    SSO - provider WebLogic negotiate identity Assertion

    OrangeAD - provider that performs LDAP authentication

    DefaultAuthenticator - WebLogic authentication provider

    DefaultIdentityAsserter - provider of assertion of identity WebLogic

    Control for OrangeAD and DefaultAuthenticator flag is SUFFICIENT

    There is no problem with Capture (include SSO)

    Refreshment of the IPM security not solved the problem

    In the discussion that I found said that weblogic user must be added to the provider (AD in my case):

    https://community.Oracle.com/thread/2615536

    Should I do this?

    Is that it can be cause of problems for rest UCM, Capture, Admin servers?

    Thank you

    Leon

    Let me explain here:

    The link that you pointed out only responds by me

    Connection IPM problems

    By default, the WebCenter JpsProvider calls / user role API to retrieve a list of roles that a user is a member. API/user role Gets a list of roles from the leading provider of authentication and ignores other authentication providers.

    The Weblogic jps can be configured so that the user/role API goes against all configured authentication providers. This by adding a property, virtualize and it's true

    From the Enterprise Manager domain

    1. in a browser, go to the page of Weblogic Enterprise Manager

    The URL will usually be something like: http://YourDomainSystem:7001 / em

    2 expand Weblogic domain

    3 right-click the field, and then select security--> security provider Configuration

    4. click on the box to extend the identity store provider.

    5. click on the button set up

    6. in the custom properties, click the Add button.

    7. in the name of property filed enter: virtualize

    8. in the value field, enter: true

    9. click on the OK button

    10 restart the Weblogic Admin Server and the server managed by WCC

    Please find below the Agency's response all risks

    http://www.Ateam-Oracle.com/WebCenter-content-imaging-and-multiple-identity-providers-the-virtualization-issue/

    Thank you

    Ranjan

  • ORA-14030: partitioning column does not exist in the CREATE TABLE statement

    Hi all

    We are trying to create a partition materialized view and get an error below.
    ORA-14030: partitioning column does not exist in the CREATE TABLE statement
    Our GL_BALANCES21 and GL_CODE_COMBINATIONS21 base tables is already divided by interval of the range on Code_combination_id.
    In the same way that we try to partition the view materialized
    We get the error.
    ORA-14030: partitioning column does not exist in the CREATE TABLE statement
    Where the clause there are 4 tables gl_balances21, gl_code_combinations21, gl_periods and gl_set_of_books.


    CREATE MATERIALIZED VIEW apps. BAL_PART
    PARTITION BY RANGE ("CODE_COMBINATION_ID")
    (SCORE LOWER (80000) VALUES,
    PARTITION OF LOWER VALUES (160000),
    PARTITION OF LOWER VALUES (240000),
    PARTITION OF LOWER VALUES (320000),
    PARTITION OF LOWER VALUES (400000),
    PARTITION OF LOWER VALUES (480000),
    PARTITION OF LOWER VALUES (560000),
    PARTITION OF LOWER VALUES (640000),
    PARTITION OF LOWER VALUES (720000),
    PARTITION OF VALUES LESS THAN (800000),
    PARTITION OF LOWER VALUES (880000),
    PARTITION OF LOWER VALUES (960000),
    PARTITION OF VALUES LESS THAN (10400000),
    PARTITION OF LOWER VALUES (11200000),
    PARTITION OF LOWER VALUES (12000000),
    PARTITION OF LOWER VALUES (12800000),
    PARTITION OF VALUES LESS THAN (13600000),
    PARTITION OF LOWER VALUES (14400000),
    PARTITION OF VALUES LESS THAN (15200000),
    PARTITION OF LOWER VALUES (16000000),
    PARTITION OF VALUES LESS THAN (16800000),
    PARTITION OF VALUES LESS THAN (17600000),
    PARTITION OF VALUES LESS THAN (18400000),
    PARTITION OF VALUES LESS THAN (19200000),
    PARTITION OF LOWER VALUES (20000000),
    PARTITION OF VALUES LESS THAN (20800000),
    PARTITION OF VALUES LESS THAN (21600000),
    PARTITION OF VALUES LESS THAN (22400000),
    PARTITION OF VALUES LESS THAN (23200000),
    PARTITION OF LOWER VALUES (24000000),
    PARTITION OF VALUES LESS THAN (24800000),
    PARTITION OF VALUES LESS THAN (25600000),
    PARTITION OF VALUES LESS THAN (26400000),
    PARTITION OF LOWER VALUES (27200000),
    PARTITION OF LOWER VALUES (28000000),
    PARTITION OF VALUES LESS THAN (28800000),
    PARTITION OF VALUES LESS THAN (29600000),
    PARTITION OF VALUES LESS THAN (30400000),
    PARTITION VALUES LESS THAN (MAXVALUE))
    QUICKLY REFRESH ON DEMAND
    SELECT the QUERY REWRITE as
    SELECT GL.GL_CODE_COMBINATIONS21. ROWID C1,
    GL.GL_BALANCES21. ROWID C2,
    "GL". "" GL_BALANCES21 ". "" ACTUAL_FLAG, "
    "GL". "" GL_BALANCES21 ". "" CURRENCY_CODE "
    "GL". "" GL_BALANCES21 ". "" PERIOD_NUM, "
    "GL". "" GL_BALANCES21 ". "" PERIOD_YEAR ".
    "GL". "" GL_BALANCES21 ". "" SET_OF_BOOKS_ID ""SOB_ID"
    "GL". "" GL_CODE_COMBINATIONS21 ". "" CODE_COMBINATION_ID ""CCID.
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT1 ",.
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT10, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" DIRECTION11, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT12, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT13, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT14, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT2 ",.
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT3. "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT4, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT5, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT6, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT7. "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT8, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT9, "
    "GL". "" "" GL_PERIODS '. "" PERIOD_NAME,"
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_CR', 0) Open_Bal_Cr,
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_CR', 0) +.
    NVL ("GL". "GL_BALANCES21" "." " (PERIOD_NET_CR', 0) Close_Bal_Cr,
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_DR', 0) Open_Bal_Dr,
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_DR', 0) +.
    NVL ("GL". "GL_BALANCES21" "." " (PERIOD_NET_DR', 0) Close_Bal_Dr,
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_DR', 0).
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_CR', 0) Open_Bal,
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_DR', 0).
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_CR', 0) +.
    NVL ("GL". "GL_BALANCES21" "." " (PERIOD_NET_DR', 0).
    NVL ("GL". "GL_BALANCES21" "." " (PERIOD_NET_CR', 0) Close_Bal,
    NVL ("GL". "GL_BALANCES21" "." " (PERIOD_NET_CR', 0) Period_Cr,
    NVL ("GL". "GL_BALANCES21" "." " (PERIOD_NET_DR', 0) Period_Dr
    OF GL.GL_CODE_COMBINATIONS21.
    GL.GL_BALANCES21,
    GL.GL_SETS_OF_BOOKS,
    GL.GL_PERIODS
    WHERE GL.GL_BALANCES21. CODE_COMBINATION_ID = GL.GL_CODE_COMBINATIONS21. CODE_COMBINATION_ID
    AND GL.GL_SETS_OF_BOOKS. SET_OF_BOOKS_ID = GL.GL_BALANCES21. SET_OF_BOOKS_ID
    AND GL.GL_PERIODS. PERIOD_NUM = GL.GL_BALANCES21. PERIOD_NUM
    AND GL.GL_PERIODS. PERIOD_YEAR = GL.GL_BALANCES21. PERIOD_YEAR
    AND GL.GL_PERIODS. PERIOD_TYPE = GL.GL_BALANCES21. PERIOD_TYPE
    AND GL.GL_PERIODS. PERIOD_NAME = GL.GL_BALANCES21. PERIOD_NAME
    AND GL.GL_PERIODS. PERIOD_SET_NAME = GL.GL_SETS_OF_BOOKS. PERIOD_SET_NAME
    and gl.GL_CODE_COMBINATIONS21.summary_flag! = « Y »

    ERROR on line 54:
    ORA-01013: user has requested the cancellation of the current operation

    I checked the metalink note saying that ensure that all columns in a partitioning column list are columns of
    the table being created.

    Partition is already there, on the column of code_combination_id of gl_balances21 and gl_code_combinations21.

    Please suggest.

    Thank you

    It's your mistake:

    PARTITION BY RANGE ("CODE_COMBINATION_ID") 
    

    but in your projection of column list, you have an alias he:

    "GL"."GL_CODE_COMBINATIONS21"."CODE_COMBINATION_ID" "CCID",
    

    You must use the alias as a partition key, not the name fom the secondary table column.
    --
    John Watson
    Oracle Certified Master s/n
    http://skillbuilders.com

  • Error 1327.Invalid Drive: G:\ mapped to a user folder. The drive does not exist or could not be conn

    Error 1327.Invalid Drive: G:\ mapped to a user folder. The drive does not exist or could not be connected. You can disconnect the drive or reassign the drive letter. For details see http://kb2.adobe.com/cps/404/kb404946.html

    Hi jamal d w,.

    Please see the KB Doc to install error 1327. "Invalid drive" | CS4, CS5, Acrobat Reader | Windows - ive.html http://helpx.adobe.com/creative-suite/kb/install-error-1327-invalid-dr which explains how to solve your current problem.

  • Please help about the FRM-47023 - parameter does not exist in form

    Dear all,

    Best wishes...

    I'm currently doing some additions to existing forms.

    in fact, I have two forms, form and b. (form A) based on the tables and B form based on table B

    Existing scenario.

    Formula A-> table A contains the columns as

    A1Col1 - Primary key
    A1Col2 - Primary key
    A1Col3 - Primary key
    A1Col4 - Primay key
    A1Col5
    A1Col6

    Form B-> table B

    B1Col1 = A1Col1
    B1Col2 = A1Col2
    B1Col3 = A1Col3
    B1Col4 = B1Col4 (this is newly added column in TableB and form present I do not have this relationship, so I
    Add an element of text in form B and made it point to databases and give the coloumn name)
    B1Col5
    B1Col6


    Existing features:

    Form A is the main form and there is a button pressed, it will pass (A1Col1 parameters
    A1Col2, A1Col3 to the B shape based on what form B will ask details.

    Existing for this push in FormA button code is:
    DECLARE
      pl_id   ParamList;
      pl_name VARCHAR2(15) := 'ls_parm_list';
    BEGIN
      if :TableA.A1Col1 > ' ' and
         :TableA.A1Col2 > ' '   and
         :TableA.A1Col3 > ' '    and
         :TableA.A1Col4 > ' '     then (-- (newly added line for current requirement)

          pl_id := Get_Parameter_List(pl_name);

          if NOT Id_Null(pl_id) then
              Destroy_Parameter_List(pl_id);
          end if;

          pl_id := Create_Parameter_List(pl_name);

          Add_Parameter(pl_id,'A1Col1',TEXT_PARAMETER,:TableA.A1Col1);
          Add_Parameter(pl_id,'A1Col2',TEXT_PARAMETER,:TableA.A1Col2);
          Add_Parameter(pl_id,'A1Col3',TEXT_PARAMETER,:TableA.A1Col4);
          Add_Parameter(pl_id,'A1Col4',TEXT_PARAMETER,:TableA.A1Col3); -- (newly added line for current requirement)
          Add_Parameter(pl_id,'A1Col5',TEXT_PARAMETER,:PARAMETER.UID);

          NEW_FORM('FormB',TO_SAVEPOINT,NO_QUERY_ONLY,pl_id);
      end if;
    END;
    Code for the new instance of the form to FormB:
    DECLARE
      W_WHERE VARCHAR2(100);
    BEGIN
      if :PARAMETER.Param1 > ' ' then
          W_WHERE := 'B1col1=''' || :PARAMETER.param1 || ''' AND B1col2=''' || :PARAMETER.param3 || ''' AND B1col3 =''' || :PARAMETER.param4 || ''' AND B1col4=''' || :PARAMETER.Param4 || '''';

          Set_Block_Property('TableB',DEFAULT_WHERE,W_WHERE);

          execute_query;

          Set_Block_Property('TableB',DEFAULT_WHERE,'');
      end if;

      :SYSTEM.MESSAGE_LEVEL := 25;
    END;
    So now,.

    New features:

    I need to spend an additional column in TableA (A1Col4) also a parameter to form B so that it will be in the where clause of the form B.

    To achieve this requirment,

    Step 1:

    Step 1: I added B1Col4 to TableB because it did not exist before.

    Step 2: I added a text element in FormB, named as "A1Col4" and set its property to iterm Yes to Database and columname to A1Col4.

    And then I created a setting called "' A1Col4" to FormB (this iis since I added a new setting FormA pressed button code above)... ".

    Now, the real problem I am facing:

    I have compiled the forms, and it went well... I ran the FormA... Here are the scenarios:

    1. formA is running and when I run the query, it performs gets data, when press the button go form B (to all 4 parameters to formb, I get error. FRM 47023 No. such parameter named A1col4 exists in FormB. even though I have the parameter b form created recently with this name.

    2. so I just kept the existing code button pressed (commented on newly added lines, keeping the 3 parameters instead of 4) and removed "' AND B1col4 =" ' | : PARAMETER. Param4 | "' from the whennewform code instance formb, the result is: FormA call FormsB successfully, FormB is to be opened, BUT VERY STRANGE, THAT NEWLY ADDED POINT (COLUMN TABLEB THAT I wanted TO PASS ADDITIONAL PARAMETER FROM FORM 'A') IS MISSING. This text element appears not.


    3. If I run FormB alone, then it is querying data, the newly added text element is also displayed but if if I have the same call FormA, error FRM-47023.

    I sat for hours and hours to find out what exactly the problem... but no clue...

    Sorry for the long post... but in hope and who seek the help of our friends from the OTN network...

    Hope that I have explained clearly the problem... By the way that the version is 10G forms.

    Thanks for the help in advance for everyone...

    Kind regards
    Prasanth

    they are in the same folder

    If you're on 10G, being in the same folder does not mean automatically that the forms be made on this issue. In your EPS file, there is a parameter named FORMS_PATH, forms are searched for in directories listed there. To verify your env file. also, you could search the entire disk by issuing a

    dir formb.fmx /s
    

    from the root directory of your disks.

  • NEGATIVE / NO / not exists - which is the best

    Dear all,

    I have to run to delete records parent and child on the production database that has very large amount of data (in millions of records) on Oracle10g. Scripts are currently using INs NOT to delete records of child as below:

    delete from T1 where T1.x is not null and T1.x not in (select x T2);

    I was intending to change it to:

    removing the T1 where T1.x is not null and not in T1.x (select x from T2 where x is NOT NULL);

    Could someone help me please with a better way to write this? It will be faster if I use LESS or NOT Exists on NOT IN?

    Sorry to bother you all with the basic question, but there don't seem to be a specific rule for the use of a higher (may be because Oracle10g uses CBO)?.

    Any help is appreciated and thanks in advance.

    It doesn't seem to be a specific rule for the use of a higher

    There is always 2 responses that are always true:

    -Depends on
    -Why?

    See f.i.: http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:1794145000346577404 #1796559000346100662

    In your case, the first answer applies.
    You should TEST the best solution, there is no general rules regarding finding 'the best' a.
    It depends on your data, selectivity your index, statistics etc. etc..

    Just measure (explain the plan, trace, tkprof) and test different scenarios and you will find the best solution that works for you.

  • Error message about the folder drafts ("mailbox does not exist")

    Hi, after having added a third account to my office of Thunderbird, I receive the Error Message after 30 seconds or more:
    "the current operation on the drafts did not. "the e-mail server for account [email protected] replied: there is no mailbox.
    Can anyone help solve this? Sending and receiving mail seem to work perfectly.
    Thank you very much
    Eli

    The current path to store such projects as configured in Thunderbird may not correspond to your IMAP server folders.

    Check first if you subscribe or if the folder exists on the server, then check if it is correctly configured in your account settings, as shown in the attached two screenshots.

  • Problems with the e-mails that do not exist

    Hello
    I had a problem when sending many emails. The database of my company that I use is old and often emails that are there do not exist, and when I send the error msg like 300 or more emails any user who does not exist interrupts the transmission. It is therefore worrying.

    How to make Thunderbird to ignore these messages and send mails on another account?

    Thunderbird is not a marketing engine, it is designed for use of personal mail.

    Sending mail in volumes you mention is a violation of the terms of use of almost every ISP in the world and will probably see your black mail server listed.

    As much the corking, Thunderbird wants to make sure that you understand that your mailing list is rubbish. Otherwise, we get complaints that the mail has not been delivered.

    Anyway, to take Thunderbird in offline mode by clicking on the icon in the lower left corner, your mail and then take it online. by clicking on the same icon again.

  • shock wave. This application requires Xtra (text), which either do not exist or initialization failed, make sure that appropriate Xtras are in the Xtras folder

    Shockwave for Director 12.1.1.151 does not start, just with that. This application requires Xtra (text), which either do not exist or initialization failed, make sure that appropriate Xtras are in the Xtras folder. Reinstalled but made no difference. If you can help would be grateful. Thank you.

    I restored my computer to an earlier version, installed latest version of firefox and the Shockwave for Director, everything is fine now. Thanks for your help guigs2.

Maybe you are looking for

  • NO MATTER WHAT SOMEONE SAYS, VOSTERAN RESEARCH IS THE DOWNLOAD OF FIREFOX

    WHENEVER I HAVE DOWNLOAD FIREFOX, IT TAKES ME LOOKING FOR VOSTERAN.

  • OfficeJet pro 8600: officejet pro 8600

    We just put this printer in our office.  After you insert the Setup disk into the computer, it refuses to accept our operating system.  We are on Windows XP and just improved to 10.  The installation of the said printer we are outdated and we need to

  • Replacing the screen

    Hello world I'm new to the forum and I have a question... my Pavilion DV7 Notebook PC audio editing Beats screen has a crack inside and I am looking for a replacement screen, but I want to make sure I get the correct replacement screen. I have i7 2.3

  • Lenovo 3000 Y410 - How portable bluetooth enabled.

    Hello I have lenovo 3000 Y410 laptop. I looked in the forums, some of the forums mentioned that some models of Y410 laptop does not have bluetooth. Can you if it all please let me know how to find my mobile phone supports bluetooth? Thanks in advance

  • Pavilion g 6 series: malware

    Hi my name is the. When I connect to some web sites, I noticed that the ads appear under site web I visit and sound according to ads now appear on my computer. It's just the normal bin that I treat, or is this a sign that some kind of malware has bee