Several possability table constraint?

master_table_1 (report_id) single

master_table_2 (report_id) single

child_table_1 (report_id) not unique

You can create an FK constraint on child_table_1 where the report_id can exist on one of the master_tables?

You can't do that with a standard foreign key.

Without knowing the details - I'd probably looking to change the design instead of using a trigger. Assuming that there is at least a few common attributes - create a parent table and using views if you want objects that can be used to represent your two existing parent tables.

Tags: Database

Similar Questions

  • Remove the performance of a large table or several small tables.

    I have a table with 30 million lines, that is used in a statistic application developed in home treatment.

    In the process, there is an application that will scan old records and then remove them from the database.

    I'm looking for a way to improve it, and I am currently faced with alternatives:

    Option #1
    Separate the old records into several smaller tables, and then run several copies of the application, a single instance of the application by the smaller table.

    Option #2
    Use additional criteria to when choosing the rows of the table (which would be indexed on), an execution mulltiple of copies of the application based on the criteria.

    From a logistical point of view, I'd prefer Option #2, my only concern with him is what's performance comparrison between:

    50 processes Delete form 50 small individual tables with 100,000 rows in each
    vs
    50 to a table with more than 30 million lines removal process

    Anyone has any experience on a preview?

    We use an instance of Oracle 9i, no partitioning.

    Unfortunately I don't have a lot of control in the application or make major changes to Oracle.

    940507 wrote:
    It redundant seams, one of the reasons why I prefer Option 2, using additional criteria...

    I just need to make sure that when 20 process attempts to remove it from the same table with 30 + million lines, the contetion on the updating of the table, index... will not introduce a point of suffocation.

    This can vary widely based on the distribution of data and model of data access. Oracle accesses data in blocks, so if someone updates an another line of the block while you delete, you could get a transaction wait. For playback from your deletion, Oracle is good, not blocking, but compromise can be a lot of waiting. If your data in the table such as two of your processes to remove from the same block, you could come back here crying on the performance and have people laugh design.

    Rather than the mud things with more java spawning process, you may need to perform these deletions by a single stored procedure with very specific criteria. Then, rather that dealing with the issues of contention, you serialize everything to go as soon as possible and reduce to a minimum the block copy and cancel demand to keep multiuser. Oracle is biased in favor of adding data instead of delete, add will always be potentially more fast-able.

    Think about this: http://jonathanlewis.wordpress.com/2011/04/19/more-cr/

  • Best approach to join several statistical tables in one

    I read different approaches to join several statistical tables in one, they all have a column 'productobjectid '.

    I want to get all the data for each product and put it in excel, then output a jpg cfchart with statistics.

    How would you do that, the part of sql?

    Thank you.

    Your "abiguous" is caused when you reference multiple tables in your SQL query that have the same field name.

    for example

    TableA a field 'ID '.

    TableB also has a field named "ID".

    If your select statement was:

    SELECT *.

    OF inner join TableA TableB on TableA.myField = TableB.myField

    WHERE ID = 4

    then SQL would be panic because he doesn't know which field ID in which table you are trying to access.  Your best bet is always prefix your domain names with the name of your table (or an alias - alias are very useful if you have long table names) when you do a Select statement.

  • Several spreadsheet tables

    Hello

    I have a vi of this process, data files and saves the analysis on a new file (it's a 2D table). What is done in a loop for to allow several files to be processed with the intervention of the user. Instead of save a new file for analysis each iteration, I would record all the data analyzed in a single file. For example:

    Cable #11

    x y z

    1 2 3

    4 5 6

    Cable #12

    4 5 4

    3-2-2

    .

    .

    .

    .

    I have two problems:

    I know how to insert headers, but how can I insert a string after each table?

    How to record all paintings on a table? I tried to take the spreadsheet on the for function loop, but it did not work.

    I'll appreciate any input,


  • To overcome the error of table constraint

    Hi guys,.

    I have the tables below

    T1

    DAT_COLIDAMOUNT
    11 OCTOBER 05130
    12 OCTOBER 05120
    16 NOVEMBER 05120

    Periods

    START_DATEEND_DATEIDFLAG
    30-SEP-0513 OCTOBER 051N
    12 OCTOBER 0514 NOVEMBER 051THERE
    15 NOVEMBER 0515 DECEMBER 051N

    I need to compare dates i.e. table T1 dat_col between start and closing date of the periods with indicator N table and query again with it, something like that

    Select * from T1 a, b of periods

    where a.id = b.id

    and a.DAT_COL between b.START_DATE and b.end_Date

    and b.flag = order of "n" of dat_col;

    DAT_COLIDAMOUNTSTART_DATEEND_DATEID_1FLAG
    11 OCTOBER 0513030-SEP-0513 OCTOBER 051N
    12 OCTOBER 0512030-SEP-0513 OCTOBER 051N
    16 NOVEMBER 0512015 NOVEMBER 0515 DECEMBER 051N

    Select * from T1 a, b of periods

    where a.id = b.id

    and a.DAT_COL between b.START_DATE and b.end_Date

    and b.flag = 'Y' order of dat_col.

    DAT_COLIDAMOUNTSTART_DATEEND_DATEID_1FLAG
    12 OCTOBER 0512012 OCTOBER 0514 NOVEMBER 051THERE

    I try insert the output above translated by master table with primary key column on dat_col and id, since the result of the query above in duplicate which will result in a violation of primary key. Is there a way to somehow without changing the primary key

    ID of the dat_col amount

    Scripts:

    CREATE TABLE 'T1 '.

    (DATE OF THE 'DAT_COL',

    The "ID" NUMBER

    'AMOUNT' NUMBER (10.0)

    );

    CREATE TABLE 'PERIODS '.

    ("START_DATE" DATE,

    "END_DATE" DATE,

    The "ID" NUMBER

    'FLAG' CHAR (1 BYTE)

    );

    Insert into T1 (DAT_COL, ID, AMOUNT) values (to_date('11-OCT-05','DD-MON-RR'), 1, 30);

    Insert into T1 (DAT_COL, ID, AMOUNT) values (to_date('12-OCT-05','DD-MON-RR'), 1, 20);

    Insert into T1 (DAT_COL, ID, AMOUNT) values (to_date('16-NOV-05','DD-MON-RR'), 1, 20);

    Insert into PERIODS (start_date, end_date, ID, FLAG) values (to_date('30-SEP-05','DD-MON-RR'),to_date('13-OCT-05','DD-MON-RR'),1,'N');

    Insert into PERIODS (start_date, end_date, ID, FLAG) values (to_date('12-OCT-05','DD-MON-RR'),to_date('14-NOV-05','DD-MON-RR'),1,'Y');

    Insert into PERIODS (start_date, end_date, ID, FLAG) values (to_date('15-NOV-05','DD-MON-RR'),to_date('15-DEC-05','DD-MON-RR'),1,'N');

    If you wait several rows with the same value of date_col in this table date_col is not to be used as your primary key.

    Either change what you want to store in the table or change the primary key.

  • Large partition table with the primary key referenced by several child tables

    I tested this procedure and it works perfectly. Although when children tables refer to the key column, after execution of dbms_redefinition.finish_redef_table they all are referring to table exercised. In test I deal forced FK droped on tables children and recreated them. What could be the best way to do this in this scenario?

    Thanks for all comments/opinions!

    Are you sure? You should end up with the original FK constraint (disabled and renamed to have a prefix of $$ TMP) pointing to the staging table (which is of course the famous original table), and allowed a new constraint with the correct name, pointing to the new version of the table. so all you need to do to bring order to the top is to remove the constraint of renamed.

    This running-in of the SCOTT schema clearly indicates:

    create the table deptint in select * from dept where 1 = 2;

    exec dbms_redefinition.start_redef_table (user, 'dept', 'deptint')

    n number of var

    exec dbms_redefinition.copy_table_dependents (user, "dept', 'deptint', DBMS_REDEFINITION.") CONS_ORIG_PARAMS, TRUE, TRUE, TRUE, TRUE,: n)

    Print n

    exec dbms_redefinition.finish_redef_table (user, 'dept', 'deptint')

    Select CONSTRAINT_NAME, CONSTRAINT_TYPE, TABLE_NAME, user_constraints STATE;

  • How can I disable all table constraints

    Hi all

    I use Oracle SQL Developer

    I am trying to disable all constraints of tables so I can truncate the tables.

    That's what I came with, but it does not work. Can someone help me please.

    Thanks in advance,

    Kevin

    Start

    for news (select fk.owner, fk.constraint_name, fk.table_name

    of all_constraints fk, pk all_constraints

    where fk. Constraint_type = 'R' and

    PK. Owner = "EIFILTERED" and

    FK.r_owner = pk.owner and

    FK. R_CONSTRAINT_NAME = pk. Constraint_name and

    PK. TABLE_NAME = 'ADDRESS', 'ALTERNATENAME', 'ACTIVITY', 'CASEEVENT.

    ) loop

    run immediately ' ALTER TABLE ' ' |. ' cur. Owner: ' "."' | cur.table_name |' "FORCED TO CHANGE" "|" " cur.constraint_name |' "DISABLE";

    end loop;

    end;

    Hello

    Try this;

    Start

    for news (select fk.owner, fk.constraint_name, fk.table_name

    of all_constraints fk, pk all_constraints

    where fk. Constraint_type = 'R' and

    PK. Owner = "EIFILTERED" and

    FK.r_owner = pk.owner and

    FK. R_CONSTRAINT_NAME = pk. Constraint_name and

    PK. Table-name in ('ADDRESS', 'ALTERNATENAME', 'ACTIVITY', 'CASEEVENT'( )

    ) loop

    run immediately ' ALTER TABLE ' ' |. ' cur. Owner: ' "."' | cur.table_name |' "FORCED TO CHANGE" "|" " cur.constraint_name |' "DISABLE";

    end loop;

    end;

    HTH,

    Pradeep

  • Table constraints

    I would like to create a table by using an existing table, which contains all the constraints in the existing table. If I created the table using the existing table on the constraints. All are the constraints will carry forward and if certain constraints goes not to the new table... Why is it so?

    I think only forced NOT NULL are re-created when you do a DEC.

  • doubt about table constraints - subscribe - search

    Hello friends,
    Can you please clarify this question for me:

    I have a table called INVESTIGATIONS:

    SOURCE_ID
    AGENT_ID
    INQUIRY_ID
    CLIENT_FK
    BEDS
    UNIT_TYPE
    PROJECT
    INQUIRY_STATUS
    LEAD_STATUS

    DEAL_TYPE
    BUDGET
    ADMIN_FEED
    AGENT_FEED

    I had to create * 9 look it up * tables to provide values for the first 9 columns in table of the requests for INFORMATION.

    What causes a huge footprint on the database:

    -Join between 9 tables. -> > 9 FK on table of investigations.
    -9 NOT check constraints NULL on information to the array for the first 9 columns.

    {message: id = 10345002}

    This is the required report:
    select 
    
             "INQUIRY_STATUS"."INQUIRY_STATUS" as "INQUIRY_STATUS",
          "AGENTS"."AGENT_NAME" as "AGENT_NAME",
          "SOURCES"."SOURCE_NAME" as "SOURCE_NAME",
          "UNIT_TYPES"."UNIT_TYPE" as "UNIT_TYPE",
          "COMPLEXES"."COMPLEX_NAME_EN" as "COMPLEX_NAME_EN",
          "BEDS"."BED_NUMBER" as "BED_NUMBER",
          "INQUIRIES"."INQUIRY_ID" as "INQUIRY_ID",
           case when "INQUIRIES"."DEAL_TYPE" = 'S' then 'Sale' else 'Rent' end as "DEAL_TYPE",
          "INQUIRIES"."MOVING" as "MOVING",
          "INQUIRIES"."BUDGET" as "BUDGET",
          "INQUIRIES"."ADMIN_FEED" as "ADMIN_FEED",
          "INQUIRIES"."AGENT_FEED" as "AGENT_FEED",
          "CLIENTS"."FIRST_NAME" as "FIRST_NAME" ,
             "LEAD_STATUS"."LEAD_STATUS" AS "LEAD_STATUS"
    
    
     from      "INQUIRIES" "INQUIRIES" INNER JOIN  
             "CLIENTS" "CLIENTS" ON  ("CLIENTS"."CLIENT_ID"="INQUIRIES"."CLIENT_FK")
    
    INNER JOIN  
             "LEAD_STATUS" "LEAD_STATUS" ON  ("LEAD_STATUS"."STATUS_ID" = "INQUIRIES"."LEAD_STATUS")
    INNER JOIN  
           "BEDS" "BEDS" ON ("BEDS"."BED_ID"="INQUIRIES"."BEDS")
    INNER JOIN  
          "COMPLEXES" "COMPLEXES" ON ("COMPLEXES"."COMPLEX_ID"="INQUIRIES"."PROJECT")
    INNER JOIN  
          "UNIT_TYPES" "UNIT_TYPES" ON ("UNIT_TYPES"."UNIT_TYPE_ID"="INQUIRIES"."UNIT_TYPE")
    INNER JOIN  
          "SOURCES" "SOURCES" ON  ("SOURCES"."SOURCE_ID"="INQUIRIES"."SOURCE_ID")
    INNER JOIN  
          "AGENTS" "AGENTS" ON ("AGENTS"."AGENT_ID"="INQUIRIES"."AGENT_ID")
    INNER JOIN  
             "INQUIRY_STATUS" "INQUIRY_STATUS" ON ("INQUIRY_STATUS"."STATUS_ID" = "INQUIRIES"."INQUIRY_STATUS")
    
    where :P1_phone is null or TRIM(:P1_phone) in ("CLIENTS".mobile1,"CLIENTS".mobile2,"CLIENTS".land_line)
      
    Kind regards
    Fateh

    Fateh says:
    Hello friends,
    Can you please clarify this question for me:

    I had to create * 9 look it up * tables to provide values for the first 9 columns in table of the requests for INFORMATION.

    Which causes a huge footprint on the database?

    N ° this is a database was built for. Especially an oracle database can handle this exceptionally well. The positive point is the optimizer (cbo = cost based optimizer) is the most effective way how to deal with such a simple select statement. Provided that the CBO has enough and relevant information, which means that statistics should be collected.

    I just noticed that this filter condition is not a good way to get quick access to your data in tables.

    where :P1_phone is null or TRIM(:P1_phone) in ("CLIENTS".mobile1,"CLIENTS".mobile2,"CLIENTS".land_line)
    

    The datamodel is not properly normalized, so instead of making a simple comparison like

    :p1_phone = clients.phonenumber 

    you need such a compex or condition (IN = GOLD)

    But it wasn't the question, right?

    Published by: Sven w. on August 20, 2012 18:33

  • Inserting data in several related tables using the database

    Hello world
    I'm working on a BPM application using Oracle BPM 11.1.1.5.0 and JDeveloper 11.1.1.5.0.

    In my database, I have two tables, loan and guarantee that are related by a field named employeeID (PK on loan) and FK in warranty.
    Each line can have several lines of guarantee.

    At this point, I'm doing an entry form for the user to insert data in the two tables.

    I did successfully before with a single table that has no relations.

    The way I'm doing here is, after the creation of the database successfully adapter, a type of LoanCollection is created in the types module, which can be used to create business objects and data objects of.

    The problem is when I create an object of type loanCollection process data and then create a UI generated automatically on that basis, only the fields in the primary table (the Table of loan) appear in the form.
    On the other hand, if I create a business object based on the LoanSchema, the form for all of the two tables is created automatically (the loan as a form, the guarantee in a table), but then, when I try to access it in the section processing service mission which calls the database adapter, I have no access to such.
    In fact, the only type which can be used in the service task is the process based on the loanCollection data object.

    To summorize, I have to use the type of business for my UI object to include all the fields in both tables, so I have to use the data object from the collection process in the transformation of service task dialog box.
    And I can't find a way to map to another.

    Can someone help me with this please?
    Thank you very much

    Try to follow these steps.

    1. create a new module in your catalogue our BPM project management section
    2. in this new module create 3 Business Objects - (LoanBusinessObject, GuaranteeBusinessObject and GuaranteeArrayBusinessObject)
    3. Add the attributes appropriate to the LoanBusinessObject and the GuaranteeBusinessObject so that they mimic your database tables, then to the GuaranteeArrayBusinessObject add an array of type attribute GuraranteeBusinessObject
    4. now you need to create two process data objects, type loanProcessObject LoanBusinessObject and type guaranteesProcessObject GuaranteeArrayBusinessObject
    5. as inputs to your human task adds the loanProcessObject and guaranteesProcessObject, these should now be available in your data controls and can be used to auto generate the form
    6. in your dbadapter you'll then use XSL Transformation and use for each so that it will write the data to the ready table and all the line items of warranty for the warranty table.

  • Site search using several database tables

    I am able to search my site for certain keywords using a single database table for example I can search for the butterflies using butterflies search table list. However I would like to have a global search for all types of wild animals on my ex of site from visitors to the homepage can search all species with the word Green in the name. If the search function needs to look at a range of tables, for example floralist; fungilist etc. I have problems with the sort code - I'm a bio-scientist a programmer so any suggestions would be appreciated.

    Here is my code for the search using a single table:

      <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
    {
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      }
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;    
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      }
      return $theValue;
    }
    }
    $colname_search11 = "-1";
    if (isset($_POST['species'])) {
      $colname_search11 = $_POST['species'];
    }
    mysql_select_db($database_cjwebsite, $cjwebsite);
    $query_search11 = sprintf("SELECT * FROM `moths searchl ist` WHERE species LIKE %s", GetSQLValueString("%" . $colname_search11 . "%", "text"));
    $search11 = mysql_query($query_search11, $cjwebsite) or die(mysql_error());
    $row_search11 = mysql_fetch_assoc($search11);
    $totalRows_search11 = mysql_num_rows($search11);
    ?>
    


    followed by:

    <div class="results">
          <?php do { ?>
            <ul>
              <li><a href="Insects/Moths/species.php?id=<?php echo $row_search11['id']; ?>"><?php echo $row_search11['species']; ?></a></li>
            </ul>
            <?php } while ($row_search11 = mysql_fetch_assoc($search11)); ?>
          </ul>
    


    My address is www.hebridensis.co.uk

    Thank you

    Christine

    Hi Chris,

    If the fields are basically the same for all the tables, seems, it would be better to merge them into a single table of "wildlife" and add a field "category", in this way you only ever have to query this table even if several categories are added, each record would have a unique id, and you could open up opportunities to do research with no dependents drop-down menus (i.e. a drop down menu allows the user to select) a category and then will fill up with the category-based species).

    It wouldn't be too hard to create the new table, but I wonder how many other elements of your site could be affected by the change.

    Hope this helps,

    Greg

  • Doubt about Table constraints

    I have a table ancienne_table to say. Now, I want to create another table say new_table that must be EXACTLY the same as ancienne_table. When I say 'EXACTLY' the same thing, I mean the data type of the columns, constraints (if any), the primary key and foreign keys (if any) and any other thing must be the same as ancienne_table. Only the lines (or data) will vary between ancienne_table and new_table and nothing else.

    Which application should I ues to achieve? Pls advice!

    Published by: TuX4EvA on December 18, 2009 02:00

    You can watch the DBMS_METADATA package.

    For example:

    sql> set long 4000
    sql> select dbms_metadata.get_ddl('TABLE','EUL_GW_COLS','ODM_USER') from dual;
    
    DBMS_METADATA.GET_DDL('TABLE','EUL_GW_COLS','ODM_USER')
    --------------------------------------------------------------------------------
    
      CREATE TABLE "ODM_USER"."EUL_GW_COLS"
       (    "C_O_SCHEM_NAME" VARCHAR2(64) NOT NULL ENABLE,
            "C_O_OBJ_NAME" VARCHAR2(64) NOT NULL ENABLE,
            "C_COL_NAME" VARCHAR2(64) NOT NULL ENABLE,
            "C_SQL_DERIVATION" VARCHAR2(240),
            "C_DATATYPE" VARCHAR2(70) NOT NULL ENABLE,
            "C_NULL_INDICATOR" VARCHAR2(10) NOT NULL ENABLE,
            "C_HIDDEN" VARCHAR2(1) NOT NULL ENABLE,
            "C_LENGTH" NUMBER(22,0),
            "C_DECIMAL_PLACES" NUMBER(22,0),
            "C_DISP_NAME" VARCHAR2(100),
            "C_HEADING" VARCHAR2(240),
            "C_DESCRIPTION" VARCHAR2(240),
            "C_DISP_SEQ" NUMBER(22,0),
            "C_DISP_LENGTH" NUMBER(22,0),
            "C_CASE_DISPLAY" VARCHAR2(10),
            "C_CASE_STORAGE" VARCHAR2(10),
            "C_ALIGNMENT" VARCHAR2(10),
            "C_FORMAT_MASK" VARCHAR2(100),
            "C_C_LOV_SCHEM_NAME" VARCHAR2(64),
            "C_C_LOV_OBJ_NAME" VARCHAR2(64),
            "C_C_LOV_COL_NAME" VARCHAR2(64),
            "C_DEF_ROLLUP_FUNC" VARCHAR2(70),
            "C_DISP_NULL_VALUE" VARCHAR2(240),
            "C_ORD_CLAUSE_POS" NUMBER(22,0),
            "C_ORD_DIRECTION" VARCHAR2(10),
            "C_PLACEMENT" VARCHAR2(10),
            "C_CONTENT_TYPE" VARCHAR2(100),
             CONSTRAINT "EUL_GW_COLS_UNQ" UNIQUE ("C_O_SCHEM_NAME", "C_O_OBJ_NAME", "C_COL_
    NAME")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
    

    It will give you the exact DDL to create the same table with all the constraints in place, including the primary key, foreign key, and not NULL values.
    You need to only replace the names for anything that is appropriate for you.

    LW

  • Table constraint

    Advice needed.
    I have a situation like this:
    A table:
    Create table gala_occasion)
    Hero varchar2,
    event_type varchar2);

    event_type can be, for example, BIRTHDAY or Bachelor PARTY only.

    I need to keep adding more of a funeral for the same hero, but of is not to prevent the addition of a county of bithdays.
    What is the best way to apply this constraint?

    Published by: JustasVred on March 27, 2009 11:58

    You can create a unique index

    CREATE UNIQUE INDEX enforce_my_constraint
       ON gala_occasion( (CASE WHEN event_type = 'BURIAL' THEN hero ELSE NULL END) );
    

    Since the non-enterrement event will not be indexed, you can have as many of those as you want. But you can have a funeral for a particular hero.

    Of course, I guess that your real table has a primary key, foreign key that refers to a table of heroes, etc..

    Justin

  • Cannot exp several order tables

    I use the command to clear data from several tables, but some information on the raised error and dump finished, but when I remove some of the tables below will be dump successfully, if the command is too long? If I need to export multiple tables, how can I do? Use the settings file instead?

    ================================
    EXP-00019: failure of the treatment of parameters, type 'HELP EXP = Y' help
    EXP-00000: export completed unsuccessfully
    ================================


    exp user/password@sid buffer=2000000 compress=yes recordlength=64000 tables=(Catalog_Attribute_Bool,Catalog_Attribute_Code,Catalog_Attribute_Date,Catalog_Attribute_Date_Range,Catalog_Attribute_Num,Catalog_Attribute_Num_Range,Catalog_Attribute_Group,Catalog_Attribute_Object,Catalog_Attribute_Str_EnPoint_Attribute_Bool,Point_Attribute_Code,Point_Attribute_Date,Point_Attribute_Date_Range,Point_Attribute_Num,Point_Attribute_Num_Range,Point_Attribute_Group ,Point_Attribute_Object,Point_Attribute_Str_EnBucket_Attribute_Bool,Bucket_Attribute_Code,Bucket_Attribute_Date,Bucket_Attribute_Date_Range,Bucket_Attribute_Num,Bucket_Attribute_Num_Range,Bucket_Attribute_Group,Bucket_Attribute_Object,Bucket_Attribute_Str_En) query=\"where supplier_id in (select supplier_id where trunc(L_Upd_Date) > to_date('2008-12-22','YYYY-MM-DD'))\" file=d:/cw.dmp.base.attr

    Hellio,

    Create a parameter file and lanuch export using the settings file, another question query clause attribute is applied to all tables or others. I don't think its list of your table, also try the export help without query parameter using the parfile

    parfile filename.par name of user and password exp =

    #filename.par
    buffer = 2000000
    Compress = yes
    RecordLength = 64000
    tables is Catalog_Attribute_Bool, Catalog_Attribute_Code, Catalog_Attribute_Date, Catalog_Attribute_Date_Range, Catalog_Attribute_Num, Catalog_Attribute_Num_Range.
    Catalog_Attribute_Group, Catalog_Attribute_Object, Catalog_Attribute_Str_EnPoint_Attribute_Bool, Point_Attribute_Code, Point_Attribute_Date, Point_Attribute_Date_Range,
    Point_Attribute_Num, Point_Attribute_Num_Range, Point_Attribute_Group, Point_Attribute_Object, Point_Attribute_Str_EnBucket_Attribute_Bool, Bucket_Attribute_Code,
    Bucket_Attribute_Date, Bucket_Attribute_Date_Range, Bucket_Attribute_Num, Bucket_Attribute_Num_Range, Bucket_Attribute_Group, Bucket_Attribute_Object, Bucket_Attribute_Str_En)
    query =------"where supplier_id in (select supplier_id where trunc (L_Upd_Date) > to_date('2008-12-22','YYYY-MM-DD')) \" -you do not have escape \ if you use parfile. "
    queue = CW.dmp.base.attr

    Here are some restrictions for the query parameter
    The QUERY parameter cannot be specified for the complete user or tablespace mode exports.
    The QUERY parameter must be applicable to all the specified tables.
    The QUERY parameter cannot be specified in a direct path export (DIRECT = y)
    Cannot specify the QUERY parameter for tables with nested tables inside.
    You cannot determine the contents of the export file if the data is the result of a QUERY to export.

  • Several 2-table join

    Hello

    I'm trying to join 4 tables in one column and I would return starting with the select statement.

    Tables-> e_sehir

    -> e_pano

    -> e_haberlesme_unitesi

    -> e_io_modulu


    common point

    e_sehir.ID -> e_pano.sehir_ID

    e_sehir.ID -> e_haberlesme_unitesi .sehir_ID

    e_sehir.ID -> e_io_modulu .sehir_ID


    I try to write code below but return of same value. Help me please

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

    / * Formatted on 10/11/2015 12:51:59 AM (PS5 v5.256.13226.35538) * /.

    SELECT S.name,

    COUNT (p.id),

    COUNT (hu.id),

    COUNT (io.id)

    Of e_pano p

    INNER JOIN e_sehir s ON P.IL_ID = s.ID

    INNER JOIN e_haberlesme_unitesi hu ON s.ID = HU. IL_ID

    INNER JOIN e_io_modulu io ON s.ID is IO. IL_ID

    GROUP BY (s.name);

    On my phone, so excuse the formatting.

    In general, I do not count indictment join if I select this table, I use where exists, which may force the optimizer to use loops nested with short circuit. The optimizer will always prefer the concatenation (optimizer speak for union all) in the resolution of the data set, but there are always dependencies on the data and indexes, in any case, I would expect something as below can be quite fast:

    Select sum (pcount) as pcount, sum (hcount) as hcount, sum (ecount) as ecount

    de)

    Select pcount County (p.id), to_number (null) hcount, to_number (null) ecount,

    of e_pano p

    where exists (select null

    of s e_sehir

    where s.id = p.il_id)

    Union of all the

    Select the value null, count (hu.id), null

    of e_haberlesme_unitesi hu

    where exists (select null

    s e_sehir

    where s.id = hu.il_id

    Union of all the

    Select null, null, count (io.id)

    of e_io_modulu io

    where exists (select null

    of s e_sehir

    where s.id = io.il_id)

    )

Maybe you are looking for

  • How can I use recovery on Satellite M40X CD-ROMs

    I have the satellite m40x... I have 2 partations in its hard drive... I want just partation format or recovery (c) not the hard drive how do I use the recovery cd, it gives me three options that you can choose if you please help me?

  • Qosmio X 770-music stops when my TV shuts

    Hello! Okay, this sounds very strange, but I noticed that whenever I stop my TV (LG 42LD450) music on my laptop stops. At first, I thought it was the remote control, but it also stops when I stopped the TV by pressing the button on the TV itself. So

  • Streaming waveform and waveform scripting - each other?

  • Unable to create an account

    Whenever I go to create an account, I get this message "submit Ajax failed: Error = 403, forbidden" what is it and how to fix? I have a MacBook Pro under Mountain Lion

  • Please help with error Outlook Express

    I get this error when trying to get my mail in Outlook Express "an unknown error has occurred. "Account:"pop.west.cox.net", server: 'pop.west.cox.net', Protocol: POP3, Port: 110, secure (SSL): no, error number: 0x800C0133" I use for years without pro