DBMS_XMLGEN. GETXML confusing WHERE the condition of clause?

I can't quite wrap my head around that, but I found the following query

Select * from user_views
where dbms_xmlgen.getxml ("select text from user_views where view_name =" "|") view_name | ') like '% view_table_name % '.

I am totally confuse everything, that's what makes the WHERE condition in the query?

When I run the game "highlight text" it returns nothing

If anyone knows why the WHERE clause is necessary?

Thank you

rodneyc8063 wrote:
I don't understand why there are extra, extra quotes | and the "solomon_is_cool".

Additional citations have nothing to do with dbms_xmlgen. In string literals Oracle must be in quotes by acronym. So what do you do if literal contains a quotation, for example O'Reily? The rule is, apostrophe inside the quoted string must be preceded by a second single quote. Thus, to produce the O string literal 'Reily, one must use 'O' Reily'. Now, back to dbms_xmlgen.get_xml. She waits for the SQL statement as a parameter. What SQL statement we want to produce? It would be:

Select the text from user_views where view_name = "some-view-name."

Right? Then, how the chain of the SQL statement above should look like? One way is to double single quotes:

"Select the text from user_views where view_name =" some-view-name "'.

But some-name-of-view is stored in the column of our query view_name. We have therefore concatenate the piecies which are:

(1) text select lieral user_views where view_name = '
(2) column view_name
(3) literal '

If we end up having:

"Select the text from user_views where view_name ="' | view_name | ''''

Now, you have replaced with solomon_is_cool view_name. This will not work because there is no solomon_is_cool column is user_views. What you probably wanted was:

"Select the text from user_views where view_name ="solomon_is_cool"'.

Then:

dbms_xmlgen. GetXml ("select text from user_views where view_name ="solomon_is_cool"'") would look like to display user named solomon_is_cool text is tiny, which again could be a problem since the names, except between quotes, are stored in the data dictionary for uppercase. In any case, the counting of single quotes in string literals can be confusing. In the new versions of oracle introduced then Q-literals,

dbms_xmlgen. GetXml ("select text from user_views where view_name =" "|") view_name | '''')

could be replaced by more readable:

dbms_xmlgen. GetXml (Q'[select text from user_views where view_name = ']' | view_name |) Q'[']')

For example:

SQL> select Q'[select text from user_views where view_name = ']' || view_name || Q'[']' from user_views where rownum < 3;

Q'[SELECTTEXTFROMUSER_VIEWSWHEREVIEW_NAME=']'||VIEW_NAME||Q'[']'
------------------------------------------------------------------------------
select text from user_views where view_name = 'EMP_VW'
select text from user_views where view_name = 'REMOTE_DDL_VIEW_TEST'

SQL> 

SY.

Tags: Database

Similar Questions

  • Case where the Condition when Clause Condition use

    Hello

    How can I use case in the where condition and in when I need to use a condition, be clearly
    I need to get the following
    and (case WHEN :PROMT = 'Closed' then
     status_date >= trunc(sysdate))  end)
    When I run the present, I'm missing keyword error.

    How can I solve this?

    I think you can do it just like this:

    ...
    and ( :PROMPT != 'Closed' or status_date >= trunc(sysdate) )
    ...
    
  • case where the condition

    Hello
    I want to use the case (or decode etc.) in which a part of sql.
    I want to find the number of rows depending on where the conditions.
    For example, I have a table b, d, e, p and s are fields of this table.
    If the value of the field b is 1 then my condition clause that will be value fields d, e value fields
    If the value of the fields of b is 2 then my condition clause where the declaration will be p field value < s value fields.


    Select count (*) of A
    where
    (if b = 1 then) d, e
    (if b = 2 then) p < s

    How can I achieve this?
    where (b = 1 and d		   
  • Dynamics, where the form of Clause - Oracle 10g

    Hi all

    The scenario is we provide an interface (via form 10g) to execute different queries. These requests have set the columns and tables (for example, we have same SELECT and FROM clauses for each request). However, WHERE clause is unique for each request. So, I'm writing a dynamic cursor, but DYNAMIC CURSORS are not clear for me. I post my code for taking advice from experts in the forum.


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


    Load_Rows EXEC_SQL. CursType;

    New_Query varchar2 (5000) = ' SELECT IRR_TAMPERED_OK | «, » || IRR_DATE_DISPATCHED | «, » || IRR_DISPATCHED_NO | «, » || IRR_REG_ID | «, » || IRR_CONS_NO | «, » || CON_NAM | «, » || CON_ADR | «, » || IRR_SR | «, » ||

    EMC_EVC_NO | «, » || IRR_TNO | «, » || IRR_MTR_TYPE | «, » || IRR_MTR_DIC | «, » || MTR_RED_COR | «, » || MTR_RED_UNCOR | «, » || MTR_RED | «, » || IRR_FP_SIGN | «, » || IRR_FP_OPEN | «, » || IRR_FP_SIGN_CHK | «, » || IRR_FP_CHK | «, » || IRR_20PSIG_SIGN | «, » || IRR_20_PSIG_VALUE | «, » || IRR_40_PSIG_SIGN | «, » || IRR_40_PSIG_VALUE | «, » || IRR_60_PSIG_SIGN | «, » || IRR_60_PSIG_VALUE | «, » || IRR_80_PSIG_SIGN | «, » || IRR_80_PSIG_VALUE | «, » || DTE_REM | «, » || DTE_REC | «, » || IRR_CALL_REMARKS | «, » || IRR_SEAL_COND | «, » || IRR_G_OBSER | «, » || Data IRR_REMARKS

    Of

    inproving_result_remarks, MTR_RET_CRD' | : WHERE_CLAUSE;

    Start

    Load_Rows: = Exec_SQL. Open_cursor;

    EXEC_SQL. PARSE (Load_Rows, New_Query);

    EXEC_SQL. DEFINE_COLUMN (Load_Rows, 1, v_colchar1, 30);

    EXEC_SQL. DEFINE_COLUMN (Load_Rows, 2, v_colchar2, 15);

    EXEC_SQL. DEFINE_COLUMN (Load_Rows, 3, v_colchar3, 30);

    v_exec: = EXEC_SQL. Execute (Load_Rows);

    WHILE EXEC_SQL. FETCH_ROWS (Load_Rows) > 0 LOOP

    EXEC_SQL. COLUMN_VALUE(Load_Rows,1,v_colchar1);

    EXEC_SQL. COLUMN_VALUE(Load_Rows,2,v_colchar2);

    EXEC_SQL. COLUMN_VALUE(Load_Rows,3,v_colchar3);

    END LOOP;

    EXEC_SQL. CLOSE_CURSOR (Load_Rows);

    end;


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


    I have to integrate above slider DYNAMICS written in the code below that was written using a simple slider:


    BEGIN

    -Path to the file

    user_nam: = WebUtil_ClientInfo.Get_User_Name ();

    path_part: = to_char (sysdate, 'DD-MM-YYYY (MI-HH-SS)');

    lv_File_Name: ='C:\Users\'|| user_nam | "\CMS_MIR_'|| path_part |'. CSV';

    -Open the file in write mode

    lv_File: = client_text_io. FOpen (lv_File_Name, 'W');

    -Write the header columns

    client_text_io. Put_Line(lv_File,'IRR_TAMPERED_OK, IRR_DATE_DISPATCHED,IRR_DISPATCHED_NO,IRR_REG_ID,IRR_CONS_NO,CON_NAM,CON_ADR,IRR_SR,EMC_EVC_NO,IRR_TNO,IRR_MTR_TYPE,IRR_MTR_DIC,MTR_RED_COR,MTR_RED_UNCOR,MTR_RED,IRR_FP_SIGN,IRR_FP_OPEN,IRR_FP_SIGN_CHK,IRR_FP_CHK,IRR_20PSIG_SIGN,IRR_20_PSIG_VALUE IRR_40_PSIG_SIGN (, IRR_40_PSIG_VALUE, IRR_60_PSIG_SIGN, IRR_60_PSIG_VALUE, IRR_80_PSIG_SIGN, IRR_80_PSIG_VALUE, DTE_REM, DTE_REC, IRR_CALL_REMARKS, IRR_SEAL_COND, IRR_G_OBSER, IRR_REMARKS');

    -- Write lines in the file

    Row_Count: = 0;

    FOR i IN Load_Rows LOOP

    -COUNT: = Load_Rows % ROWCOUNT; -counter

    Row_Count: = Row_Count + 1;

    client_text_io. Put_line (lv_File, i.DATA);

    IF Row_Count = 5000 THEN

    Synchronize;

    Row_Count: = 0;

    END IF;

    END LOOP;

    -Classify

    client_text_io. FClose (lv_File);

    Message ("meter inspection report was generated: C:\Users\'||") user_nam | "\CMS_MIR_'|| path_part);

    Message ("meter inspection report was generated: C:\Users\'||") user_nam | "\CMS_MIR_'|| path_part);

    END;

    Just so that I understand what you're trying, you are not display the results in your form, you simply run a dynamic query that you export the results to a file.  Is this correct?

    So, what happens when you run your code?  Are you an error (If Yes, what is the full error)?

    One suggestion that I have after reviewing your code example is that you don't have a space after your FROM clause before you concatenate your WHERE Clause in your sql string variable.

    Your example Code:

    ...
    FROM
    inproving_result_remarks,MTR_RET_CRD'||:WHERE_CLAUSE;
    

    There should be a space after MTR_RET_CRD.  For example:

    ...
    FROM
    inproving_result_remarks,MTR_RET_CRD '||:WHERE_CLAUSE;
    

    Without the space your SQL will not scan properly.

    Another suggestion that I have is that you move your code from collection to a stored procedure (procedure or function) in your database of data and your stored procedure returns a collection.  This will eliminate the constant travel to the database for each line of the recording because your stored procedure will return the record complete game.  In addition, your stored procedure allows you to use dynamic SQL Native (Execute Immediate) will allow instead of using dynamic SQL from forms (EXEC_SQL) package. Native dynamic SQL is much more efficient and a lot less code.  In order to use native dynamic SQL, you must have on the Oracle Database 9i or higher.

    Craig...

  • Select without where the condition

    Hello

    Is there is no why select lines of two albums without using a where condition.

    -
    Animesh

    Animesh Tripathi says:
    Hello

    Is there is no why select lines of two albums without using a where condition.

    -
    Animesh

    Without a doubt.

    There are only two lines in your table and then just a Select will do the job. (I'm kidding ;-))

    If you have a hierarchical data in your tables, it might be possible:

    with employee as
    (
      select 1 emp_id, 'ABC' ename, to_date('01-02-2013', 'DD-MM-YYYY') doj, null mgr_id from dual union all
      select 2 emp_id, 'ABC1' ename, to_date('02-02-2013', 'DD-MM-YYYY') doj, 1 mgr_id from dual union all
      select 3 emp_id, 'ABC2' ename, to_date('03-02-2013', 'DD-MM-YYYY') doj, 1 mgr_id from dual union all
      select 4 emp_id, 'ABC3' ename, to_date('04-02-2013', 'DD-MM-YYYY') doj, 2 mgr_id from dual union all
      select 5 emp_id, 'ABC4' ename, to_date('05-02-2013', 'DD-MM-YYYY') doj, 3 mgr_id from dual
    )
    select emp_id, ename, mgr_id manager_id, prior ename manager_name
      from employee
     start with mgr_id is null
    connect by prior emp_id = mgr_id
           and level <= 2;
    
    EMP_ID                 ENAME MANAGER_ID             MANAGER_NAME
    ---------------------- ----- ---------------------- ------------
    1                      ABC
    2                      ABC1  1                      ABC
    3                      ABC2  1                      ABC 
    
  • Go to dynamic WHERE the condition in the slider accordingly.

    Hi all

    I am facing a problem with the cursor with dynamic WHERE condition in a function.

    Here's the FUNCTION:
    CREATE OR REPLACE FUNCTION EXCEPTION_MERGE(TABLE_NAME IN VARCHAR2, TAB_NAME IN VARCHAR2)
    RETURN VARCHAr2
    IS
    stmt_tabcols VARCHAR2(32767);
    v_columnname VARCHAR2(32767);
    CURSOR C1 IS 
    SELECT 'A.'||A.COLUMN_NAME ||' = '|| 'B.'||B.COLUMN_NAME COLUMN_NAME 
    FROM 
    (
    SELECT COLUMN_ID, COLUMN_NAME 
    FROM USER_TAB_COLUMNS 
    WHERE TABLE_NAME  = TABLE_NAME 
    AND COLUMN_NAME NOT IN ('ERROR_TAB_ID','ERROR_LOAD_DATE')
    ) A, 
    (
    SELECT COLUMN_ID, COLUMN_NAME 
    FROM USER_TAB_COLUMNS 
    WHERE TABLE_NAME = TAB_NAME
    ) B 
    WHERE A.COLUMN_ID = B.COLUMN_ID;
    BEGIN
    
    
    FOR TABCOL IN C1
    LOOP
        stmt_tabcols := stmt_tabcols ||TABCOL.COLUMN_NAME||',';
        
    END LOOP;
        stmt_tabcols := RTRIM(stmt_tabcols, ',');
        RETURN stmt_tabcols;
    END;
    SELECT EXCEPTION_MERGE('WC_W_TEST_FS','WC_W_TEST_FS_GBL') FROM DUAL;
    She throws, below error:
    ORA-06502 : PL/SQL : Numeric or value error : character string buffer too small
    If I REPLACE TABLE_NAME table_name with hard coded values, it works fine. Can someone look at the code and let me know the question.

    Published by: ace_friends22 on Sep 9, 2012 13:08

    The first function TABLE_NAME parameter has the same name as the column of USER_TAB_COLUMNS...
    Change the names of the parameters to say nom_table_p...

    Concerning

    Etbin

  • Where the conditional, or PL/SQL block as a source for an interactive report?

    I have this situation: my app's main screen displays a list of documents. For now, there must be a quick way to 'security' integrated, so that administrators can see all documents, but only other users can see what documents, they created (connection of the creator is stored in the table of documents). In the future we will use probably VPD to enforce certain rules, but for the moment we need a quick solution.

    So I stored administrators in a separate table. Now I want the interactive Act report on the homepage as follows:
    -If an admin is connected, it must have this query: select field 1, 2, 3 area in documents
    -For all other users: select the field 1, 2, area 3 documents where creator =: app_user

    Is this possible in a single interactive report? I could do two reports with different queries, and make conditional depending on who is connected, but this gives me two interactive reports to maintain. Is it possible to use a PL/SQL block as a source for the report? I tried, but I get a syntax error. Is it possible to do where proviso on somehow?

    Hello

    Install the demo application to your workspace:
    Home > create an Application and select Demo Application.

    Check page 1 interactive report. This should give idea how.

    BR, Jari

  • How to use the NAME OF THE MONTH where the condition in the date column?

    Hi guys,.

    He comes to the table.
    SQL > desc ACMINUTESPDFTEST;
    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    DATE OF ACDATE
    TYPE VARCHAR2 (10)
    Here, I tried 2 following queries, but I couldn't get the correct result

    Select the types, seqno, acdate of ACMINUTESPDFTEST, where acdate like to_date ('NOV', 'MY');
    or
    Select the types, seqno, acdate from ACMINUTESPDFTEST where acdate = to_date ('NOV', 'MY');

    (for both the query, the result is the same)
    TYPES ACDATE
    ---------- ------------
    ROSE NOVEMBER 1, 10

    but the table with the following data:
    TYPES ACDATE
    ---------- ------------
    ROSE NOVEMBER 14, 10
    WHITE NOVEMBER 15, 10
    ROSE NOVEMBER 1, 10


    Any suggestion why I could not get a good result.

    You can do this:

    where to_char(acdate,'MON') = 'NOV'
    
  • Where the conditional statement

    Hello

    I'm trying to reuse this page so that it can be used by different areas of my request. Currently, it displays all tables in a particular schema. I would like to reuse so that it could be used by another page that displays only the tables of a particular schema with a particular value set to 'Y' or 'n'. I have tried using if / case identified in SQL and PL/SQL, but none work. My PL/SQL statement gives the error:

    Query cannot be parsed, please check the syntax of your query. (ORA-06550: line 1, column 9: PLS-00103: encountered the symbol "" when expecting one of the following: begin function package pragma procedure subtype type use form current cursor symbol "" has been omitted.) Ora-06550: line 2, column 18: PLS-00103: encountered the symbol "" when expecting one of the following: begin function package pragma procedure subtype type use form current)
    -----
    The code is:
    declare 
    q varchar2(4000);
    
    begin 
    q:= 'select UNIQUE_ROWID, 
    OET_TBL_NM,
    OEP_ACTIVE_IN
    from #OWNER#.VIEW_EDIT_DB
    where oeu_id = :P21_DB and OET_TBL_OWN_NM = :P21_SCHEMA ';
    if :P21_Repl != null then
    q:=q|| ' and OEP_ACTIVE_IN = :P21_Repl ';
    end if;
    q:=q|| ' group by OET_TBL_NM, oeu_id, OET_TBL_OWN_NM, OEP_ACTIVE_IN, UNIQUE_ROWID
    order by OET_TBL_NM, OEP_ACTIVE_IN ';
    The key is the: P21_Repl comparison, which is where I try to reuse this page (: P21_Repl would take a 'Y' or the value "n" of a page or be null on the other). Is that what the problem/solution any idea? Thanks for any help.

    Mike

    Published by: Gerd June 22, 2009 00:34

    Hello

    What about

    SELECT "UNIQUE_ROWID"
         , "OET_TBL_NM"
         , "OEP_ACTIVE_IN"
    FROM "#OWNER#"."VIEW_EDIT_DB"
    WHERE     oeu_id = :p21_db
          AND oet_tbl_own_nm = :p21_schema
          AND NVL( :p21_repl, 'X' ) = DECODE( :p21_repl, NULL, 'X', oep_active_in )
    GROUP BY oet_tbl_nm
           , oeu_id
           , oet_tbl_own_nm
           , oep_active_in
           , unique_rowid
    ORDER BY oet_tbl_nm
           , oep_active_in
    

    See you soon

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

  • Invalid DateFormat for dbms_xmlgen.getxml

    Hello
    I use the dbms_xmlgen.getxml to generate the XML from the table.

    I have problems with the type of data type date.

    For date fields type XML is generated in format DD-MON-AA, but it does not record the passage of time.

    What should I do?

    Hello

    In the absence of an explicit conversion, NLS session parameters are used.

    Thus, two solutions:

    (1) change the setting NLS_DATE_FORMAT for the session:

    ALTER SESSION SET nls_date_format = "DD/MM/YYYY HH24:MI:SS";
    

    (2) use an explicit cast:

    SELECT to_char(your_date_col, 'DD/MM/YYYY HH24:MI:SS'), ...
    FROM ...
    
  • Query on calculated field where deletes conditions of the clause

    Hi gurus,

    Under a new requirement, we have created a new field calculated in Contact before JC, which removes the condition from which to extract the clause and made full table.

    Requirement:

    We have a field in the user interface, that has data like "J1234" or "K44335". Customer won't see the first character of the alphabet of these data.

    Solution, we have developed:

    (1) create a new calculated field 'ABC person UId Calc' as follows.

    Name: ABC person UId Calc
    Calculated: true
    Computed value: right ([nobody UId], Len([Person UId]) - 1).

    (2) exposed this field in the user interface.

    Question:

    When the user queries in the applet for this field, the generated SQL code has no condition in a Where Clause to the query on PERSON_UID.

    SQL has earlier been something like...

    (T25. EMP_FLG = 'N') AND (T25. PERSON_UID LIKE: 3)

    But after you make this change, the current SQL is trimmed of the just

    (T25. EMP_FLG = 'N')

    This means that this isn't question with PERSON_UID, resulting in an impact huge performance.

    If someone could suggest on this issue, to the difficulty.

    Concerning

    Oh sorry, I guess I missed something.

    I guess the simplest solution is to store the values of redundantly (A, B the value of the value and the value of A + B) and stop using a calculated field.

    You could script something in the PreQuery event, but I think it's an ugly hack.

  • There is the clause in dynamic condition where the ViewObject

    Hello

    I must add a whereclause runtime of my ViewObject. The query is as below:

    StringBuffer WhereClauseStr = new StringBuffer (300);
    WhereClauseStr.append (": 1 = EFFECTIVE_DATE AND");
    WhereClauseStr.append ("THERE is NO (select 1 from T1 insert_table"); ")
    WhereClauseStr.append ("where trunc (sysdate) between T1.effective_start_date and T1.effective_end_date");
    WhereClauseStr.append ("and T1.person_id = PERSON_ID)');
    View1.setWhereClause (WhereClauseStr.ToString ());

    Here, EFFECTIVE_DATE and PERSON_ID are the column values of the ViewObject.

    When I run the present, the condition is always returning true because the subquery is not able to determine the value of the EFFECTIVE_DATE PERSON_ID. value is good.

    Any help how to solve this problem would be greatly appreciated.

    Thank you
    PK

    Published by: user539616 on July 19, 2010 16:44

    Hello

    Try to print the query that is running the runtime using sop().
    You can use vo.getQuery (); for this purpose. After obtaining the application try to run this query to backend and check if it works or not.

    Ajay

  • Problem with the case where the clause

    Hello

    I want to use cases in which clause. I wrote a very simple query to test how it works. However, I always got an error message. Here's what I did.

    Select eid, firstname, lastname from employee where eid = 1 works fine

    Select eid, name, name of the employee

    where

    cases where 1 = 1 then eid = 1

    When 1! = 1 then eid = 2

    end

    I ORA-00905: lack of keyword.

    Did I miss something?

    Thank you

    Jennifer

    Hi, Jennifer.

    Why do you want to use BOX in a WHERE clause?  The wonderful thing about the CASE is that it allows you to do IF-THEN-ELSE logic.  In a SELECT clause, or an ORDER BY clause, this is really useful, but the WHERE clause already allows you to use the IF-THEN-ELSE logic.

    However, if you use the BOX in a WHERE clause, it is as it does nowhere else.  Always BARGAIN instead of a single expression in a SQL data types.  All the clauses THEN (and ELSE, if there is one) must return a single expression, such as the NUMBER.  (There is no BOOLEAN data type in SQL).  So, you can use a CASE statement like this:

    ...

    CASES WHERE

    WHEN 1 = 1 THEN 1

    WHEN 1! = 1 THEN 2

    END = eid

    Here, the CASE expression takes the place of a NUMBER.

    However, if I was not sure if 1 = 1 or not, I would write the condition in this way, without a CASE expression:

    WHERE (1 = 1 AND eid = 1)

    OR (1! = 1 AND eid = 2).

  • A clumsy behavior of the place where the clause on joins

    I have a problem to join tables querying. If i:

    (1) join two tables
    (2) then filter a few lines with 'where '.
    (3) then filter the result with another 'where '.

    It seems oracle swaps two filtering. It seems wrong for two 'where' clauses cannot be expected.

    How to reproduce:
    create table table_a(
      n_a Number);
      
    create table table_b(
      n_b Number);
      
    insert into table_a (n_a) values(1);
    insert into table_a (n_a) values(2);
    insert into table_b (n_b) values(1);
    commit;
    
    create or replace function func(p_n in Number)
      return Number
    as begin
      if p_n = 1 then
        raise_application_error(-20100, 'Redwood City, we have a problem');
      end if;
      
      return p_n;
    end;
    /
    The fact that the following query works:
    select *
      from table_a
      left join table_b
        on table_a.n_a = table_b.n_b
     where n_b is null;
    and it didn't 'has value 1 ='. But
    with t as (
      select *
        from table_a
        left join table_b
          on table_a.n_a = table_b.n_b
       where n_b is null)
    select * from t
     where func(n_a) = 2
    fails, although "func" throws the exception only on the value "1", which I assume to be absent in 't', I have filtered it earlier. The question is exposed both in oracle 10 and 11.

    Is this a bug or expected behaviour? In any case, how could avoid dealing with 'where' oracle as commutative?

    UPD
    Even easier way to reproduce without a user-defined function:
    with t as (
      select *
        from table_a
        left join table_b
          on table_a.n_a = table_b.n_b
       where n_b is null)
    select * from t
     where 1/(n_a-1) = 2
    It will trigger the divide by zero exception.

    Published by: 922141 on 24.09.2012 06:17

    Published by: 922141 on 24.09.2012 06:25

    Hello

    The optimizer may choose to evaluate the conditions in an order; He can choose to evaluate the conditions of the main query WHERE clause before it evaluates the conditions in the WHERE clause of the query-sub.
    You can force it to evaluate the subquery all first by adding ROWNUM to its result set:

    with t as (
      select table_a.*, table_b.*, ROWNUM AS r_num     -- *****  CHANGED  *****
        from table_a
        left join table_b
          on table_a.n_a = table_b.n_b
       where n_b is null)
    select * from t
     where func(n_a) = 2
    ;
    
  • Where to write the condition in the design of workflows with conditional step?


    Hello

    Again, I wish BP and workflow with contitional design stage.

    I had designed BP and workflow.

    As directed by the user for Udesigner guide, I had added trigger before the condition step.

    But I do not understand where to set the Condition to test?

    If I need to write the condition in triggering elemt itsel... How to proceed?

    for example, I want to write the condition as cost of Tota > = 100000, it must follow a path and if fails to another path.

    The conditions of triggers are specified in the workflow settings.  After you have created a new configuration, open it and click on the settings tab.  You will see a tree structure of the workflow with conditional branches.  Click a conditional branch to set the parameters for the trigger for this route condition.

Maybe you are looking for

  • Cannot find the songs that are on my ipod on itunes

    I see them on my ipod and I can play them, but when I sync it with itunes I can't find certain songs in my music library.  I deleted them at some point because I'm trying to get them OFF my ipod, but after that I removed the iTunes and sync my ipod t

  • GET no sound from my I Tunes library seems to play sound butno?

    Don't get no soubd on I Tunes.  Looks like play my computer but no sound Noy [roblem Cnecked witn Pandora and this time, which can fix I Tunes sound]

  • HP Pavilion 23-h020a clear cmos

    Hello world I have a HP Pavilion 23 - h020a All-in-one that was brought to me for repair. It is currently stuck in a loop of repair. I want to check the BIOS settings, but there is a password that prevents me from falling in the. Unless I'm blind, I

  • upgrade package 6530

    Hello! I bought my 6530 in August 2009 and it is still ongoing.  When I bought the laptop, I had no idea what a 64-bit computer was.  Now I do.  That's why it took me a long time to realize that, instead of getting a 64 bit Windows 7 for my portable

  • c:\windows\system32\AVGRSSTX. DLL?

    Why do I get "" c:\windows\system32\AVGRSSTX. "» DLL"to come on the screen when I turn on every time? And how to fix this?