Exists and not exists

hi my requirement is
id column exists in all tables means
view v , tables A,B,C
i want to copmare like..
the id's which are available in V and not available in the three tables A,B,C
is this correct one or any simplify
select id from v
where not exists(select id from a where a.id=v.id)
and not exists(select id from b where b.id=v.id)
and not exists(select id from c where c.id=v.id)
thanks

bpat wrote:
You are welcome.
Just one small comment on the solution, since we do not require any sort of sorting, I would prefer to use UNION ALL.Bpat:
I would probably test it both ways. Because of the minus, there is going to be two sort uniques in there somewhere. Each half of the minus has to be sorted and distincted before the minus can be done.
I used your sample to generate real tables, just to eliminate the effects of the hierarchical query, and it looks to me like, at least for a small sample set, union or union all are exactly the same, right down to the plan_id.
SQL> SELECT id
  2  FROM t_data1 t1
  3  minus
  4  (select id from t_data2
  5   union
  6   select id from t_data3
  7   union
  8   select id from t_data4);
Execution Plan
Plan hash value: 2968485990
| Id  | Operation            | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT     |         |    20 |   650 |    12  (84)| 00:00:01 |
|   1 |  MINUS               |         |       |       |            |          |
|   2 |   SORT UNIQUE        |         |    20 |   260 |     3  (34)| 00:00:01 |
|   3 |    TABLE ACCESS FULL | T_DATA1 |    20 |   260 |     2   (0)| 00:00:01 |
|   4 |   SORT UNIQUE        |         |    20 |   650 |    12  (84)| 00:00:01 |
|   5 |    UNION-ALL         |         |       |       |            |          |
|   6 |     TABLE ACCESS FULL| T_DATA2 |     5 |    65 |     2   (0)| 00:00:01 |
|   7 |     TABLE ACCESS FULL| T_DATA3 |    10 |   130 |     2   (0)| 00:00:01 |
|   8 |     TABLE ACCESS FULL| T_DATA4 |    15 |   195 |     2   (0)| 00:00:01 |
Note
   - dynamic sampling used for this statement
Statistics
          0  recursive calls
          0  db block gets
         12  consistent gets
          0  physical reads
          0  redo size
        588  bytes sent via SQL*Net to client
        488  bytes received via SQL*Net from client
          2  SQL*Net roundtrips to/from client
          2  sorts (memory)
          0  sorts (disk)
          5  rows processed
SQL> SELECT id
  2  FROM t_data1 t1
  3  minus
  4  (select id from t_data2
  5   union all
  6   select id from t_data3
  7   union all
  8   select id from t_data4);
Execution Plan
Plan hash value: 2968485990
| Id  | Operation            | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT     |         |    20 |   650 |    12  (84)| 00:00:01 |
|   1 |  MINUS               |         |       |       |            |          |
|   2 |   SORT UNIQUE        |         |    20 |   260 |     3  (34)| 00:00:01 |
|   3 |    TABLE ACCESS FULL | T_DATA1 |    20 |   260 |     2   (0)| 00:00:01 |
|   4 |   SORT UNIQUE        |         |    20 |   650 |    12  (84)| 00:00:01 |
|   5 |    UNION-ALL         |         |       |       |            |          |
|   6 |     TABLE ACCESS FULL| T_DATA2 |     5 |    65 |     2   (0)| 00:00:01 |
|   7 |     TABLE ACCESS FULL| T_DATA3 |    10 |   130 |     2   (0)| 00:00:01 |
|   8 |     TABLE ACCESS FULL| T_DATA4 |    15 |   195 |     2   (0)| 00:00:01 |
Note
   - dynamic sampling used for this statement
Statistics
          0  recursive calls
          0  db block gets
         12  consistent gets
          0  physical reads
          0  redo size
        588  bytes sent via SQL*Net to client
        488  bytes received via SQL*Net from client
          2  SQL*Net roundtrips to/from client
          2  sorts (memory)
          5  rows processedEven a simple two table minus gets 2 sorts.
SQL> SELECT id
  2  FROM t_data1 t1
  3  minus
  4  select id from t_data2;
15 rows selected.
Execution Plan
Plan hash value: 1776821228
| Id  | Operation           | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT    |         |    20 |   325 |     6  (67)| 00:00:01 |
|   1 |  MINUS              |         |       |       |            |          |
|   2 |   SORT UNIQUE       |         |    20 |   260 |     3  (34)| 00:00:01 |
|   3 |    TABLE ACCESS FULL| T_DATA1 |    20 |   260 |     2   (0)| 00:00:01 |
|   4 |   SORT UNIQUE       |         |     5 |    65 |     3  (34)| 00:00:01 |
|   5 |    TABLE ACCESS FULL| T_DATA2 |     5 |    65 |     2   (0)| 00:00:01 |
Note
   - dynamic sampling used for this statement
Statistics
          0  recursive calls
          0  db block gets
          6  consistent gets
          0  physical reads
          0  redo size
        668  bytes sent via SQL*Net to client
        488  bytes received via SQL*Net from client
          2  SQL*Net roundtrips to/from client
          2  sorts (memory)
          0  sorts (disk)
         15  rows processedJohn

Similar Messages

  • Exist and not Exist

    Hello,
    I am doing following validation, when user does not have admin privileges, it should display error page - "User does not have admin privileges".
    SELECT 1 FROM apex_workspace_apex_users WHERE
    user_name =:P6_USERNAME
    AND is_admin = 'Yes'
    if
    I am confused over the use of "Exist" and "Not Exist" in the condition. Can you please help me out with this.

    I am confused over the use of "Exist" and "Not Exist" in the condition. Can you please help me out with this.The validation is successful if the query meets the condition:
    - "Exists": succeeds if the query returns one or more rows
    - "Not Exists": succeeds if the query returns no rows
    So for:
    SELECT 1 FROM apex_workspace_apex_users WHERE
    user_name =:P6_USERNAME
    AND is_admin = 'Yes'you need an "Exists" validation as you require the validation to succeed if there is a row that satisfies the condition that a user with that username and admin privileges exists, and return an error message if it doesn't.
    (Please update your forum profile with a better handle than "user9065603")

  • Decode for EXISTS and  NOT EXISTS conditions

    Hello all,
    I need to use either EXISTS or NOT EXISTS before the subquery based on the situation. I have written a test query but its erroring out. Please check it.
    select 1 from dual
    where DECODE('A','A',EXISTS ,NOT EXISTS)
    (select ename from EMP
    where ename = 'SCOTT')
    Thank You
    KK

    DECODE will not replace part of the query. Functions don't work that way.
    (It won't work if you put EXISTS and NOT EXISTS in quotes, either.)
    What you want is something like
    WHERE (<condition> AND EXISTS...) OR (<not-condition> AND NOT EXISTS...)You can also do:
    SELECT 1
    FROM dual
    CROSS JOIN (SELECT COUNT(1) AS exists_fg FROM emp WHERE ename = 'SCOTT') ex
    WHERE (<condition> AND exists_flag > 0) OR (<not-condition> AND exists_flag = 0)This way, you don't have to include the entire WHERE EXISTS condition twice.
    -- Don

  • Does DI 11.7 support exists and non exist in where statment in dataflow

    Hi All
    Does DI support the exists and not exists iin a dataflow. I am getting and error when using it.
    Thanks

    details and options to be found here: https://boc.sdn.sap.com/node/20046

  • Not in and Not Exists

    Hi everyone,
    I need some explanation on why the index is not being used in one of my queries.
    Here are the queries:
    SELECT COUNT (1)
    FROM (SELECT hdr.ALLOC_HDR_SEQ_NBR hdrnbr
    FROM sm_vda_allocation_header hdr
    INNER JOIN
    sm_vda_type vdatype
    ON hdr.vda_typ_cd = vdatype.vda_typ_cd
    WHERE
    vdatype.SAP_POST_TYP_CD = 'JE'
    AND vdatype.vda_alloc_flg = 'Y'
    AND hdr.vda_liab_flg IS NULL
    AND hdr.sap_extrct_dt IS NULL
    AND hdr.ALLOC_HDR_SEQ_NBR NOT IN
    (SELECT alloc_hdr_seq_nbr
    FROM sm_vda_allocation_detail));
    return 0 rows.
    explain plan::
    Plan
    SELECT STATEMENT CHOOSECost: 671 Bytes: 26 Cardinality: 1                          
         8 SORT AGGREGATE Bytes: 26 Cardinality: 1                     
              7 HASH JOIN Cost: 671 Bytes: 293,254 Cardinality: 11,279                
                   1 TABLE ACCESS FULL SM_APPL.SM_VDA_TYPE Cost: 5 Bytes: 56 Cardinality: 7           
                   6 MERGE JOIN ANTI Cost: 665 Bytes: 281,106 Cardinality: 15,617           
                        3 TABLE ACCESS BY INDEX ROWID SM_APPL.SM_VDA_ALLOCATION_HEADER Cost: 496 Bytes: 241,860 Cardinality: 20,155      
                             2 INDEX FULL SCAN UNIQUE SM_APPL.SM_VDA_ALLOCATION_HEADER_PK Cost: 438 Cardinality: 20,450
                        5 SORT UNIQUE Cost: 169 Bytes: 417,480 Cardinality: 69,580      
                             4 INDEX FAST FULL SCAN NON-UNIQUE SM_APPL.SM_VDA_ALLOCATION_DETAIL_FK_I Cost: 86 Bytes: 417,480 Cardinality: 69,580
    2nd query::
    SELECT COUNT (1)
    FROM (SELECT hdr.ALLOC_HDR_SEQ_NBR hdrnbr
    FROM sm_vda_allocation_header hdr
    INNER JOIN
    sm_vda_type vdatype
    ON hdr.vda_typ_cd = vdatype.vda_typ_cd
    WHERE
    vdatype.SAP_POST_TYP_CD = 'JE'
    AND vdatype.vda_alloc_flg = 'Y'
    AND hdr.vda_liab_flg IS NULL
    AND hdr.sap_extrct_dt IS NULL
    AND NOT exists
    (SELECT 1
    FROM sm_vda_allocation_detail b where
    hdr.ALLOC_HDR_SEQ_NBR = b.ALLOC_HDR_SEQ_NBR));
    explain plan:::
    Plan
    SELECT STATEMENT CHOOSECost: 831 Bytes: 20 Cardinality: 1                     
         6 SORT AGGREGATE Bytes: 20 Cardinality: 1                
              5 FILTER           
                   3 HASH JOIN Cost: 828 Bytes: 14,560 Cardinality: 728      
                        1 TABLE ACCESS FULL SM_APPL.SM_VDA_TYPE Cost: 5 Bytes: 56 Cardinality: 7
                        2 TABLE ACCESS FULL SM_APPL.SM_VDA_ALLOCATION_HEADER Cost: 822 Bytes: 12,096 Cardinality: 1,008
                   4 INDEX RANGE SCAN NON-UNIQUE SM_APPL.SM_VDA_ALLOCATION_DETAIL_FK_I Cost: 3 Bytes: 90 Cardinality: 15      
    In the 2nd query with NOT EXISTS, I see FULL table scan for SM_APPL.SM_VDA_ALLOCATION_HEADER
    In the first query, the index is used in the same place:
    2 INDEX FULL SCAN UNIQUE SM_APPL.SM_VDA_ALLOCATION_HEADER_PK Cost: 438 Cardinality: 20,450
    ALLOC_HDR_SEQ_NBR is a primary key column.
    Actually NOT IN and NOT EXISTS both used index for the second inner table (SM_APPL.SM_VDA_ALLOCATION_DETAIL).
    But NOT exists is not using the index for the first table but not in is using.
    how come.

    872605 wrote:
    Hi everyone,
    I need some explanation on why the index is not being used in one of my queries.
    Here are the queries:
    SELECT COUNT (1)
    FROM (SELECT hdr.ALLOC_HDR_SEQ_NBR hdrnbr
    FROM sm_vda_allocation_header hdr
    INNER JOIN
    sm_vda_type vdatype
    ON hdr.vda_typ_cd = vdatype.vda_typ_cd
    WHERE
    vdatype.SAP_POST_TYP_CD = 'JE'
    AND vdatype.vda_alloc_flg = 'Y'
    AND hdr.vda_liab_flg IS NULL
    AND hdr.sap_extrct_dt IS NULL
    AND hdr.ALLOC_HDR_SEQ_NBR NOT IN
    (SELECT alloc_hdr_seq_nbr
    FROM sm_vda_allocation_detail));
    return 0 rows.
    explain plan::
    Plan
    SELECT STATEMENT CHOOSECost: 671 Bytes: 26 Cardinality: 1                          
         8 SORT AGGREGATE Bytes: 26 Cardinality: 1                     
              7 HASH JOIN Cost: 671 Bytes: 293,254 Cardinality: 11,279                
                   1 TABLE ACCESS FULL SM_APPL.SM_VDA_TYPE Cost: 5 Bytes: 56 Cardinality: 7           
                   6 MERGE JOIN ANTI Cost: 665 Bytes: 281,106 Cardinality: 15,617           
                        3 TABLE ACCESS BY INDEX ROWID SM_APPL.SM_VDA_ALLOCATION_HEADER Cost: 496 Bytes: 241,860 Cardinality: 20,155      
                             2 INDEX FULL SCAN UNIQUE SM_APPL.SM_VDA_ALLOCATION_HEADER_PK Cost: 438 Cardinality: 20,450
                        5 SORT UNIQUE Cost: 169 Bytes: 417,480 Cardinality: 69,580      
                             4 INDEX FAST FULL SCAN NON-UNIQUE SM_APPL.SM_VDA_ALLOCATION_DETAIL_FK_I Cost: 86 Bytes: 417,480 Cardinality: 69,580
    2nd query::
    SELECT COUNT (1)
    FROM (SELECT hdr.ALLOC_HDR_SEQ_NBR hdrnbr
    FROM sm_vda_allocation_header hdr
    INNER JOIN
    sm_vda_type vdatype
    ON hdr.vda_typ_cd = vdatype.vda_typ_cd
    WHERE
    vdatype.SAP_POST_TYP_CD = 'JE'
    AND vdatype.vda_alloc_flg = 'Y'
    AND hdr.vda_liab_flg IS NULL
    AND hdr.sap_extrct_dt IS NULL
    AND NOT exists
    (SELECT 1
    FROM sm_vda_allocation_detail b where
    hdr.ALLOC_HDR_SEQ_NBR = b.ALLOC_HDR_SEQ_NBR));
    explain plan:::
    Plan
    SELECT STATEMENT CHOOSECost: 831 Bytes: 20 Cardinality: 1                     
         6 SORT AGGREGATE Bytes: 20 Cardinality: 1                
              5 FILTER           
                   3 HASH JOIN Cost: 828 Bytes: 14,560 Cardinality: 728      
                        1 TABLE ACCESS FULL SM_APPL.SM_VDA_TYPE Cost: 5 Bytes: 56 Cardinality: 7
                        2 TABLE ACCESS FULL SM_APPL.SM_VDA_ALLOCATION_HEADER Cost: 822 Bytes: 12,096 Cardinality: 1,008
                   4 INDEX RANGE SCAN NON-UNIQUE SM_APPL.SM_VDA_ALLOCATION_DETAIL_FK_I Cost: 3 Bytes: 90 Cardinality: 15      
    In the 2nd query with NOT EXISTS, I see FULL table scan for SM_APPL.SM_VDA_ALLOCATION_HEADER
    In the first query, the index is used in the same place:
    2 INDEX FULL SCAN UNIQUE SM_APPL.SM_VDA_ALLOCATION_HEADER_PK Cost: 438 Cardinality: 20,450
    ALLOC_HDR_SEQ_NBR is a primary key column.
    Actually NOT IN and NOT EXISTS both used index for the second inner table (SM_APPL.SM_VDA_ALLOCATION_DETAIL).
    But NOT exists is not using the index for the first table but not in is using.
    how come.WHY MY INDEX IS NOT BEING USED
    http://communities.bmc.com/communities/docs/DOC-10031
    http://searchoracle.techtarget.com/tip/Why-isn-t-my-index-getting-used
    http://www.orafaq.com/tuningguide/not%20using%20index.html

  • Exist and no exists

    Hello,
    i need help with this query.
    how can i re-write without using the not exists.
    here is my query:
    insert into rel (id)
    select id from test a where bo ='QW' and not exists (select 1 from testing where id = a.id);
    Thanks.

    789287 wrote:
    i would like to see if i can use not in or some other way to produce the same results.Its always good to have multiple ways of doing things in case one doesn't work for some reason!
    NOT/EXISTS is probably your best bet for performance if the subquery is properly indexed, but other options include IN and INTERSECT/MINUS (depending on circumstances), something like (untested)
    insert into rel (id)
    select id from test a
    where bo ='QW'
        and id not IN (
          select id from testing where id = a.id
    insert into rel (id)
    select id from test a
    MINUS
    select id from testingINTERSECT can be used to simulate EXISTS/IN but only when one value is selected. Similarlary MINUS can be used to simulate NOT EXISTS/IN.
    Any such workarounds must be carefully tested to ensure that the correct results are returned. I would probably stick with IN/EXISTS for simplicity unless one of the other methods worked better for performance or other reasons.

  • How to remove devices shown in RME and not existing in DCR?

    I have problem with some devices (in fact IP addresses) that was discovered and used by RME in the past but are not reachable anymore. They spoil statistics in RME (collection of inventory and configuration) however they do not exist in DCR. Do you have any ideas how to get rid of them?
    RME: 4.2.0
    CS: 3.2.0

    Check Common Services > Device and Credentials > Reports > Devices not configured in ACS to see if your devices show up there.  If they do, then you will need to either add those devices to ACS (temporarily) so you can remove them from DCR; or you will need to temporarily disable ACS integration, remove the devices from DCR, then re-enable integration.

  • Tune the query with join and not exists

    This is on 10g R2.
    I have a query similar to :
    Select A.*, C.*
    From A inner join B on A.id = B.id
    Left join C on A.kid = C.kid
    Where not exists
    (select * from D where A.fid = D.fid and A.stat = 2);
    I want avoiding to use the NOT EXISTS in the last part of the query
    I tried the autotrace explain of above and compared with others format and found no better execution plan than that. The explain plan indicated that there were long "table access full" operation on B, due to its little huge records, and a long operation of the "NESTED LOOPS OUTER". I had tried to replace the NOT EXISTS part with another LEFT JOIN in the FROM, but it went worse. So Anyone can suggest a better way? or it is the most efficient query I can get?

    Here is the tkprof output
    from baandb.ttfacr200201 a
       inner join baandb.ttfgld106201 c on (a.t$ttyp = c.t$otyp and a.t$ninv = c.t$odoc) and c.t$leac like :"SYS_B_0"
       left join baandb.ttfgld910201 d on c.t$dim2 = d.t$dimx and d.t$dtyp = :"SYS_B_1"
       where not exists
        (select * from baandb.tcisli205201 b
         where a.t$ttyp = b.t$ityp and a.t$ninv = b.t$idoc)
         and (a.t$trec = :"SYS_B_2" or a.t$trec = :"SYS_B_3" and t$tdoc = :"SYS_B_4")
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.01       0.01          0          0          0           0
    Fetch        5      1.06      52.11      29925      45943          0          54
    total        7      1.07      52.12      29925      45943          0          54
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 31
    Rows     Row Source Operation
         54  HASH JOIN RIGHT ANTI (cr=45943 pr=29925 pw=0 time=2317005 us)
       9957   INDEX FAST FULL SCAN TCISLI205201$IDX1 (cr=39 pr=0 pw=0 time=54 us)(object id 16639)
      10067   NESTED LOOPS OUTER (cr=45904 pr=29925 pw=0 time=68531937 us)
      10067    HASH JOIN  (cr=35837 pr=29925 pw=0 time=68471521 us)
      10420     TABLE ACCESS FULL TTFACR200201 (cr=2424 pr=0 pw=0 time=20894 us)
      33156     TABLE ACCESS FULL TTFGLD106201 (cr=33413 pr=29925 pw=0 time=117767552 us)
         51    INDEX UNIQUE SCAN TTFGLD910201$IDX1 (cr=10067 pr=0 pw=0 time=53177 us)(object id 20402)
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        2      0.00       0.00          0          0          0           0
    Execute      3      0.02       0.02          0          0          0           0
    Fetch        6      1.06      52.11      29925      45943          0          55
    total       11      1.08      52.14      29925      45943          0          55

  • File exist/file not exist

    OK, i create a directory i have read/write permissions on the directory, but still even if the file exists its bringing back the result as if it doesnt i need help with this...
    set serveroutput on
    DECLARE
    fexists    BOOLEAN;
    flen  NUMBER;
    bsize NUMBER;
    BEGIN
    sys.utl_file.fgetattr('TMP_LOCATION', 'test.txt', fexists, flen, bsize);
      IF fexists THEN
        dbms_output.put_line('File Exists');
      ELSE
        dbms_output.put_line('File Does Not Exist');
      END IF;
      dbms_output.put_line('File Length: ' || TO_CHAR(flen));
      dbms_output.put_line('Block Size: ' || TO_CHAR(bsize));
    END fgetattr;
    File Does Not Existmy directory.. CREATE or replace DIRECTORY tmp_location AS 'Server-1\configsheets\completed\pdf approved'

    Good afternoon,
    If you are loooking at a mapped drive, you can only see it if you change how the Oracle services start. You need to have them start with a specific user ID rather than starting as system services. The problem is that the system services cannot see mapped drives.
    So, do this:
    <li>Create a user to be used by Oracle services. Make sure they have the correct rights (I gave mine Server ADMIN so as to have all the access I needed)
    <li>Log into the server and modify the services
    <li>Click the 'Log On' tab and enter the account and password you created for the Oracle Processes
    <li>Reboot the server, allowing the Oracle services to log in with this new ID.
    This should then fix your problem.
    Thanks,
    Don.
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! :)

  • How to use EXISTS or NOT EXISTS in analysis

    Hi all,
    I'm using OBIEE 11g. My question is how to use the functionality of SQL - EXISTS/ NOT EXISTS? I have a model where i have 2 fact tables . When i select from the first fact in some circumstances i want to anti-join the other fact table. Let us consider that the two fact tables are big enough /around 300mln of records/. Any ideas?
    Thanks in advance,
    Alexander.

    Stop asking these stupid vague questions and do some of your own research.
    Start here:
    http://www.regular-expressions.info/
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html

  • Minus and NOT EXISTS - What's the difference?

    What is the difference when you use these statements when evaluating whether one tables differences to another. I thought they were supposed to act the same.

    The MINUS query returns all rows in the first query that are not returned in the second query.
    Each SQL statement within the MINUS query must have the same number of fields in the result sets with similar data types.
    The EXISTS condition is considered "to be met" if the subquery returns at least one row.
    The EXISTS condition can also be combined with the NOT operator

  • How to display id exist or not exist ?

    For example
    I have a students table with the fields student_id,student_name,student_email. I need to write a function and passing a student id and to show the output as
    Student_id Exist
    Student_id doesn't exist
    Please help me

    Hi,
    You can do something like this:
    CREATE OR REPLACE FUNCTION student_exist
    (  in_student_id  IN  student.student_id%TYPE
    RETURN  VARCHAR2
    AS
        return_val     VARCHAR2 (20);
    BEGIN
        SELECT  MIN ('Exist')
        INTO    return_val
        FROM    students
        WHERE   studeent_id     = in_student_id;
        RETURN  NVL ( return_val
                      , 'Doesn''t exist'
    END  student_exist;
    SHOW ERRORSA function like this might be convenient, but it will be slow to use in SQL statements. Outer-joining the student table, or using scalar sub-queries, would be faster.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}

  • How check on the WS - exist or not exist InventoryJob ?

    From The C1 create XP_Inventory politic and apply it to the WS.
    Use time shedule:
    Tusday between 13:00...16:00 , System, below normal prior.
    at the 12:45 WS was rebooted (reboot | log in to the NW| reboot again | log
    in to the NW)
    But i do not see any info about WS in the Tree. See only WS object without
    Minimal Information of the Workstation.
    What and where i can check on the WS for check :
    1 - get WS this Job for inventory ?
    2 - run WS this Job or no ?
    3 - debug file for Inventory on the WS ?
    Serg

    Wed, 06 Dec 2006 09:09:12 +0000, Marcus Breiden
    > On Tue, 05 Dec 2006 15:20:51 GMT, Serg wrote:
    >
    >> Tusday between 13:00...16:00 , System, below normal prior.
    >
    > did you select random spread for this time too?
    >
    > if yes, the inventory will start sometime between 13:00 and 16:00..
    >
    > so let's say you start working on 8:00, the wks picks 14:35 to run
    > inventory and you shut down at 14:20... no inventory done...
    >
    > you start the machine again at 14:25, the wks picks 13:05, already in the
    > past.... no inventory done..
    For test i shedule at this morning (wedn. between 11:10..16:30) and as i
    see - not inventory..
    How check on the WS - ws get this job or no ?
    Serg

  • NOT EXISTS - not working

    Dear all,
    I have 3 tables say A1000, B1000, C1000
    create table A1000(a number);
    create table B1000(a number);
    create table C1000(a number);
    With below values:
    insert into A1000 values(1)
    insert into B1000 values(1)
    insert into C1000 values(2)
    My Query:
    SELECT a.a FROM a1000 a, b1000 b
    WHERE a.a=b.a
    AND NOT EXISTS (SELECT a FROM C1000)
    Since both the tables a1000 & b1000 has matching records, I am expceting one row from A1000. But the query is not returning any row.
    Even though table C1000 has one record with value as 2, it should not affect the result set right?
    Regards
    Natarajan M

    it should not affect the result set right?Right, when you tell Oracle the right thing:
    SQL> select a.a
      2  from   a1000 a
      3  ,      b1000 b
      4  where  a.a = b.a
      5  and not exists ( select null   --< don't select anything here
      6                   from   c1000 c
      7                   where  c.a = a.a
      8                 );
             A
             1
    1 row selected.The fact that you selected 'a' (without any alias) makes me think you treat EXISTS a bit like IN, but they differ.
    See:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:442029737684
    http://asktom.oracle.com/pls/asktom/f?p=100:11:3637710709480187::::P11_QUESTION_ID:953229842074
    for (much) more information

  • How to use the not exists query

    Hello,
    Using obiee 11g,
    i would like to know how to deal with not exists query in the obiee11g,
    the query is like this
    select count(a.col1),a.col2 from table1 a ,table2 b where a.col1=b.col1
    and not exists
    (select d.col1 from table3 d, table4 e
    where d.col1=e.col1 and d.col1=a.col1)
    group by a.col2
    there are 4 tables.
    table1,table2,table3,tabel4
    this is what i need in a report,these tables are used in othere places also,
    would prefer if its possible to do in for a report i.e.e analysis itself.
    If not possible then may be in rpd since if i change in rpd it may reflect every place
    and not in for a report itself.
    thanks

    Implement this in report itself can be a tricky and tedious job..But better to have it in RPD - Physical - Select Table type
    USE NOT IN in place of NOT Exist..You can simply use SELECT statement in SELECT TABLE TYPE
    Hope it clear

Maybe you are looking for

  • ITunes 10.5 won't run

    Hello everyone, iTunes 10.5 ß4 for Windows doesn't want to launch. I did everything: Installed and run as administrator (inclunding the hidden Administrator account) Deleted all Apple-related softwares (Safari, Apple Mobile Support, iTunes, Quick Tim

  • Is there any template framework to generate flex pages at runtime?

    Earlier I have worked on Apache Velocity project. With a single velocity template I was able to render 800+ different jsp pages at runtime. Is there any framework/functionality similar to Velocity or Freemarker framework, in flex?

  • Next button in Review Quiz not working in HTML5.

    Hey folks, We've created a course in CP7 and when I take the course on a Computer (SWF) everthing works fine, but when I take the course on an iPad (HTML5), and go into the Review Quiz section, the Next button is not working. When I click it you can

  • Double dynamic dispatch

    I'm just throwing an idea out here for a moment..... I'm fiddling about a bit with OOP at the moment (LVOOP to be precise) and I'm wondering if I can use it in a semi-nice way to do a certain task. I was wondering if it's possible to have a VI which

  • Deffer Payment Terms

    Hi Happy new year to ever one Can any one suggest me the below we required different Payment Terms line item wise In Sales order for different materials we need different payment terms Does it possible? Regd Sudha