creating a relationship on a statement

Hello
I have a relationship master detail
at the master, I have a year_no(number 4) and week_no (number2)
in detail, I have a date of production

what I'm trying to do is
blk1.year_no||blk1.week_no = to_number(to_char(blk2.production_date,'rrrriw'))
error FRM: 15004: error while parsing the join condition

has anyone who ever joined a master/detail relationship this way or did you use WHERE clause when you query detail records?

Forms [32 bit] Version 10.1.2.3.0 (Production)

Thank you

You could encapsulate the concatenation in master and to_number part in detail. Create a view for each block with each having a column including this logic and then base your blocks on the view.

Tags: Oracle Development

Similar Questions

  • How to create a relationship between two blocks

    Oracle forms 6i
    Hai All

    I've created a form that I have four button ADD, QUERY, SAVE, EXIT.

    I have two block named head and members.

    Four Chief areas namely block unitid, deptcode, codeno name.

    When I pressed the query button, and the cursor goes to the Chief name field when I enter the name of the leader and click

    Enter I give the codeno, the deptcode and the unitid of the leader_name.

    so now, I created another block in a tabular structure to bring members in the same deptcode that belongs to Leader_name.

    So pls tell me the steps how to create the relationship between these two blocks.


    When I enter the leader_name and gives enter need to bring the codeno, the deptcode, the unitid and

    I also need to give the members of this deptcode...


    Thanks in advance

    Srikkanth.M

    To write, only State a selection:

     :blk2.item = :blk1.item
    

    François

  • Creating a relationship creates no foreign key attribute (s)

    Hello

    In my logical model, I have an entity supertype/subtype with 2 subtypes with no own attributes (each subtype has only 1: m relationship). When I create the relationship of 1:m of subtype to another entity (the entity-side m), there is no attribute generated FK. I found a trick to create the relationship first of Supertype in the other entity, and then reconnect it to the subtype. Then, the foreign key is generated (I see that in the dialogue relationship property > FK attributes).

    So I guess it's a bug.

    Robert

    Hi Robert,.

    Thanks for reporting the issue that is fixed in 4.1.2 code

    Philippe

  • How to create a relationship between a Bock DB and not block DB

    Hi all

    I work with form of oracle 10g.

    I created a custom form. I have two blocks. One is a DB block and another block of control (that is to say multi record blk).

    I tried to create a relationship master detail between these two blocks.

    The Master block: LC_Master_BLK (DB Block).

    Detail block: LC_Detail_blk (no DB Block).

    Form object browser I click on the link in the block of master and a pop-up window opens and form there I select details of the block.

    And I give the join as condition

    LC_Master_BLK. PO_HEADER_ID = LC_Detail_blk. PO_HEADER_ID.

    I did po_header_id as primary key in my custom table, refred in my main block.

    But it shows the error
    FRM-15004: error while parsing the condtion of join.

    Can someone tell me how to solve this problem.

    Thanks and greetings
    Srikkanth

    Name of query data Source The block property is required to establish a relationship between the two blocs.
    Without that you cannot set up a relationship between the two blocs.

    In any case

    If you get has managed to implement a relationship b/w blocks providing the Query data Source name property value.
    You can't enjoy with this relationship
    because
    No detail block must store data (as it is a block Non-DB)
    Nor will it extract data from DB.

    Hope you understand this now.

  • How to format the column in order to create a relationship with the other field of the table

    I have two tables. Table A, table B
    In table A, I have records with over no matter what hyphen e.g. 124545, domain name is late but in table B I have the files archived with a hyphen after the second digit as 12-4545.

    I am trying to create a relationship between two tables.

    Select a.TaxId, B.TaxId
    Table A, table B
    where a.TaxId = late b.

    How can I remove the hyphen to create a relationship between two tables

    Hello

    REPLACE is good for this:

    SELECT     *     -- or whatever
    FROM     table_a      a
    JOIN     table_b  b  ON  a.taxid     = REPLACE (b.taxid, '-')
    ;
    

    REPLACE (b.taxid, '-') returns a copy of b.taxid with any '-is removed, it will return "12345" If b.tax_id is one of the following
    12345
    12-345
    1-2345
    03/12/45
    -12345
    -1 - 2 - 3 - 4 - 5-

  • Create a RELATIONSHIP Contact error

    Create Organization Contact API error: cannot create a new relationship for a period of time that spans the period of time of an existing relationship with the same id of the object, the code of the relationship and the id of the object

    I can't find this error on a forum - or on the internet also.

    Contacts relationship CRM to a party or organization have a date I don't see?

    J

    This error basically means that you create duplicate reports.

    When you create a contact org using the API to create contact, a record is created in HZ_ORG_CONTACTS and at the same time, that a record of the relationship is created in HZ_RELATIONSHIPS. This last painting has a start date and end date. Please check if already a contact relationship already exists between the Group and the HZ_RELATIONSHIPS table object.

    Note that when you create a relationship in HZ_RELATIONSHIPS, it is not necessary that a record is created in HZ_ORG_CONTACTS. This is optional based on a user in function parameter. I'll have to check if on this last point. I remember it was how it worked.

  • How to create a cursor on a statement select union?

    Hello
    Using Oracle 10 g RAC + ASM (VERSION 1002000300)
    What is the right way to create a cursor on a statement select union?
    Is this possible?

    lines, results in code error PLS-00201: sT: = crsR.STATUS; sS: = crsR.TIME;

    Procedure below:
    -----
    CREATE OR REPLACE PROCEDURE BUILD_SUMMARY IS

    CsrO CURSOR IS
    SELECT
    STATUS,
    TIME
    DE)
    SELECT
    STATUS OF SUBSTR (DESCRIPTION, 1, 50),
    To_char (TIMESTAMP, "MM/DD/YY hh12:mi:ss'") TIMES
    OF GLOBALSALES. CUBE_STATUS
    UNION ALL
    SELECT
    "BUILD TOTAL TIME."
    TO_CHAR (TO_DATE('00:00:00','HH24:MI:SS') + (MAX (TIMESTAMP) - MIN (TIMESTAMP)), 'HH24:MI:SS')
    OF GLOBALSALES. CUBE_STATUS);
    Scrr csrO % ROWTYPE;
    sT LONG: = ";
    sS LONG: = ";
    BEGIN
    FOR Scrr IN csrO
    LOOP
    sT: = crsR.STATUS;
    sS: = crsR.TIME;
    DBMS_OUTPUT. Put_line(St ||) ' ' || sS);
    END LOOP;
    END;
    /

    The results of changes in the same PLS-00201 error messages stating the: identifier ' CRSR. STATUS must be declared
    and the identifier ' CRSR. STATUS must be declared
    ...
    FOR Scrr IN csrO
    LOOP
    sT: = crsR.STATUS;
    sS: = crsR.TIME;
    DBMS_OUTPUT. Put_line(St ||) ' ' || sS);
    END LOOP;

    You are not running what I posted here.

    Please replace this line here:

    FOR csrR IN csrO 
    

    to do this:

    FOR crsR IN csrO 
    

    It helps if you name your variables and objects after something more meaningful and less complicated, for example:

    FOR cur_rec IN csrO
    LOOP
      sT := cur_rec.STATUS;
      sS := cur_rec.TIME;
      DBMS_OUTPUT.PUT_LINE(sT || ' ' || sS);
    END LOOP;
    
  • Is it possible to create a relationship in CRM when you submit an online form

    When you add the 'Company' field in a web form he implemented registration of the company as a relationship to the contact being created record.

    In the admin, we can also install a relationship to another CONTACT record (it doesn't have to be a company).

    Both in a similar way to add the company field to a form, it is possible to establish a relationship to an existing CONTACT record when you submit a web form?

    So, for example, if a web form asks name, Email, and 'Company' but instead of a company name, we can enter an email or contacts system ID so the relationship is created to a contact rather than a company.

    It is currently not possible.

  • Creating blocks in an IF statement

    I have a calc script this logic of features runs only on certain months. However, I need to create blocks before this logic can calculate and store these values. Currently, the script creates all the blocks for every month with a datacopy, then clears the data in these blocks. However, I would only create and delete blocks a month specific. What is the best way to do it if I can't run a datacopy inside an IF statement? (I prefer is not to use a batch script to check the month)

    Hello

    You can try something like

    SET EMPTYMEMBERSETS

    Fix (@List (Mar, Jun, Sep) and & CurMonth))

    DIFFICULTY...

    DATACOPY...

    It copies only the data that is in & CurMonth if the month variable is set to March, June or September made sure command of emptymembersets if the month is say January the entire patch is ignored, i.e. it never reaches the datacopy command.

    See you soon

  • Should Hyperic 5.8.4 create automatically relationship the computer object virtual vROPS?

    I installed Hyperic 5.8.4 and deployed an officer to a MS SQL VM.  Hyperic discovered, I added it to the inventory, and vROPs sees the various OS and VM, including SQL applications.   However, the Windows operating system and apps are not associated to the object vROPs vSphere VM.   Should Hyperic create automatically a relationship between the VM discovered Hyperic and vROPs/vSphere?  If so, what might be missing?

    Thank you

    -MattG

    I just thought the screenshot you sent me, and I think it's just HOW you are looking at it. If you are using the troubleshooting > the metrics tab, you will see Hyperic relationships. You probably don't have your relationships build properly.

    Create a dashboard with widgets of topology or relationships, and you will see these relationships actually exist when you look at the vCenter:VMs or Hyperic objects: Windows. Alternatively, use the tab relationships under Administration... you will see your virtual machines have child objects of the Hyperic agent type. If the data is there, it's just a matter of how you look at what it is what "seems" as if relations are not there (but they are).

  • How to create a button in the State with two different images?

    What I mean is... I have a picture that is conveyed as a button that has not been pressed, and I also have an image that expresses the same key but this time it is pressed. Is there a way to ensure that when the button is normal I seized the image of the button upward and then make sure that when I roll on or press the Enter key, the image of the button down?

    Thank you, Ben Charter

    Hi Ben,

    Just create a Menu and with the Normal State is selected, use the fill options to fill an image in the Menu item. Select the rollover / the mouse to the bottom of the State in the States Panel, then assign an image by using the options to fill again. This is a swap of base image using normals and States of Muse down mice.

    Kind regards

    Akshay

  • ORA-00904 after creating a relationship with object_ref

    Hi all

    Stupidly, I created a master / detail relationship using an object_ref. I cannot now make a query on the master block I get ORA-00904: 'C': identifier not valid when 'c' is the alias of the table.

    i.e. SELECT ROWID, REF c, c.CSPL_ID, c.CCUST_CCUST_ID, c.CRTN_USER, c.DESCR, com_sop_prd_lists c.DATE_CRTD c

    I removed the link, but the error persists. I looked in the code but don't for the life of me find where this REF (c) is defined. Any ideas where to look?

    Concerning
    Jen

    Hello

    Go to palette property of the header of the block and find the property called Alias in the database section and put under vacuum using color red inherit from the top toolbar. And set the property include REF point on no..

    Then run your form, it should work.

    -Clément

  • Create table in the select statement.

    Hello Oracle gurus,

    I am creating a table using select * in the other table.

    The procedure I am following is as follows: -.

    I have a temporary table whose signature is on delete rows commit.

    I insert records into this table.

    When I select * from temporary_table, perm_table, I get a few lines.

    so I try to create a result_table the use of this

    CREATE TABLE result_table
    AS SELECT * FROM temporary_table, perm_table;

    I see the created array, but the number of records in 0. Please can someone explain where the validation is performed while the sequence in this query occurs.

    Thank you

    Published by: user10696492 on November 10, 2009 08:47

    Hello

    When you perform DDL like CREATE TABLE implicit validation takes place just before and just after the statement.

    Concerning
    Peter

  • Cannot create Index with an If statement

    Hello:

    I would run the code to create an index on a given table, but only if the index does not exist. Here's what I have so far...

    DECLARE
    c_Count NUMBER;
    BEGIN
    SELECT COUNT (*) FROM c_Count
    OF DBA_INDEXES
    WHERE TABLE_NAME = 'SOME_TABLE_NAME '.
    AND INDEX_NAME = "SOME_INDEX_NAME."
    AND OWNER = 'SOME_OWNER. '
    AND TABLE_OWNER = "SOME_OWNER";
    IF c_Count = 0 THEN

    CREATE INDEXES SOME_OWNER. SOME_INDEX ON SOME_OWNER. UNE_TABLE (SOME_KEY);
    END IF;
    END;

    The SELECT INTO statement works well alone.
    Boredom comes with the IF statement. I get the following error message:

    PLS-00103: encountered the symbol "CREATE" when waiting for one of the following values: begin case declare exit for goto if loop...

    This is the typical error saying that the syntax is incorrect, and that the parser was expecting something else after the IF-THEN statement. Any ideas on what may be a problem? Thanks in advance.

    Jerry

    Hello

    You must use EXECUTE IMMEDIATE to the DDL in PL/SQL.

    DECLARE
       c_Count NUMBER;
    BEGIN
       SELECT COUNT(*)
         INTO c_Count
         FROM DBA_INDEXES
        WHERE TABLE_NAME = 'SOME_TABLE_NAME'
          AND INDEX_NAME = 'SOME_INDEX_NAME'
          AND OWNER = 'SOME_OWNER'
          AND TABLE_OWNER = 'SOME_OWNER';
       IF c_Count = 0 THEN
          EXECUTE IMMEDIATE 'CREATE INDEX SOME_OWNER.SOME_INDEX ON SOME_OWNER.SOME_TABLE(SOME_KEY)';
       END IF;
    END;
    

    Kind regards

  • creating a 3d of a State form

    Hi all, I am working on something where I need a form 3d one of the 50 States. What would be the best way to do it? I tried to copy a picture of the net, and when the 3-d object was made, he made the shape of the State and a box behind him. If path is the way to go, how can I get this form on a path?

    Thank you

    Rchjr

    Just cut off the State: make a selection, path, so that the State is all that's on the layer. Then select make new extrusion layer or path.

Maybe you are looking for

  • Why the installation give me version instead of the latest version 41 39

    I just installed Firefox and I use Norton password vault. However my Norton password safe does not work and when I check the extensions I like the Norton toolbar is incompatible with Firefox 39. How is this fixed as I have a lot of passwords in the v

  • What wrong with the search bar?

    Firefox is seriously p * ing me off today, what's wrong with the browser, it serves to be one of the best, now an absolute piece of software of the waste processed sound. Anway my problem is, AFTER upgrading firefox, I can't use my SEARCH BAR to look

  • Write timestamps of waveform with data in PDM file

    Hello I try to write data to a table of data from acquisition of DAQmx multi sample, but I found where I have used get date / time in my time function loop past a PDM write in series with another transmitted waveform data, I have more than the timest

  • HP Envy 15 t-ae100: how to enable the keyboard F11 shortcut in MS Office

    I just got my new HP Envy 15 t, and I love my core i7 quad. However, I can't seem to get the job shortcut F11 key. In MS Word, it is supposed to go to the next field, but it doesn't. Is there a reason for this? I have to do something to activate thes

  • Why the editor HTML to add/remove my code sometimes Landing Page?

    I had a few times and different landing pages, the HTML editor actually change my code. No matter how many times I return in the HTML editor and change my HTML code to the appropriate markup, the Publisher will change the code again once the page is