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.

Advertisement

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.

Tags: Database

Similar Questions

  • 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.

  • 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.

  • 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

  • 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

  • "Cannot run the script at line 1. File or folder does not exist. »

    Whenever I have start AfterEffects, I get an error as he is looking to find my recent projects.  The error is as follows: "unable to run the script at line 1. File or folder does not exist. "I haven't changed the location in one of my project files.  It's the same external drives that I use for months.  When I click on OK the same window opens several times and then finally the historic window opens completely blank and empty.  I am able to reopen projects however since the RECENT PROJECTS drop in the top bar.  It is a very strange and disturbing behavior.  In addition, I always use 13.7.2 because when I go to update it is impossible to connect and gives me this error.  I sat with Adobe support for an hour today, and we couldn't understand.  As I am in the middle of major projects, I decided to not update, but this error at startup is very worrying.  Someone has an idea of what could go wrong or how I can fix this?

    Thank you very much for your time.

    -Fredo

    Screen Shot 2016-07-06 at 7.21.26 PM.pngScreen Shot 2016-07-06 at 7.21.11 PM.png

    Ok!  Just got a response and an Adobe technical support solution.  The problem is that there is a problem with these versions of sequels (and I found the same problem in first to my horror this morning as well!) and the last couple Mac OSs.  The solution is to close the window "library".  It is then normally.  Apparently they fixed in the last update, but I found the same problem on my second computer, which has been updated.  Anyway, if anyone has this problem, close your cc library window.  Voila.

  • 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.

  • Trying to turn on network sharing and discovery, I get the message 'the specified service does not exist as an installed service' I am running AVG internet security 2013

    When I try to change the networking of sharing and discovery, I get the above message.  I don't quite know what to try to fix the problem. Any thoughts would be helpful. Thanks in advance.

    Hello MarkPogue,

    Thank you for the question!

    I'm sorry to know that have problems you with the network sharing and discovery. "As I understand it, you get an error message" the specified service does not exist as an installed service ' trying to turn on network discovery.

    Make the SFC (System File Checker) scan and see if the problem occurs.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    Answer to us if you are having problems with the network discovery or any other issue of Windows, and I'd be happy to help you again and try to correct the problem as soon as possible.

    Good day!

    Hope this information helps.

  • table does not exist (when I try to compile the package)

    Hi all

    I can choose from table1 using simple script.

    But when I try to compile the package with select from it table1 I get the message:

    PL/SQL: ORA-00942: table or view does not exist

    Please help me understand how this is possible.

    What additional information should I place them here for you to help me?

    Thanks in advance.

    UPD: The object name is SYS. V_$ PROCESS

    I choose him by using script, so I need all grants.

    But what is the problem when I try to do in the package?

    2788367 wrote:

    Hi all

    I can choose from table1 using simple script.

    But when I try to compile the package with select from it table1 I get the message:

    PL/SQL: ORA-00942: table or view does not exist

    Please help me understand how this is possible.

    What additional information should I place them here for you to help me?

    Thanks in advance.

    It is very likely that you've got access to the table via a role. This allows you to use SQL to access.

    With packages, the grant must be directly to your schema, bypassing a role.

  • create new folder, but the path does not exist.  That's why I need to create!

    I want to take their existing case files, wallpapers and move them into a new catalog LR, jpg_edits.  In the import window, I left click on the parent, my photos and get 'create a new folder '. After which a new folder creation box opens to display the ms mode my file Explorer and the parent.  But he says to Select a folder, so when I try to type the new name, they tell me the path does not exist.  Which may be the reason I'm trying to create the new folder.  Everything seems to be able to do is to slect the existing folders.  Where is the creation of a new part of catalogue record?

    If I understand the question, you want to create a new destination folder in an existing parent folder. Fix? Once you click the folder parent in the Destination panel (left side of the screen to import), expect the top of the Destination table. You will find two elements here. The first, in the subfolder, allows you to enter the name of the new subfolder to create but it must ensure that the box is checked. Select the check box and enter the name of the file in the text field. Then, select the option in a single folder drop-down organizing. With these options, you will see a new subfolder in the tree under your (grey) selected parent folder. Even once all this is done on the right side of the screen to import.

  • 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

  • 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.

  • error in the table of boat or view does not exist, but on query sql prompt works

    Hello
    Can someone help me understand the error ORA-00942: table or view does not exist when compiling the package on Oracle 9.2.0.4.0

    The below package compiled in the use of the system and trying some queries against the view v$ session_wait however getting error below.

    PACKAGE OF THE BODY SYSTEM. PK_DB_ALERT
    Online: 212
    PL/SQL: ORA-00942: table or view does not exist

    I can run the same query mentioned below sql prompt the user of the system, and it works very well however he dislikes package, please advice, thank you in advance.


    SELECT SID, seq #, event, wait_time
    V $ session_wait
    WHERE event NOT LIKE ' SQL * Net %' AND wait_time <>0
    ORDER BY 2

    DDD says:
    Hello
    Can someone help me understand the error ORA-00942: table or view does not exist when compiling the package on Oracle 9.2.0.4.0

    That means package owner is granted select view not directly, but through roles. However, the roles are ignored by stored rights define or packages stored procedures or functions/triggers... You must grant select owner directly the view package.

    SY.

    Published by: Solomon Yakobson, January 21, 2010 04:06

  • start the scenario of a cmd command prompt: SnpUser does not exist

    Hi all, I know there are several discussions in this forum, but I really don't understand why I get this error.
    I do the following:

    "" D:\Oracle\ODI\oracledi\bin > StartScen '-SCEN_NAME = TTT_PC ""-SCEN_VERSION = 001 ".
    A JDK is required to run Web Services with OracleDI. You are currently using a JRE.
    OracleDI: From scenario '-SCEN_NAME = TTT_PC ""-SCEN_VERSION = 001 "in the context...
    com.sunopsis.core.SecurityAccessException: com.sunopsis.core.SecurityAccessException: SnpUser does not exist
    at com.sunopsis.security.DefaultDwgSecurityManager.getDefaultSecurityManager (unknown Source)
    at com.sunopsis.security.DefaultDwgSecurityManager.getDefaultSecurityManager (unknown Source)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.b (unknown Source)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand (unknown Source)
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare (unknown Source)
    at com.sunopsis.dwg.cmd.e.t (unknown Source)
    at com.sunopsis.dwg.cmd.e.y (unknown Source)
    at com.sunopsis.dwg.DwgJv.treatCmd (unknown Source)
    at com.sunopsis.dwg.DwgJv.main (unknown Source)
    at oracle.odi.Agent.main (unknown Source)
    com.sunopsis.core.SecurityAccessException: com.sunopsis.core.SecurityAccessException: SnpUser does not exist
    at com.sunopsis.security.DefaultDwgSecurityManager.getDefaultSecurityManager (unknown Source)
    at com.sunopsis.security.DefaultDwgSecurityManager.getDefaultSecurityManager (unknown Source)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.b (unknown Source)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand (unknown Source)
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare (unknown Source)
    at com.sunopsis.dwg.cmd.e.t (unknown Source)
    at com.sunopsis.dwg.cmd.e.y (unknown Source)
    at com.sunopsis.dwg.DwgJv.treatCmd (unknown Source)
    at com.sunopsis.dwg.DwgJv.main (unknown Source)
    at oracle.odi.Agent.main (unknown Source)

    My odiparams file:

    Set ODI_SECU_DRIVER = oracle.jdbc.driver.OracleDriver
    Set ODI_SECU_URL=jdbc:oracle:thin:@third:1521:testdb
    Set ODI_SECU_USER = odiadmin
    Set ODI_SECU_ENCODED_PASS = aYyHhjqCxh9PNblu2SPhGy
    Set ODI_SECU_WORK_REP = WORKREP10
    Set ODI_USER = SUPERIVISOR
    Set ODI_ENCODED_PASS = a7yHqya0N7YIgvqNQditfprJp

    of course I know already in place indicated to users and passwords of ther

    Thanks in advance

    Published by: Vovanenok on 19.12.2008 03:19

    Hello

    Your encrypted password should be fine, every time ODI will dynamically generate the encoded password.

    Well, yet your login details are not correct. Please cross check. When you have given wrong detail it is wrong by saying java null pointer exception.

    If possible can you please copy the info here?

    Thank you
    G

  • 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.

Maybe you are looking for

  • Extraction of text from the strings in a single cell of a row of cells

    Hello Is there an easier way to search a text / word of a string in the row of cells, and where a match is found back a header text - see the example below. The left table contains the initial positions of conformity in groups of companies. I would l

  • ITunes update failure

    My Windows PC will not update to the latest version of iTunes. I need it to be able to sync my music on game to my iPhone 6 s. I get this window.

  • Accidentally let a virus scan, what now?

    Unfortunately, I am new to the mac community. I received a message saying "VIRUS DETECTED" in Safari. He wanted to scan my computer for viruses. I thought it to be real and let it scan my computer. He said "scanning documents" and other info from my

  • How to change the speed of the pointer mouse?

    Hello I want to increase the speed of the pointer of the mouse through LabVIEW. Similar to change the speed of the pointer mouse in Windows "mouse properties". Thanks in advance.

  • problems of compatibility between mac and windows live

    Hi- I created a photo album and shared a link with some of my friends using windows live, but my friends who use a mac can not seem to view the photo albums.  How can I get the two systems to be compatible - pc to mac? Thank you