How to set UP a QUERY (improvement)

Hello everyone, I'm a few oracle classes I found a delicate question in one of the slides...

? Create a query to view the total number of employees, and of this total, the number of employees hired in 1995, 1996, 1997 and 1998. Create column headings appropriate?

I fact as shown below...

SELECT DISTINCT
(select count (to_char (hire_date, "YYYY")) of employee where to_char (hire_date, "YYYY") AS '1995') such as '1995 ',.
(select count (to_char (hire_date, "YYYY")) of employee where to_char (hire_date, "YYYY") AS "1996") as "1996", he said.
(select count (to_char (hire_date, "YYYY")) of employee where to_char (hire_date, "YYYY") AS '1997') as '1997 ',.
(SELECT COUNT (TO_CHAR (HIRE_DATE, "YYYY")) OF EMPLOYEE WHERE TO_CHAR (HIRE_DATE, "YYYY") AS "1998") AS "1998".
employee where to_char (hire_date, "YYYY") IN ('1995', '1996', '1997', ' 1998') group to_char (hire_date, "YYYY");


I know theres another way to do with DECODE or CASE, or any other means... but I tried a lot, and it's one that I found to do...
Will you help me get a better selection please...
THX
select  count(*) total,
        count(case to_char(hire_date, 'YYYY') when '1995' then 1 end) as "1995",
        count(case to_char(hire_date, 'YYYY') when '1996' then 1 end) as "1996",
        count(case to_char(hire_date, 'YYYY') when '1997' then 1 end) as "1997",
        count(case to_char(hire_date, 'YYYY') when '1998' then 1 end) as "1997"
  from  employees
/

     TOTAL       1995       1996       1997       1997
---------- ---------- ---------- ---------- ----------
       107          4         10         28         23

SQL> 

SY.

Tags: Database

Similar Questions

  • How to set Options for querying a DB of EnterpriseManager/AdminCons adapter

    Hi all

    We all know after dragging an adapeter DB we can manually configure Options survey in developer J

    However,.

    My query is how set options to vote of a DB of EnterpriseManager/AdminCons adapter so that we dun hav to modify our code and redeploy if no change is required.
    My DB adapter is deployed to EM. (Server SOA).

    Polling options like:

    In the polling interval, list select the frequency of polling for new records or events.

    In the lines of database through XML Document field, specify the number of lines per XML document when sending events to Oracle BPEL PM or mediator. It is the lot of adjustment between the database adapter and its consumers: Oracle BPEL PM or mediator.

    In lines of database per Transaction field, select unlimited, or enter a value to indicate the number of rows in the table to process a single transaction.

    When querying the database for events, you can order the rows returned by the column selected by using the Order By list. The best practice is to choose < order No. >, as order regardless of message is not guaranteed without additional configuration.

    Hello

    Inside of your composite (in Employment), you can see there is a call from table "Services and references" category.
    Under him, find the name of your JCA adapter, where you define the modalities of the election since the database. Click on it and go to the property tab.
    You will find all the settings that you have defined and much more.
    After you have finished updating, click on apply (this will automatically query the data).

    Arik

  • SQL query takes too long to run (1 h 25 min)... pls help how to set up the query.

    Hello

    Could someone please help how to tune the query as its takes a long time to retrieve the results.

    Select

    col1,

    col2,

    col3,

    COL4,

    col5,

    col6,

    col7,

    COL8,

    col9,

    col10,

    Col11,

    col12,

    Sum (volume1),

    Sum (volume2),

    Sum (volume3),

    Sum (volume4),

    Sum (volume5),

    Sum (volume6),

    Sum (volume7),

    Sum (volume8),

    Sum (volume9),

    Sum (volume10),

    Sum (volume11),

    Sum (volume12),

    Sum (volume13),

    Sum (volume14),

    Sum (volume15),

    Sum (volume16),

    Sum (volume17),

    Sum (Volume18),

    Sum (volume19),

    Sum (volume20),

    Sum (rate1),

    Sum (rate2),

    Sum (rate3),

    Sum (rate4),

    Sum (rate5),

    Sum (rate6),

    Sum (rate7),

    Sum (rate8),

    Sum (rate9),

    Sum (rate10),

    Sum (rate11),

    Sum (rate12),

    Sum (rate13),

    Sum (rate14),

    Sum (rate15),

    Sum (rate16),

    Sum (rate17),

    Sum (rate18)

    Sum (rate19),

    Sum (rate20)

    Of

    Table 1 - 13, 25, 99, 400 records

    Table2 - 13, 45, 1000 records

    Table 3 - 4, 50, 000 records

    Table 4 - 1,00,000 records

    table5 - 30 000 records

    where tabl1.col1 = table2.col2,

    Table1.Col1 = table3.col1.

    table2.col2 = table3.col2...

    Group

    Sum (volume1),

    Sum (volume2),

    Sum (volume3),

    Sum (volume4),

    Sum (volume5),

    Sum (volume6),

    Sum (volume7),

    Sum (volume8),

    Sum (volume9),

    Sum (volume10),

    Sum (volume11),

    Sum (volume12),

    Sum (volume13),

    Sum (volume14),

    Sum (volume15),

    Sum (volume16),

    Sum (volume17),

    Sum (Volume18),

    Sum (volume19),

    Sum (volume20),

    Sum (rate1),

    Sum (rate2),

    Sum (rate3),

    Sum (rate4),

    Sum (rate5),

    Sum (rate6),

    Sum (rate7),

    Sum (rate8),

    Sum (rate9),

    Sum (rate10),

    Sum (rate11),

    Sum (rate12),

    Sum (rate13),

    Sum (rate14),

    Sum (rate15),

    Sum (rate16),

    Sum (rate17),

    Sum (rate18)

    Sum (rate19),

    Sum (rate20)

    Thank you

    Prasad.

    > Could someone please help how to tune the query as its takes a long time to retrieve the results.

    The query you posted is obviously fake.

    If you ask to give us a request that you do not post and we cannot see.

    For real?

  • How to set up a query.

    Hi all

    I'm using Oracle 11 g R2 and I on one of my query performance problems.

    I have the following query that takes about 3 seconds (which is fine for me) where I spend as a parameter for example TOTO and AUNTIE but it takes several minutes when I go to settings, other things (see the execution below plan).

    I thought then it was question of data (data bank) so I created a histogram on the colunm DVC_EVT_TYPE_CD but it did not help: exec dbms_stats.gather_table_stats ('CISADM', 'D1_DVC_EVT', method_opt = > 'for all columns size skewonly').

    All tips to improve the second query (which takes more than a minute) would be appreciated.

    Thank you.

    1st REQUEST :

    SELECT / * + TEST_GSM * / ERO. DVC_EVT_ID, D1_DVC_EVT E.DVC_EVT_DTTM

    E, D1_DVC_EVT_REL_OBJ RTO WHERE RTO. MAINT_OBJ_CD = "D1-DEVICE" AND

    ERO. PK_VALUE1 = '227517483687' AND ERO. DVC_EVT_ID = E.DVC_EVT_ID AND

    E.DVC_EVT_TYPE_CD IN (' END-GSMLOWLEVEL-EXCP-SEV-1', ')

    "STR-GSMLOWLEVEL-EXCP-SEV-1") AND ROWNUM < = ORDER BY E.DVC_EVT_DTTM 51.

    DESC;

    Hash value of plan: 3392374516

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

    | ID | Operation | Name | Begins | E - lines. E - bytes | Cost (% CPU). Pstart. Pstop | A - lines.   A - time | Pads | Bed |  OMem |  1Mem | Used Mem.

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

    |   0 | SELECT STATEMENT |            |      1.        |       |    58 (100) |    |          |     51. 00:00:03.27 |     764.    501.       |       |          |

    |   1.  SORT ORDER BY |            |      1.     51.  4590 |    58 (2) |    |          |     51. 00:00:03.27 |     764.    501.  4096 |  4096 | 4096 (0) |

    |*  2 |   COUNT STOPKEY |            |      1.        |       |            |    |          |     51. 00:00:03.27 |     764.    501.       |       |          |

    |   3.    NESTED LOOPS |            |      1.        |       |            |    |          |     51. 00:00:03.27 |     764.    501.       |       |          |

    |   4.     NESTED LOOPS |            |      1.     52.  4680 |    57 (0) |    |          |    248. 00:00:01.55 |     504.    273.       |       |          |

    |*  5 |      INDEX RANGE SCAN | TEST1 |      1.   7107 |   284K |     4 (0) |    |          |    248. 00:00:00.03 |       6.      6.       |       |          |

    |   6.      RANGE OF PARTITION ITERATOR.            |    248.      1.       |     1 (0) |   KEY |   KEY |    248. 00:00:01.52 |     498.    267.       |       |          |

    |*  7 |       INDEX UNIQUE SCAN | D1T400P0 |    248.      1.       |     1 (0) |   KEY |   KEY |    248. 00:00:01.51 |     498.    267.       |       |          |

    |*  8 |     TABLE ACCESS BY INDEX ROWID | D1_DVC_EVT |    248.      1.    49.     2 (0) | ROWID | ROWID |     51. 00:00:01.71 |     260.    228.       |       |          |

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

    Information of predicates (identified by the operation identity card):

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

    2 - filter(ROWNUM<=51)

    5 - access("ERO".") MAINT_OBJ_CD '= 'D1-DEVICE' AND 'ERO'." PK_VALUE1 "=" 127785269680")

    7 - access("ERO".") DVC_EVT_ID '=' E '. ("' DVC_EVT_ID")

    8 filter (("E". "DVC_EVT_TYPE_CD"= "END-GSMLOWLEVEL-EXCP-SEV-1" OR "E" " DVC_EVT_TYPE_CD "=" STR-GSMLOWLEVEL-EXCP-SEV-1'))

    2ND REQUEST:

    SELECT / * + TEST_MAINS * / ERO. DVC_EVT_ID, E.DVC_EVT_DTTM OF

    D1_DVC_EVT E, D1_DVC_EVT_REL_OBJ RTO WHERE RTO. MAINT_OBJ_CD =

    "D1-DEVICE" AND ERO. PK_VALUE1 = '227517483687' AND ERO. DVC_EVT_ID =

    E.DVC_EVT_ID AND E.DVC_EVT_TYPE_CD IN (' END-POWER-EXCP-SEV-1', ')

    "STR-POWER-EXCP-SEV-1") AND ROWNUM < = 51 ORDER BY E.DVC_EVT_DTTM DESC;

    Hash value of plan: 3392374516

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

    | ID | Operation | Name | Begins | E - lines. E - bytes | Cost (% CPU). Pstart. Pstop | A - lines.   A - time | Pads | Bed |  OMem |  1Mem | Used Mem.

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

    |   0 | SELECT STATEMENT |            |      1.        |       |    58 (100) |    |          |     51. 00:01:04.70 |   26738 |  13604.       |       |          |

    |   1.  SORT ORDER BY |            |      1.     51.  4590 |    58 (2) |    |          |     51. 00:01:04.70 |   26738 |  13604.  4096 |  4096 | 4096 (0) |

    |*  2 |   COUNT STOPKEY |            |      1.        |       |            |    |          |     51. 00:01:04.70 |   26738 |  13604.       |       |          |

    |   3.    NESTED LOOPS |            |      1.        |       |            |    |          |     51. 00:01:04.69 |   26738 |  13604.       |       |          |

    |   4.     NESTED LOOPS |            |      1.     52.  4680 |    57 (0) |    |          |   8820 | 00:00:13.50 |   17714.   7245 |       |       |          |

    |*  5 |      INDEX RANGE SCAN | TEST1 |      1.   7107 |   284K |     4 (0) |    |          |   8820 | 00:00:00.21 |      68.     66.       |       |          |

    |   6.      RANGE OF PARTITION ITERATOR.            |   8820 |      1.       |     1 (0) |   KEY |   KEY |   8820 | 00:00:13.18 |   17646 |   7179.       |       |          |

    |*  7 |       INDEX UNIQUE SCAN | D1T400P0 |   8820 |      1.       |     1 (0) |   KEY |   KEY |   8820 | 00:00:12.97 |   17646 |   7179.       |       |          |

    |*  8 |     TABLE ACCESS BY INDEX ROWID | D1_DVC_EVT |   8820 |      1.    49.     2 (0) | ROWID | ROWID |     51. 00:00:51.11 |    9024 |   6359.       |       |          |

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

    Information of predicates (identified by the operation identity card):

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

    2 - filter(ROWNUM<=51)

    5 - access("ERO".") MAINT_OBJ_CD '= 'D1-DEVICE' AND 'ERO'." PK_VALUE1 "=" 227517483687")

    7 - access("ERO".") DVC_EVT_ID '=' E '. ("' DVC_EVT_ID")

    8 filter (("E". "DVC_EVT_TYPE_CD"= "END-POWER-EXCP-SEV-1" OR "E" " DVC_EVT_TYPE_CD "=" STR-POWER-EXCP-SEV-1'))

    Hello

    of course, the order is important. If you have created an index on (DVC_EVT_TYPE_CD, DVC_EVT_ID) in that order, then it would have been impossible for Oracle choose this index (because of the GOLD on the main column).

    Best regards

    Nikolai

  • How to set up a query - 'A-lines' and 'E' are different.

    Hi all

    I use 11 g R2 and I'm trying to resolve a query. On the execution below plan, my E-lines and my A are different. As you can see, there is little the same line 22 to 43, but starting from line 21 to 1 E-lines are false. For example, on the content (RowSource) 12, E-lines is (1 * 179) and lines A is 8631.

    All statistics have been generated and are up to date. Do you know what could be the problem?
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                                     | Name                      | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  | Writes |  OMem |  1Mem |  O/1/M   | Max-Tmp |
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                              |                           |      1 |        |     50 |00:05:55.08 |     203K|  69975 |   1094 |       |       |          |         |
    |   1 |  SORT ORDER BY                                |                           |      1 |    179 |     50 |00:05:55.08 |     203K|  69975 |   1094 |  8307K|  1133K|          |         |
    |   2 |   HASH UNIQUE                                 |                           |      1 |    179 |   8631 |00:05:54.56 |     203K|  69317 |    180 |  4474K|  1861K|          |   16384 |
    |   3 |    NESTED LOOPS                               |                           |      1 |        |   8631 |00:05:54.04 |     203K|  69137 |      0 |       |       |          |         |
    |   4 |     NESTED LOOPS                              |                           |      1 |    179 |   8631 |00:05:23.24 |     194K|  63768 |      0 |       |       |          |         |
    |   5 |      NESTED LOOPS                             |                           |      1 |    179 |   8631 |00:05:13.51 |     177K|  61396 |      0 |       |       |          |         |
    |   6 |       NESTED LOOPS                            |                           |      1 |    179 |   8631 |00:04:03.74 |     151K|  52928 |      0 |       |       |          |         |
    |   7 |        NESTED LOOPS                           |                           |      1 |    179 |   8631 |00:03:32.15 |     125K|  46425 |      0 |       |       |          |         |
    |*  8 |         HASH JOIN                             |                           |      1 |    179 |   8631 |00:02:59.42 |   99470 |  40095 |      0 |  4379K|  1869K|     1/0/0|         |
    |*  9 |          HASH JOIN                            |                           |      1 |    179 |   8631 |00:02:59.15 |   98919 |  40067 |      0 |   909K|   909K|     1/0/0|         |
    |  10 |           TABLE ACCESS FULL                   | DIM_PERFORMANCE           |      1 |      5 |      5 |00:00:00.01 |       2 |      0 |      0 |       |       |          |         |
    |  11 |           NESTED LOOPS OUTER                  |                           |      1 |    179 |   8631 |00:02:59.06 |   98917 |  40067 |      0 |       |       |          |         |
    |  12 |            NESTED LOOPS                       |                           |      1 |    179 |   8631 |00:02:58.87 |   98917 |  40067 |      0 |       |       |          |         |
    |* 13 |             HASH JOIN                         |                           |      1 |    191 |   8758 |00:00:25.47 |   18101 |   2398 |      0 |  1000K|  1000K|     1/0/0|         |
    |  14 |              TABLE ACCESS FULL                | DIM_TYP_FLUIDE            |      1 |      3 |      3 |00:00:00.01 |       2 |      0 |      0 |       |       |          |         |
    |* 15 |              HASH JOIN                        |                           |      1 |    191 |   8758 |00:00:25.32 |   18099 |   2398 |      0 |   955K|   955K|     1/0/0|         |
    |  16 |               TABLE ACCESS FULL               | DIM_TYP_PDC               |      1 |      3 |      3 |00:00:00.01 |       2 |      0 |      0 |       |       |          |         |
    |  17 |               NESTED LOOPS                    |                           |      1 |        |   8758 |00:00:25.19 |   18097 |   2398 |      0 |       |       |          |         |
    |  18 |                NESTED LOOPS                   |                           |      1 |    191 |   8758 |00:00:06.46 |    9339 |    315 |      0 |       |       |          |         |
    |* 19 |                 HASH JOIN                     |                           |      1 |    191 |   8758 |00:00:00.67 |     565 |      0 |      0 |   880K|   880K|     1/0/0|         |
    |  20 |                  TABLE ACCESS FULL            | DIM_OFFRE                 |      1 |     22 |     22 |00:00:00.01 |       2 |      0 |      0 |       |       |          |         |
    |* 21 |                  HASH JOIN                    |                           |      1 |    191 |   8758 |00:00:00.53 |     563 |      0 |      0 |   779K|   779K|     1/0/0|         |
    |  22 |                   NESTED LOOPS                |                           |      1 |        |      1 |00:00:00.01 |       5 |      0 |      0 |       |       |          |         |
    |  23 |                    NESTED LOOPS               |                           |      1 |      1 |      1 |00:00:00.01 |       4 |      0 |      0 |       |       |          |         |
    |* 24 |                     TABLE ACCESS FULL         | DIM_CONTRAT               |      1 |      1 |      1 |00:00:00.01 |       3 |      0 |      0 |       |       |          |         |
    |* 25 |                     INDEX UNIQUE SCAN         | PK_CONTRACTANT_KEY        |      1 |      1 |      1 |00:00:00.01 |       1 |      0 |      0 |       |       |          |         |
    |* 26 |                    TABLE ACCESS BY INDEX ROWID| DIM_CONTRACTANT           |      1 |      1 |      1 |00:00:00.01 |       1 |      0 |      0 |       |       |          |         |
    |  27 |                   TABLE ACCESS FULL           | REL_SERVICE_POINT_CONTRAT |      1 |  54923 |  54923 |00:00:00.14 |     558 |      0 |      0 |       |       |          |         |
    |* 28 |                 INDEX UNIQUE SCAN             | PK_SP_KEY                 |   8758 |      1 |   8758 |00:00:05.66 |    8774 |    315 |      0 |       |       |          |         |
    |  29 |                TABLE ACCESS BY INDEX ROWID    | DIM_SERVICE_POINT         |   8758 |      1 |   8758 |00:00:18.58 |    8758 |   2083 |      0 |       |       |          |         |
    |  30 |             PARTITION RANGE SINGLE            |                           |   8758 |      1 |   8631 |00:02:33.32 |   80816 |  37669 |      0 |       |       |          |         |
    |* 31 |              TABLE ACCESS BY LOCAL INDEX ROWID| FAC_DAILY_TRANS_PERFORM   |   8758 |      1 |   8631 |00:02:33.18 |   80816 |  37669 |      0 |       |       |          |         |
    |* 32 |               INDEX RANGE SCAN                | IDX3_FAC_DAY_TRAN_PERF    |   8758 |      6 |    103K|00:00:16.05 |   17929 |   4751 |      0 |       |       |          |         |
    |  33 |            TABLE ACCESS BY INDEX ROWID        | DIM_DIAGNOSYS             |   8631 |      1 |      0 |00:00:00.12 |       0 |      0 |      0 |       |       |          |         |
    |* 34 |             INDEX UNIQUE SCAN                 | PK_DIAGNOSYS_KEY          |   8631 |      1 |      0 |00:00:00.05 |       0 |      0 |      0 |       |       |          |         |
    |  35 |          TABLE ACCESS FULL                    | DIM_DATE                  |      1 |  21914 |  21914 |00:00:00.05 |     551 |     28 |      0 |       |       |          |         |
    |  36 |         TABLE ACCESS BY INDEX ROWID           | DIM_RADIO_MODULE          |   8631 |      1 |   8631 |00:00:32.65 |   25895 |   6330 |      0 |       |       |          |         |
    |* 37 |          INDEX UNIQUE SCAN                    | PK_RADMODKEY              |   8631 |      1 |   8631 |00:00:08.38 |   17264 |   2122 |      0 |       |       |          |         |
    |  38 |        TABLE ACCESS BY INDEX ROWID            | DIM_METER_MODULE          |   8631 |      1 |   8631 |00:00:31.51 |   25895 |   6503 |      0 |       |       |          |         |
    |* 39 |         INDEX UNIQUE SCAN                     | PK_METMODKEY              |   8631 |      1 |   8631 |00:00:10.17 |   17264 |   2212 |      0 |       |       |          |         |
    |  40 |       TABLE ACCESS BY INDEX ROWID             | DIM_CUSTOMER              |   8631 |      1 |   8631 |00:01:09.66 |   25895 |   8468 |      0 |       |       |          |         |
    |* 41 |        INDEX UNIQUE SCAN                      | PK_CUSTOMER               |   8631 |      1 |   8631 |00:00:12.03 |   17264 |   2328 |      0 |       |       |          |         |
    |* 42 |      INDEX UNIQUE SCAN                        | PK_METER                  |   8631 |      1 |   8631 |00:00:09.63 |   17264 |   2372 |      0 |       |       |          |         |
    |  43 |     TABLE ACCESS BY INDEX ROWID               | DIM_METER                 |   8631 |      1 |   8631 |00:00:30.71 |    8631 |   5369 |      0 |       |       |          |         |
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     
    Predicate Information (identified by operation id):
    ---------------------------------------------------
     
       8 - access("T786"."DATE_KEY"="T1830"."DATE_KEY")
       9 - access("T786"."PERFORMANCE_KEY"="T2158"."PERFORMANCE_KEY")
      13 - access("T160"."FLUIDE_KEY"="T210"."FLUIDE_KEY")
      15 - access("T160"."TYP_PDC_KEY"="T217"."TYP_PDC_KEY")
      19 - access("T122"."OFFRE_KEY"="T298"."OFFRE_KEY")
      21 - access("T24"."CONTRAT_KEY"="T298"."CONTRAT_KEY" AND "T17"."CONTRACTANT_KEY"="T298"."CONTRACTANT_KEY")
      24 - filter("T24"."NOM_CONTRAT"='COMMUNAY ET REGION (SIE)')
      25 - access("T17"."CONTRACTANT_KEY"="T24"."CONTRACTANT_KEY")
      26 - filter("T17"."NOM_CONTRACTANT"='ER Rhône Alpes Auvergne')
      28 - access("T160"."SERVICE_POINT_KEY"="T298"."SERVICE_POINT_KEY")
      31 - filter("T786"."REPORTING_DATE"=TO_DATE(' 2013-02-09 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
      32 - access("T160"."SERVICE_POINT_KEY"="T786"."SERVICE_POINT_KEY")
      34 - access("T786"."DIAGNOSYS_KEY"="T2186"."DIAGNOSYS_KEY")
      37 - access("T786"."RADIO_MODULE_KEY"="T949"."RADIO_MODULE_KEY")
      39 - access("T786"."METER_MODULE_KEY"="T1191"."METER_MODULE_KEY")
      41 - access("T786"."CUSTOMER_KEY"="T2098"."CUSTOMER_KEY")
      42 - access("T786"."METER_KEY"="T1011"."METER_KEY")
     
    Also, line 31, my score is used with a local index and E-lines and A-lines are correct, but the index takes 02:33 minutes to get a 8758 ranks who seems to be excessive. EC which could I check/do to reduce it?
    |  30 |             PARTITION RANGE SINGLE            |                           |   8758 |      1 |   8631 |00:02:33.32 |   80816 |  37669 |      0 |       |       |          |         |
    |* 31 |              TABLE ACCESS BY LOCAL INDEX ROWID| FAC_DAILY_TRANS_PERFORM   |   8758 |      1 |   8631 |00:02:33.18 |   80816 |  37669 |      0 |       |       |          |         |
    Thank you very much!

    Hello

    (1) for a significant query, it is rare that the optimizer obtains all right cardinalities
    (2) but normally, it is not really necessary, in most cases just to be in the right ballpark (1-2 orders of magnitude)
    (3) as others already said, the optimizer in your case does that 1 error - in step 1, when evaluating a cardinality of a hash of several columns, the steps join upward simply reproduce this error over and over
    (4) rethink the cardinality of the join is always difficult, and especially when it comes to columns multiple joins because you have several possibilities made a mistake in the selectivity of unique columns, but also because there is a chance that there is a correlation between the columns attached; also, the optimizer uses many settings, called 'mental health controls', which does not make things more simple
    (5) you can try to create statistics on a column in the joined columns group for a more accurate forecast of join cardinality
    (6) there again, get all the cardinalities right does not guarantee that you will get a good plan - for example, you may be limited by the lack of an appropriate index
    (7) sometimes, and more feedback of cardinality (or even instead) it is better to tackle the problem from a different angle: see what operations are ineffective (e.g. rejection lines after spending a lot of e/s on their acquisition), see http://savvinov.com/2013/01/28/efficiency-based-sql-tuning/
    (8) in your case, you have noticed that you: step

    |* 31 |              TABLE ACCESS BY LOCAL INDEX ROWID| FAC_DAILY_TRANS_PERFORM   |   8758 |      1 |   8631 |00:02:33.18 |   80816 |  37669 |      0 |       |       |          |  
    

    is the biggest problem for this plan, even if the cardinality estimate of it's very precise
    (9) you can fix the problem by extending the IDX3_FAC_DAY_TRAN_PERF index to the REPORTING_DATE column: If you do this, then you won't need to 63 k logical reads to return lines k 103 just to reject 90% of them - you will reject them at an earlier stage (INDEX RANGE SCAN) and only need to at most 8 k readings to acquire the filtered lines by table rowid

    Best regards
    Nikolai

  • How to set the value of QUERY using PL/SQL process?

    Hello

    I use APEX 4.2...
    How to set the value of the REQUEST using process of PL/SQL which lies before the header - where the value of the REQUEST should appear on the URL?

    Kind regards
    Fateh

    You cannot set a value of demand in a PL/SQL block. You can run a PL/SQL block on a request which is the id of a button for example.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • How can I turn OFF any possibility of use of private browsing OR - how to set a password to use the private browsing?

    How can I turn OFF any possibility of use of private browsing OR - how to set a password to use the private browsing?
    My children are free to use the internet - but I don't want them to be able to hide their internet activity to me.
    Thank you.

    Try this new extension - turn off private browsing:

    https://addons.Mozilla.org/en-us/Firefox/addon/disable-private-browsing/

    Ignore the review I did there on the 22nd, as both versions again, improving have been released during the 6 days and most of the articles I've written about have been fixed.

    Richie just needs to get to the function disable compensation no browsing history, who works at.

  • How to set up Archive security less

    We discovered that the symantec antivirus management console computer has more archives-security 128 MB connect drive c that the other server.

    do not know where is the problem and how to configure less Archive

    How to set up Security Archive less?

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the link below.

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

    Hope this information helps.

  • How to set up the account on the mail client settings?

    When I entered my email information for my GoDaddy hosted accounts IMAP, that he insisted that he could not find them. Sunday Mail was populated as if by magic. I guess that some updates took in the background.

    Now, I try to add a second account and want the account of adjustment he loves.

    Does anyone know how/where to see?

    Title: e-mail account settings

    Hi Rodwasalreadytaken,.

    Thanks for posting your query in the Forums RT in Microsoft Windows. If I understand you correctly, you want to know how to set the preferred e-mail client account settings. I understand that it must be frustrating, but don't worry, we are here to help solve your problem and guide you in the right direction.

    We start with a few questions-

    What mail client do you use?

    Method-

    I would have you look at the article-

    Windows RT: Frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows/Windows-RT-FAQ

    Get to know Windows

    http://Windows.Microsoft.com/en-us/Windows-8/charms#1TC=T1

    Mailing address: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-8/mail-FAQ

    We know if you need help. We will be happy to help you.

    Thank you.

  • Set up a query (written Re)

    Hi Experts,

    I am facing a problem in executing the query that take a long time. And I'm new to setting up a query, kindly help me in this query to reduce the time of execution below.

    After reading the stories, I am unable to find how to get the execution of the query, but not sure about re writing the query plan. This is the execution plan.

    Please help me by rewriting the query and guide me some ground rules for rewriting where needed.

    203 rows selected.
    
    Execution Plan
    ----------------------------------------------------------
       0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=5745 Card=1 Bytes=
              222)
    
    
       1    0   SORT (GROUP BY NOSORT) (Cost=5570 Card=1 Bytes=12)
       2    1     TABLE ACCESS (FULL) OF 'FAMIS_REQ' (TABLE) (Cost=5570 Ca
              rd=1 Bytes=12)
    
    
       3    0   SORT (GROUP BY NOSORT) (Cost=5563 Card=1 Bytes=8)
       4    3     TABLE ACCESS (FULL) OF 'FAMIS_REQ' (TABLE) (Cost=5563 Ca
              rd=1 Bytes=8)
    
    
       5    0   NESTED LOOPS (OUTER) (Cost=5745 Card=1 Bytes=222)
       6    5     FILTER
       7    6       NESTED LOOPS (OUTER) (Cost=5743 Card=1 Bytes=198)
       8    7         NESTED LOOPS (OUTER) (Cost=5742 Card=1 Bytes=163)
       9    8           HASH JOIN (Cost=5739 Card=1 Bytes=140)
      10    9             NESTED LOOPS
      11   10               NESTED LOOPS (Cost=5567 Card=1 Bytes=98)
      12   11                 TABLE ACCESS (FULL) OF 'FAMIS_REQ' (TABLE) (
              Cost=5565 Card=1 Bytes=90)
    
    
      13   11                 INDEX (RANGE SCAN) OF 'FAMIS_REQUESTOR1' (IN
              DEX) (Cost=1 Card=1)
    
    
      14   10               TABLE ACCESS (BY INDEX ROWID) OF 'FAMIS_REQUES
              TOR' (TABLE) (Cost=2 Card=1 Bytes=8)
    
    
      15    9             TABLE ACCESS (FULL) OF 'FAM_PERSON' (TABLE) (Cos
              t=172 Card=1074 Bytes=45108)
    
    
      16    8           TABLE ACCESS (BY INDEX ROWID) OF 'LEASE_CONTACT' (
              TABLE) (Cost=3 Card=1 Bytes=23)
    
    
      17   16             INDEX (RANGE SCAN) OF 'FK_LEASECONTACT_CONTACT'
              (INDEX) (Cost=1 Card=1)
    
    
      18    7         TABLE ACCESS (BY INDEX ROWID) OF 'LEASE' (TABLE) (Co
              st=1 Card=1 Bytes=35)
    
    
      19   18           INDEX (UNIQUE SCAN) OF 'PK_LEASE' (INDEX (UNIQUE))
               (Cost=0 Card=1)
    
    
      20    5     TABLE ACCESS (BY INDEX ROWID) OF 'FAMIS_LEASE_LOCATION'
              (TABLE) (Cost=2 Card=1 Bytes=24)
    
    
      21   20       INDEX (RANGE SCAN) OF 'FAMIS_LEASE_LOC_LEASE_FK' (INDE
              X) (Cost=1 Card=1)
    
    
    
    
    
    
    
    
    
    
    Statistics
    ----------------------------------------------------------
              0  recursive calls
              0  db block gets
        8484854  consistent gets
              0  physical reads
              0  redo size
          34190  bytes sent via SQL*Net to client
           9592  bytes received via SQL*Net from client
             15  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
            203  rows processed
    
    
    SQL>
    

    Apologies for any inconvenience in the reading of the application. This is the query.

    SELECT a.req_number, a.req_status, a.wo_number, a.wo_status, a.description,
              a.requestor, a.req_date, a.enter_date, a.pl_number, a.site,
              a.building, a.room, a.attribute2, b.emp_id, c.custom09, c.custom13,
              c.custom11, c.custom16 + 1 AS family_no, c.active_flag, e.leaseid,
              e.commdate, e.enddate, e.functional_status, f.site_code,
              CASE
                 WHEN c.custom09 = 'Married'
                    THEN 10
                 ELSE 0
              END AS married,
              CASE
                 WHEN (CASE
                          WHEN (c.custom16 + 1) > 4
                             THEN 10
                          ELSE (c.custom16 + 1) * 2
                       END
                      ) IS NULL
                    THEN 0
                 ELSE (CASE
                          WHEN (c.custom16 + 1) > 4
                             THEN 10
                          ELSE (c.custom16 + 1) * 2
                       END)
              END AS family,
              CASE
                 WHEN c.custom11 = 'Canadian Management'
                    THEN 8
                 ELSE 0
              END AS job,
              CASE
                 WHEN (  CASE
                            WHEN MONTHS_BETWEEN (SYSDATE,
                                                 TO_DATE (c.custom13,
                                                          'MM/DD/YYYY')
                                                ) > 36
                               THEN 6
                            ELSE 0
                         END
                       + CASE
                            WHEN MONTHS_BETWEEN (SYSDATE,
                                                 TO_DATE (c.custom13,
                                                          'MM/DD/YYYY')
                                                ) > 36
                               THEN   (  MONTHS_BETWEEN (SYSDATE,
                                                         TO_DATE (c.custom13,
                                                                  'MM/DD/YYYY'
                                                                 )
                                                        )
                                       - 36
                                      )
                                    / 24
                            ELSE   MONTHS_BETWEEN (SYSDATE,
                                                   TO_DATE (c.custom13,
                                                            'MM/DD/YYYY'
                                                           )
                                                  )
                                 / 24
                         END
                      ) IS NULL
                    THEN 0
                 ELSE (  CASE
                            WHEN MONTHS_BETWEEN (SYSDATE,
                                                 TO_DATE (c.custom13,
                                                          'MM/DD/YYYY')
                                                ) > 36
                               THEN 6
                            ELSE 0
                         END
                       + CASE
                            WHEN MONTHS_BETWEEN (SYSDATE,
                                                 TO_DATE (c.custom13,
                                                          'MM/DD/YYYY')
                                                ) > 36
                               THEN   (  MONTHS_BETWEEN (SYSDATE,
                                                         TO_DATE (c.custom13,
                                                                  'MM/DD/YYYY'
                                                                 )
                                                        )
                                       - 36
                                      )
                                    / 24
                            ELSE   MONTHS_BETWEEN (SYSDATE,
                                                   TO_DATE (c.custom13,
                                                            'MM/DD/YYYY'
                                                           )
                                                  )
                                 / 24
                         END
                      )
              END AS hire,
              CASE
                 WHEN MONTHS_BETWEEN (SYSDATE, a.req_date) * 4 > 10
                    THEN 10
                 ELSE MONTHS_BETWEEN (SYSDATE, a.req_date) * 4
              END AS entered,
                CASE
                   WHEN c.custom09 = 'Married'
                      THEN 10
                   ELSE 0
                END
              + CASE
                   WHEN (CASE
                            WHEN (c.custom16 + 1) > 4
                               THEN 10
                            ELSE (c.custom16 + 1) * 2
                         END
                        ) IS NULL
                      THEN 0
                   ELSE (CASE
                            WHEN (c.custom16 + 1) > 4
                               THEN 10
                            ELSE (c.custom16 + 1) * 2
                         END
                        )
                END
              + CASE
                   WHEN c.custom11 = 'Canadian Management'
                      THEN 8
                   ELSE 0
                END
              + CASE
                   WHEN (  CASE
                              WHEN MONTHS_BETWEEN (SYSDATE,
                                                   TO_DATE (c.custom13,
                                                            'MM/DD/YYYY'
                                                           )
                                                  ) > 36
                                 THEN 6
                              ELSE 0
                           END
                         + CASE
                              WHEN MONTHS_BETWEEN (SYSDATE,
                                                   TO_DATE (c.custom13,
                                                            'MM/DD/YYYY'
                                                           )
                                                  ) > 36
                                 THEN   (  MONTHS_BETWEEN (SYSDATE,
                                                           TO_DATE (c.custom13,
                                                                    'MM/DD/YYYY'
                                                                   )
                                                          )
                                         - 36
                                        )
                                      / 24
                              ELSE   MONTHS_BETWEEN (SYSDATE,
                                                     TO_DATE (c.custom13,
                                                              'MM/DD/YYYY'
                                                             )
                                                    )
                                   / 24
                           END
                        ) IS NULL
                      THEN 0
                   ELSE (  CASE
                              WHEN MONTHS_BETWEEN (SYSDATE,
                                                   TO_DATE (c.custom13,
                                                            'MM/DD/YYYY'
                                                           )
                                                  ) > 36
                                 THEN 6
                              ELSE 0
                           END
                         + CASE
                              WHEN MONTHS_BETWEEN (SYSDATE,
                                                   TO_DATE (c.custom13,
                                                            'MM/DD/YYYY'
                                                           )
                                                  ) > 36
                                 THEN   (  MONTHS_BETWEEN (SYSDATE,
                                                           TO_DATE (c.custom13,
                                                                    'MM/DD/YYYY'
                                                                   )
                                                          )
                                         - 36
                                        )
                                      / 24
                              ELSE   MONTHS_BETWEEN (SYSDATE,
                                                     TO_DATE (c.custom13,
                                                              'MM/DD/YYYY'
                                                             )
                                                    )
                                   / 24
                           END
                        )
                END
              + CASE
                   WHEN MONTHS_BETWEEN (SYSDATE, a.req_date) * 4 > 10
                      THEN 10
                   ELSE MONTHS_BETWEEN (SYSDATE, a.req_date) * 4
                END
              + CASE
                   WHEN a.attribute2 IS NULL
                      THEN '0'
                   ELSE a.attribute2
                END AS total,
              CASE
                 WHEN f.site_code IN ('AJ1', 'AJ2', 'AJ3', 'RG1')
                    THEN f.building_code
                 ELSE f.space_code
              END AS SPACE,
              CASE
                 WHEN a.site IN ('AJ1', 'AJ2', 'AJ3', 'RG1')
                    THEN a.building
                 ELSE a.room
              END AS space_req,
              CASE
                 WHEN a.pl_number = '002002001'
                    THEN 'Villa to Villa'
                 ELSE (CASE
                          WHEN a.pl_number = '002002002'
                             THEN 'Apartment to Villa'
                          ELSE (CASE
                                   WHEN a.pl_number = '002002003'
                                      THEN 'Apartment to Apartment'
                                   ELSE 'Villa to Apartment'
                                END
                               )
                       END
                      )
              END AS TYPE,
              (SELECT   MAX (g.req_date)
                   FROM famis_req g
                  WHERE g.req_date < a.req_date
                    AND g.requestor_id = a.requestor_id
                    AND g.pl_number IN
                             ('002002001', '002002002', '002002003', '002002004')
                    AND g.wo_status = 'CLOSED'
               GROUP BY g.requestor_id) AS last_move,
              (SELECT   COUNT (g.req_number)
                   FROM famis_req g
                  WHERE g.req_date <> a.req_date
                    AND g.requestor_id = a.requestor_id
                    AND g.pl_number IN
                             ('002002001', '002002002', '002002003', '002002004')
                    AND g.req_status NOT IN ('REJECTED', 'CANCELED')
               GROUP BY g.requestor_id) AS requests
         FROM famis_req a JOIN famis_requestor b ON a.requestor_id =
                                                                    b.requestor_id
              JOIN fam_person c ON b.emp_id = c.person_code
              LEFT JOIN lease_contact d ON c.person_code = d.contact_id
              LEFT JOIN lease e ON d.leaseid = e.leaseid
              LEFT JOIN famis_lease_location f ON e.leaseid = f.lease_code
        WHERE site <> 'CNAQ1'
          AND pl_number IN ('002002001', '002002002', '002002003', '002002004')
          AND (a.enter_date < e.enddate OR e.enddate IS NULL)
          AND (e.functional_status = 'OCCUPIED' OR e.functional_status IS NULL)
    

    Thank you.

    It is difficult to read anything not formatted output of the explain plan.

    In any case, there is a hughe number of becomes coherent.

    I'm just guessing that the reason might be the two groups of subqueries.

    You can try to replace them with

    1 Inline views or subquery (with article) plants which are connected to the result set

    or

    2 analysis functions

    Here is an example of the latter approach. You can try if this changes something (after make sure you that they lead to correct results).

    , max (case when a.wo_status = 'CLOSED' then a.req_date any other purpose) over (partition by a.requestor_id of a.req_date order

    range between unbounded preceding and interval "0.1"(seconde précédant) as last_move "."

    , count (case when not in a.req_status ('DENIED', 'CANCELLED') then a.req_number any other purpose))

    a.requestor_id partition)

    -count (case when not in a.req_status ('DENIED', 'CANCELLED') then a.req_number any other purpose))

    partition a.requestor_id, a.req_date) as applications

    Note that I assume that req_date is of date data type. If it is of type timestamp, the interval should be adapted.

  • How to set the content of the website of different size and resolution

    I want to know, how to set my Internet site content to display correctly from different sizes and screen resulation.

    Please send me an ideal emergency solution please... @

    Post edited by: Catherine Rollet

    Normally a combination of methods are used to achieve this goal, but media queries are always part of the solution. The basic idea of a media query is:

    If the screen is less than 600px wide:

    To do this

    If the screen is larger 600px, but under 800px wide:

    Do something else

    If the screen is more than 800 px wide:

    Do this thing

    Here is an introduction to the media:

    http://www.Adobe.com/devnet/archive/Dreamweaver/articles/introducing-media-queries.html

  • [ADF, JDev12.1.3] How to set a variable to bind a VO (where clause) in a managed bean?

    Hallo,

    I have a request based on VO.

    The query contains a where clause clause and a bindi variable.

    In a managed bean I would like to access the iterator of VO setting the value of the bind variable and read the result.

    I found this code it is good start, but I do not know how to set the variable binding.

    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindings = bctx.getCurrentBindingsEntry();
    DCIteratorBinding iter = (DCIteratorBinding ) bindings.get("MyVO1Iterator");
    iter.execute();
    
    
    

    You kindly help me?

    Also, I would like to know if it is generally advisable to use VO directly in controlled beans or whether it would be best to create in the AppModuleImpl methods that do this and return the result.

    In my case for example of the VO will return max 1 plug so I'm in doubt, if the creation of a method in the AM that returns a custom class, which attributes contain values of the line of VO.

    Sorry if these questions may seem artificial, but I am a beginner, I have many doubts and so I would be happy to receive some tips regarding best practices.

    Thank you

    Federico

    You can use:

    iter.getViewObject().setNamedWhereClauseParam("yourBindVar", value);
    

    Note that this approach is used if you have bind variable in the where clause.

    To set variables bind to ViewCriteria, you must use VarableValueManager.

    This post may be useful for you: binary: how to set the Bind variable values at run time?

    Also, I would like to know if it is generally advisable to use VO directly in controlled beans or whether it would be best to create in the AppModuleImpl methods that do this and return the result.

    You must set "use VO directly.

    For example, from the point of architecture, is probably best to use the method in the model project which will set the bind variable and execute the query.

    Or you can use the ExecuteWithParams operation in your the view layer.

    In my case for example of the VO will return max 1 plug so I'm in doubt, if the creation of a method in the AM that returns a custom class, which attributes contain values of the line of VO.

    Not to complicate your life

    All VO lines are represented as ViewRowImpl class if you already have "custom class".

    Finally, you can generate your own ViewRowImpl class if it is necessary for this.

    Dario

  • How to set the attribute in the request of adf defalut search form

    I use the default search engine in Jdeveloper 11.1.2.3 with Table query.

    I followed this blog to replace the query by default: https://blogs.oracle.com/jdevotnharvest/entry/how-to_tell_the_viewcriteria_a_user_chose_in_an_afquery_component

    Question is how to set the value of an attribute in the request. The user will add what ever he wants those who are caught queryEvent I want to add to the value of an attribute that is not displayed to the user and the search engine and it is necessary for the application to run correctly.

    Hello

    If you went on the blog that I posted, you could get the ViewCriteriaRow of the queryEvent and then you can add the attribute that you want to the ViewCriteriaRow, and then run the query accordingly.


    Arun-

  • How to set options to generate as Postgresql SQL Analytics

    Q: I need to know how to set options in web analytics or the driver BI so that web analytics will be limited to the Postgresql type commands.

    Environment: Web analytical running in Windows Exporer. Driver of BI of Oracle running on Windows XP. Tunneling via PuTTY on our own server non-Oracle database.

    I heard that somewhere in Oracle BI there is the possibility to activate and disable several features SQL so that Oracle users can capture their SQL generating tools (such as web analytics) to match other DB standards.

    Can someone tell me if this is true? If Yes, where can I access these options?

    Hello

    I'm sorry if I could not you, but I understand that you would like to BI Server to build queries depending on the your DB traits.

    If this is the case, you can then follow the steps below

    1. open .rpd

    2. navigate to the physical layer

    3. among the different databases, choose the one you want to resolve.

    4. right click, choose Properties-> features.

    5. here, you can see a number of features of DB that you could try to turn it OFF / ON.

    6. you can also perform a DBMS for "query" that will interview your DB.

    Hope this is what you are looking for.

    Thank you
    Diakité

  • How authorized optional in the query?

    Hello

    Database is disconnected during the race under request sparql (query with 9 optional conditions).

    I tested the application with 5 in option, its working fine, but his does not work for more than 5 in option.

    How authorized optional in the query?

    Please advice me for this problem.

    Details of error: ORA-03113: end of file on communication channel

    SELECT bi, OWNER, name, use, notes, icto, app, ssd, ssdname, ssdid, sdname, sdarchitect, hourly
    TABLE (sem_match('{)
    ? RDF: type bi di: Bulk_Interface.
    ? BI di: hasBulkInterfaceItOwner? OWNER.
    ? BI di: hasBulkInterfaceName? name.
    ? BI di: hasBulkInterfaceRecipientApplicationArea? use.
    ? BI di: hasBulkInterfaceRecipientFeederType? notes.
    ? BI di: hasBulkInterfaceSupplierApplicationId? ICTO.
    ? DS:hasConceptualSourceApplicationIctoId app? ICTO.
    ? DS:hasConceptualSourceApplication ssd? app.
    ? DS:hasConceptualSourceSubdomainName ssd? ssdname.
    ? DS:hasConceptualSourceSubdomainIctoId ssd? ssdid.
    ? DS:hasConceptualSourceSubdomain sd? SSD.
    ? DS:hasConceptualSourceDomainName sd? sdname.
    ? DS:hasConceptualSourceDomainArchitect sd? sdarchitect.
    ? BI di: hasBulkInterfaceDeliverySchedule? Annex
    Optional {? bi di: hasBulkInterfaceRecSet1AverageStorageRequirements? avgsize}
    Optional {? bi di: hasBulkInterfaceWorstStorageRequirements? maxsize}
    Optional {? bi di: hasBulkInterfaceRecSet1AverageNumberOfRecords? avgrec}
    Optional {? bi di: hasBulkInterfaceAverageNumberOfRecords? avgrec}
    Optional {? bi di: hasBulkInterfaceRecSet1WorstNumberOfRecords? maxrec}
    Optional {? bi di: hasBulkInterfaceWorstNumberOfRecords? maxrec}
    Optional {? bi di: hasBulkInterfaceTransferMethodJob? job}
    Optional {? bi di: hasBulkInterfaceDataFileAvailability? post}
    Optional {? bi di: hasBulkInterfaceBusinessDescription? descr}
    }
    ',
    sem_models ('IFM_CURR', 'SRC_CURR'),
    SEM_Rulebases ('OWLPRIME'),
    sem_aliases (SEM_ALIAS ('di', 'http://www.cse.com/sbip/dwh/mdm/data_interface#'),
    SEM_ALIAS ('ds', 'http://www.cse.com/sbip/dwh/mdm/data_sources#'))
    NULL));


    Let me know if you need further details.

    Kind regards
    Kouadio.

    Published by: 789259 on August 3, 2011 02:01

    If possible, I would suggest that you upgrade to the latest version: 11.2.0.2.0. It has many bug fixes and improvements.

    There is no limit on the number of options by request. I think that the use of the same new variables (? avgrec and? maxrec) in the optional clauses parallel is the reason you see the error in this case special. If you use different variable names the error disappears? If necessary, you can use one coalesce in the external SQL SELECT statement to get the same behavior as before (for example COALESCE them (avgrec1, avgrec2) as avgrec).

    Thank you
    Matt

Maybe you are looking for

  • Library-ms

    Recently upgraded to a portable Windows8 and am suddenly receiving messages on my libraries no longer exist and they can be deleted. The text of the message is: "Documents.library - ms" is no longer. This library can be removed safely from your compu

  • 4 - 1215dx the envy Drive 8 locking windows

    I have a HP Envy 4-1215dx that I want to do a factory on after restore Windows 8 would no longer start. When my Windows 8 has stopped working I could access is no longer the recovery partitions and the options on my laptop. I popped in a CD of Window

  • How to open a XLR file

    I can't open a file XLR from my old computer that uses windows 7

  • Windows 8 buggy again after many problems and refreshes.

    Hello, this has been my third discount over the last 2 weeks. Windows 8 always worked fine for me until about 2 weeks ago, when he got into a loop of auto repair after a reboot.  I tried everything to fix it and finally I had to update Windows. After

  • Automatic HA VSphere Vmotion does not

    Nice dayVMotion does not when I turn my host all VMs server is migrated to the other servers host automatically, but all the VMs who have emigrated have restarted the AP are enbaled.you have an idea about my problem, I will be gratefulConcerning