Query for this scenario

Name ID Startdate Enddate
AMIT a 1st October 09 3 October 09
AMIT a 3 October 09 5 October 09
AMIT B 5 October 09
BANU C 1st October 09 3 October 09
BANU D 3 October 09
CAREN E 1st October 09 2 October 09
CAREN F 2 October 09 5 October 09
CAREN E 5 October 09

Required result

Name ID Date
AMIT 5 October 09
AMIT B
BANU C 3 October 09
BANU D
CAREN E 2 October 09
CAREN F 5 October 09
CAREN E

My required result is I should list the names that changed the ids.for for example if amit is having has as ID in the third row the name should not be displayed in the result itself because amit is having the same ID.
How to query for this scenario?

Tags: Database

Similar Questions

  • How to make the simple query for this scenario... ?

    Hello:

    Dummy table provided for simplicity.

    It's my database table (Table_A)

    Date1 | Plane1 | Category | Duration | Fees
    01/01/2011 | A | Gold | 5. 2
    01/01/2011 | C | Money | 4. 11
    01/01/2011 | B | Gold | 6. 2
    01/01/2011 | D | Gold | 2. 4
    01/01/2011 | B | Gold | 3. 5
    01/01/2011 | A | Money | 4. 8
    01/01/2011 | B | Gold | 1. 3

    I need to write a query to get the result below:

    Date1 | Plane1 | Sum_Duration | Sum_Charge | Sum_Gold_Duration | Sum_Gold_Charge | Sum_Silver_Duration | Sum_Silver_Charge
    01/01/2011 | A | 9. 10. 5. 2. 4. 8
    01/01/2011 | B | 10. 10. 10. 10. 0 | 0
    01/01/2011 | C | 4. 11. 0 | 0 | 4. 11
    01/01/2011 | D | 2. 4. 2. 4. 0 | 0

    This query will provide the 1st four columns:

    SELECT Date1,
    base1,
    Sum (Duration) Sum_Duration,
    Sum (load) Sum_Charge
    FROM TABLE_A
    GROUP BY date1, rarateplan

    But I need to know how to get the rest of the columns (i.e. Summary according to categories; from 5 to 8 columns)? Is this can be done in a single query without writing subqueries?

    Please let me know, (with code), the best way.

    Thank you-
    Tanvir

    Use like this:

    SELECT Date1,
    base1,
    Sum (Duration) Sum_Duration,
    Sum (load) Sum_Charge,
    SUM (decode(Category,'Gold',duration,0)) Sum_Gold_Duration,
    SUM (decode(Category,'Gold',charge,0)) Sum_Gold_charge,
    SUM (decode(Category,'Silver',duration,0)) Sum_Silver_Duration,
    SUM (decode(Category,'Silver',charge,0)) Sum_Silver_charge
    FROM TABLE_A
    GROUP BY date1, rarateplan

    Published by: SANT007 on August 11, 2011 11:04

  • I want the query for this scenario will be someone help me?

    I have two tables table of markets and purchase...
    When a record is there in the market table, this means that pure Price shud be replaced by Mkt Price
    When I take the records between two particular date
    I shud get the mkt price if a record exists for a date between and to date in the table of mkt else I shud get price pure himself.
    How can I do this?
    Table Purchase
    Code date pure price
    A 2 01/01/2010
    A 3 01/05/2010
    A 4 10/01/2010
    A 6 15/01/2010
    B 15 15/01/20110


    Table of markets

    Code Date Mkt price
    A 10 01/05/2010
    A 5 01/12/2010

    When I take the records between 01/01/2010 and 01/04/2010

    my result should be as follows
    A 2 01/01/2010


    01/01/2010 and 01/10/2010

    A 01/01/2010 * 10 *.
    A 01/05/2010 * 10 *.
    A 4 10/01/2010

    01/01/2010 and 01/15/2010

    A 01/01/2010 * 5 *.
    A 01/05/2010 * 5 *.
    01/10/2010 * 5 *.
    A 6 15/01/2010
    B 15 15/01/20110

    Try this... NVL may not work in a scenario... also, if date of purchase is greater than the date of the contract, then he should show the purchase price and no market prices.

    PRAZY@11gR1> exec :from_date:='01/01/2010';
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.00
    PRAZY@11gR1> exec :to_date:='04/01/2010';
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.00
    
    select a.code,a.pur_date,
    case when pur_date <= mkt_date then
         DECODE(mkt_price,0,pur_price,mkt_price)
    else
         pur_price
    end  price
    from purchase_table a left outer join
    (
         select code,mkt_price,mkt_date from
         (
              select code,
              mkt_price,mkt_date,
              row_number() over (partition by code order by mkt_date desc) rn
              from market_table
              where mkt_date between to_date(:from_date,'DD/MM/YYYY') and to_date(:to_date,'DD/MM/YYYY')
         )
         where
         rn=1
    ) b
    on a.code = b.code
    where a.pur_date between to_date(:from_date,'DD/MM/YYYY') and to_date(:to_date,'DD/MM/YYYY')
    order by a.code,a.pur_date
    /
    
    C PUR_DATE       PRICE
    - --------- ----------
    A 01-JAN-10          2
    
    Elapsed: 00:00:00.00
    PRAZY@11gR1> exec :to_date:='10/01/2010';
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.00
    PRAZY@11gR1> /
    
    C PUR_DATE       PRICE
    - --------- ----------
    A 01-JAN-10         10
    A 05-JAN-10         10
    A 10-JAN-10          4
    
    Elapsed: 00:00:00.00
    PRAZY@11gR1> exec :to_date:='15/01/2010';
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.01
    PRAZY@11gR1> /
    
    C PUR_DATE       PRICE
    - --------- ----------
    A 01-JAN-10          5
    A 05-JAN-10          5
    A 10-JAN-10          5
    A 15-JAN-10          6
    B 15-JAN-10         15
    
    Elapsed: 00:00:00.01
    PRAZY@11gR1>
    

    Decode added printing the purchase price if the market price is 0.

    HTH,
    Prazy

    Published by: Prazy on April 21, 2010 15:32

  • Suggestions for this scenario...

    Hello. I have a table named call_queue and call_history:
    Call_Queue:
    Name                                      Null?    Type
    ----------------------------------------- -------- -------------
    PARTICIPANT_ID                            NOT NULL VARCHAR2(10)
    LAST_ACCESS_DT                                     DATE
    LAST_ACCESS_BY                                     VARCHAR2(15)
    CREATE_DT                                 NOT NULL DATE
    CREATE_BY                                 NOT NULL VARCHAR2(15)
    MODIFY_DT                                 NOT NULL DATE
    MODIFY_BY                                 NOT NULL VARCHAR2(15)
    CALL_STATUS                               NOT NULL VARCHAR2(3)
    PARTICIPANT_TYPE                                   VARCHAR2(3)
    
    
    Call_History:
    Name                                      Null?    Type
    ----------------------------------------- -------- --------------
    PARTICIPANT_ID                            NOT NULL VARCHAR2(10)
    CALL_STATUS_IND                                    VARCHAR2(2)
    COMMENTS                                           VARCHAR2(100)
    CREATE_DT                                 NOT NULL DATE
    CREATE_BY                                 NOT NULL VARCHAR2(15)
    MODIFY_DT                                 NOT NULL DATE
    MODIFY_BY                                 NOT NULL VARCHAR2(15)
    On my request when a user interacts with the registration of Call_Queue of a Participant_Id I want to display the 5 most recent records of Call_History for this simple Participant_Id. looks pretty if I create a relationship master / detail between the two blocs.

    But my requirement is also that whenever I have show the Call_History more recent 5 records that I also provide an empty Call_History record to the user if the user can insert a new record of Call_History without having to 1) press a button insert or select a menu item. or (2) go down the 5 records displayed in order to insert the new record. In addition, I don't want the user to have to redundant enter the Participant_Id in the new record of Call_History.

    Is it possible to have an empty folder (always empty and ready for the inset) displayed at the top of my 5 most recent recordings Call_History? What is the best way to handle this?

    Two options in my opinion:
    1. take the WE-PEOPLE-DETAILS-trigger on the master-block and have an extra CREATE_RECORD with a GO_BLOCK in there.
    2. create an additional block that is similar to the call_history block and put its fields to the position above your call-history-block "real". Who use new block to insert it.

  • How can I write the SQL query for this requirement?

    Hello

    I have a table that looks like this:

    NAME | ANNUAL |     VALUE
    ==== | ====== | =====
    execno |     480.     000004
    step |      480.     0400
    SCNA |     480. cd_demo
    System |     480.     D47-010
    type |     480.     step
    free_text |     480.     stage 400
    rbare |     480.     RBA-1
    execno |     482. 000004
    SCNA |     482. cd_demo
    System |     482.     D47-010
    free_text |     482.     step 300
    step |          482.          0300
    type |      482.     step
    rbare |     482.     RBA-1
    execno |     483.     000001
    type |     483.     step
    rbare |     483.     rke1
    SCNA |     483.     rke10
    step |     483.     0240

    Now, say that I want to fetch ONLY annual with execno = '000004' and '400' = step and scna = "cd_demo" and system = "d47-010' and type = 'step', how to write SQL code?
    At first, it seemed like a simple writing query but I've been struggling with it for hours without success. I must admit though that I'm not strong in SQL :-)
    There, can anyone help? Please...

    Thanks in advance.

    Emmanuel

    Published by: user12138559 on October 30, 2009 03:05

    Hi, Emmanuel.

    Welcome to the forum!

    Here's a way to do what you asked:

    SELECT       doc_id
    FROM       table_x
    GROUP BY  doc_id
    HAVING       SUM (CASE WHEN name = 'execno' AND value = '000004'  THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'step'   AND value = '400'     THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'scna'   AND value = 'cd_demo' THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'system' AND value = 'd47-010' THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'type'   AND value = 'step'    THEN 1 END) > 0
    ;
    

    If you think that a WHERE clause would be used, but WHERE does apply to a single line. You need a condition that checks several rows in the same group.
    WHEN has an effect something like WHERE.

    Published by: Frank Kulash, October 30, 2009 06:26

    This solution assumes that (name, annual) is unique.

  • How to use a regular expression using the model concept and match for this scenario?

    Hi guys,.

    I have a string "we have 7 tutorials for Java, 2 tutorials for Javascript and 1 tutorial for Oracle.

    I need to replace the numbers based on the condition below.

    If more then 5, replace with many

    If less than 5 then replace by a few

    If it is 1, replace by "only one".

    Here is my code, I'm missing the part equates to replace the numbers could one of please help me solve you this.

    private static String REGEX = "(\\d+)"; "

    private public static String INPUT = "we have 7 tutorials for Java, 2 tutorials for Javascript and 1 tutorial for Oracle."

    String pattern = "(.*) (\\d+)(.*)";

    private static String REPLACE = "replace with many";

    Public Shared Sub main (String [] args) {}

    Create a model object

    Model r = Pattern.compile ("REGEX");

    Now create object match.

    Matcher m = r.matcher (INPUT);

    Change the value to 7 by the replacement string

    How to assimilate (\\d+) greater than a number and use the code below.

    ENTRY = m.replaceAll (REPLACE);

    Print the final result;

    System.out.println (Input);

    Thank you and best regards,

    Hello

    Try the following makes use of 'appendReplacement"instead with the methods 'start' and 'end' to locate and check the search string"regExp"before dynamically set the string"replace ":

    String regExp = "\\d+";
    String input = "We have 7 tutorials for Java, 2 tutorials for Javascript and 1 tutorial for Oracle";
    String replace;
    Pattern p = Pattern.compile(regExp);
    // get a matcher object
    Matcher m = p.matcher(input);
    StringBuffer sb = new StringBuffer();
    while (m.find()) {
       Integer x = Integer.valueOf(input.substring(m.start(), m.end()));
       replace = (x >= 5) ? "many" : (x == 1) ? "only one" : "few";
       m.appendReplacement(sb, replace);
    }
    m.appendTail(sb);
    System.out.println(sb.toString());
    

    HTH.

    Kind regards
    Rajen

    PS: Please mark as answer/useful if it solves your problem to the benefit of all members of the community.

  • How to write a query for this data?

    In this table, I dob column that is of type DATE, for example, 12 January 89 I want output like this

    Day of the year

    January 12, 89 Thusrs_day

    January 12, 90 Friday

    up to

    12 January 14 Sunday

    Select add_months (d, ((level*12)-12)), to_char (add_months (d, ((level*12)-12)), 'DY')

    de)

    Select d double to_date('12-jan-89','dd-mon-rr')

    )

    connect by level<=>

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

    12.01.1989 GAME

    12.01.1990 FRI

    12.01.1991 SAT

    12.01.1992 SUN

    12.01.1993 MAR

    12.01.1994 SEA

    12.01.1995 GAME

    12.01.1996 FRI

    12.01.1997 SUN

    12.01.1998 LUN

    MAR 12.01.1999

    12.01.2000 SEA

    12.01.2001 FRI

    12.01.2002 SAM

    12.01.2003 SUN

    12.01.2004 LUN

    12.01.2005 WED

    12.01.2006 GAME

    12.01.2007 FRI

    SAM 12.01.2008

    12.01.2009 LUN

    12.01.2010 MAR

    12.01.2011 WED

    12.01.2012 GAME

    24 selected lines

    ----

    Ramin Hashimzade

  • What should be the query for this?

    Hello world

    My version of DB is

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE 10.2.0.1.0 Production"
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    

    The table creation script.

    CREATE TABLE COUNTRY_SAMPLE 
       ( COUNTRY_ID NUMBER(4,0), 
          COUNTRY_SHORT_NAME VARCHAR2(10 BYTE), 
          COUNTRY_FULL_NAME VARCHAR2(20 BYTE))
      ;
    

    The INSERT commands.

    Insert into COUNTRY_SAMPLE (COUNTRY_ID,COUNTRY_SHORT_NAME,COUNTRY_FULL_NAME) values (1,'IND','INDIA');
    Insert into COUNTRY_SAMPLE (COUNTRY_ID,COUNTRY_SHORT_NAME,COUNTRY_FULL_NAME) values (2,'PAK','PAKISTAN');
    Insert into COUNTRY_SAMPLE (COUNTRY_ID,COUNTRY_SHORT_NAME,COUNTRY_FULL_NAME) values (3,'ENG','ENGLAND');
    Insert into COUNTRY_SAMPLE (COUNTRY_ID,COUNTRY_SHORT_NAME,COUNTRY_FULL_NAME) values (4,'AUS','AUSTRALIA');
    

    So, how pair these countries, so that they will appear something like this

    IND, PAK

    IND, ENG.

    IND, AUS

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

    PAK, ENG

    PAK, AUS

    PAK, IND

    and so on...

    Kind regards

    BS2012.

    Cross join?

    SQL > select a.country_short_name
    2, b.country_short_name
    3 country_sample one
    4 cross
    5 join country_sample b
    where the 6 a.country_short_name! = b.country_short_name
    7.

    COUNTRY_SH COUNTRY_SH
    ---------- ----------
    IND PAK
    ENG IND
    AUS IND
    IND PAK
    PAK ENG
    PAK AUS
    ENG IND
    PAK ENG
    ENG AUS
    AUS IND
    AUS PAK
    AUS ENG

    12 selected lines.

  • What is the good vShield produced for this scenario?

    Currently we are trying to design a solution for the creation of segmentation of traffic within the analogue of the virtual environment how it is segmented by VLANS on the same physical network.

    (see previous dissusion)

    http://communities.VMware.com/thread/284130?TSTART=0

    I just understand that vShield app provides this feature through "security groups", which can be used to create logical groupings of VMS in the sphere that cannot communicate with other virtual machines in their own group.  Indeed, security groups define the boundaries of a broadcast in the same way that one domain VLAN on the physical layer, but in a solution that is much more flexible and configurable.

    As one of the objectives was not to have to use NAT or a virtual firewall, we did not use the vShield Edge method to create these groups that would require the VM must have IP addresses internal used inside the virtual firewall and external IP addresses used outside-each VM should have only a single IP address.

    Therefore analyze the three different products more vShield that I came to this agreement given the above requirements

    -vShield App - would work

    -vShield Edge - does not work

    -vShield Zones - don't think that will work

    So now the question that remains is - App vShield does not come with the vmware license even more complete but must be purchased separately.  vShield Zones comes with our version of the license (Enterprise version).

    VShield Zones or any other free product is possible to operate in a manner similar to App vShield to meet these requirements without additional cost?  In addition, we want to continue to continue to use HA and FT without the solution we deploy inhibiting FT or HA.

    Thanks again for your contribution.

    Hello

    You must understand how each of these products...

    App vShield uses VMsafe to implement a FW just before each vNIC (on the penetration of the VM) and by consequence just after the vNIC on the virtual machine outgress. This FW is located between the vNIC and the vSwitch Portgroup to which it is attached. VMsafe devices (if App, Altor Networks, Checkpoint, reflex Systems, IBM VSS or TrendMicro Deep Security) require a driver must be installed in the vmkernel (hypervisor). So there are NO free versions of this feature. VMware controls which can be placed within the hypervisor, etc.. Indeed, VMsafe-net provides a vNIC of packet filtering firewall.

    vShield Zones, vShield Edge provide a firewall between two exchanges on the same vSwitch or between two different vSwitches of packet filtering. Areas and Edge are based on firewall mechanisms online m0n0wall, Smoothwall, ipcop, etc..

    If you design with these two points in mind. VMsafe-net applications as App vShield are firewall vNIC while vShield Zones/Edge are by Portgroup firewalls that include a certain vNIC.

    So, if you had several areas of trust and I wanted to use vShield App, you define the font by vNIC (and therefore your virtual machines within a Zone of confidence could live almost anywhere, you depend on VMsafe-net to do most of the work).

    However, with vShield Zones you define the strategy by combination portgroup/vSwitch. Their own vSwitch/portgroup would live in effect in each zone of confidence. When you configure this type of zone of confidence, in fact, I prefer vSwitch. Essentially, each host would have a vSwitch for each zone of confidence, and each zone of confidence would be protected by vShield Zones.

    You must decide at what granularity you want to define a strategy for the areas of your confidence. The vSwitch or the vNIC.

    Best regards
    Edward L. Haletky VMware communities user moderator, VMware vExpert 2009, 2010

    Now available: url = http://www.astroarch.com/wiki/index.php/VMware_Virtual_Infrastructure_Security'VMware vSphere (TM) and Virtual Infrastructure Security' [/ URL]

    Also available url = http://www.astroarch.com/wiki/index.php/VMWare_ESX_Server_in_the_Enterprise"VMWare ESX Server in the enterprise" [url]

    Blogs: url = http://www.virtualizationpractice.comvirtualization practice [/ URL] | URL = http://www.astroarch.com/blog Blue Gears [url] | URL = http://itknowledgeexchange.techtarget.com/virtualization-pro/ TechTarget [url] | URL = http://www.networkworld.com/community/haletky Global network [url]

    Podcast: url = http://www.astroarch.com/wiki/index.php/Virtualization_Security_Round_Table_Podcastvirtualization security Table round Podcast [url] | Twitter: url = http://www.twitter.com/TexiwillTexiwll [/ URL]

  • Write a query for this

    Hi friend

    I have a requirement to fill what I want your help...... I create the sample table and sample data here.

    My table is like this:
    ------------------------------

    create table test1
    (docid number (10),)
    doctyp varchar2 (10),
    billno varchar2 (10),
    prnno varchar2 (10),
    amount number (10)
    );


    My data are:
    --------------------------

    insert into test1 values (D0001, 'BNP05', '101', 'PRN01', 1000);
    insert into test1 values (D0001, 'BNP05', '101', 'PRN02', 1000);
    insert into test1 values (D0001, 'BNP05', '101', 'PRN03', 1000);
    insert into test1 values (D0002, 'BNP05', '102', "PR01", 100);

    My o/p expected:
    -----------------------------

    DOCID DOCTYP BILLNO PRNNO AMOUNT
    ================================================
    D0001 BNP05 101 PRN01 1000

    D0001 BNP05 PRN02 101 0

    D0001 BNP05 PRN03 101 0

    D0002 BNP05 PR01 101 100


    If you see, I don't see how repeatly for DOCID, DOCTYP, BILLNO combination...

    How to get there...?
    Thanks in advance

    Hello

    Do you want something like this:

    SQL> select  DOCID, DOCTYP, BILLNO, prnno,
      2          case
      3            when row_number() over(partition
      4                  by
      5                  docid,doctyp,billno
      6                 order by prnno) = 1
      7                 then amount
      8            else null
      9           end   as amount
     10  from test1
     11  order by docid,doctyp,billno;
    
         DOCID DOCTYP     BILLNO     PRNNO          AMOUNT
    ---------- ---------- ---------- ---------- ----------
             1 BNP05      101        PRN01            1000
             1 BNP05      101        PRN02
             1 BNP05      101        PRN03
             2 BNP05      102        PR01              100
    
    SQL>
    
  • What can be the SQL query for this requirement?

    Hello
    I have a table with the fields like this:

    ID DESC PARENT
    01 02 ABC
    02 01 ABC1
    03 01 ABC2
    04 02 ABC4


    In the table above column PARENT refers to the column ID, but actually in the SQL query, I want to have ID DESC and PARENTDESC (i.e., desc ID value corresponding)

    Output real I need is

    SELECT ID, DESC? from table where ID = someValue. Now, if I provided ID = 01 then output should be like this:

    ID DESC PARDESC
    ABC1 ABC 01


    Can anyone help on what may be the required sql query?

    Published by: bootstrap on April 29, 2011 06:15

    SELECT T1.ID, T1. DESC, T2. / / DESC
    FROM TABLEA T1, T2 TABLEA
    WHERE T1.ID = '01'
    AND T2.ID = T1. PARENT;

  • How to write an update a statement for this scenario

    Hai all gurus

    My table name is Daily_attend

    Name varchar

    Empcode number

    Date of the respondent

    Outtime date

    Number of Cutmins

    Date of Att_date

    It is a daily presence of an employee table

    Here, I need to update column cutmins in 15 minutes, when the employee is delivered between 0831 at 0835.

    For example the table is like this


    name empcode intimate outtime cutimins att_date


    Sri 100-0815-1700 - 04/10/2010


    SS 101 0832 1715 * 04/10/2010

    102 0834 1722 mm * 10-04-2010



    in this situation, I need to write an update statement how are employees comes between 0831 and 0835 I need to update in 15 min


    Thanks in advance

    Srikkanth.M

    Srikkanth.M wrote:
    Here I use time so if need to upgrade 15 min so I need to use 24 * 60 for 15 adding in the column;

    What do you mean by that?

    And another question if there is a value already in the cutmin IE 30 then while I am on day 15 if it is possible to add older value and update as 45

    and Yes, you can do it,

    update daily_attend set cutmins=nvl(cutmins,0)+15
    where intime between 0831 and 0835
    
  • SQL query for the scenario below

    Here's my table structure:

    Rule ID Col1 Col2
    1AB
    2BA
    3CD
    4DC

    I need to display lines 1 and 3 or 2 and 4.

    Can someone tell me please how to write a SQL to do this.

    Thanks in advance.

    A guess, that you were not very clear.

    with t

    (Rule ID

    col1

    col2

    )

    as

    (select 1, 'A', 'B' from dual union all)

    Select 2, 'B', 'A' from dual union all

    Select 3, 'C', would be "union double all the"

    Select option 4, had ", 'C' of the double"

    )

    Select min (RuleId)

    , the less (col1, col2) col1

    more grand (col1, col2) col2

    t

    Group of less (col1, col2)

    more grand (col1, col2);

    to indicate a change 2 & 4 Max (RuleId)

  • ODI-conditional scheduling for a scenario

    @

    Hello

    I have a conditional obligation plan a work/scenario in ODI

    There is a scenario 1 - which must be scheduled to run every day at 06:00 except Sunday

    Scenario 2 - which should be scheduled to run only on Sunday at 6:00

    Scenario 1 should be scheduled to run on Sunday after scenario 2 is executed.

    Can anyone suggest the best way to do it.

    Any help or suggestion will be greatly appreciated.

    Thanks and greetings

    Reshma

    Hello

    For the first instance, as mentioned above, schedule the job for scenario 1 to run every day except Sunday.

    Second case, where scenario1 must be performed after scenario 2 Sunday only.

    Create a separate package, in which you add step 1 Scenario 2 then step 2 Scenario 1 time in a synchronous mode and generate a scenario (annex work for this scenario run only on Sunday)

    or

    Create a separate package, in which you add step 1 Scenario 2 then step 2 OdiwaitforChildSession, step 3 Scenario 1 and scenario (annex work for this scenario run only on Sunday)

    In both cases the scenario 1 will be executed after the success of scenario 2.

    Thank you.

  • join query for the type of constraint and the type of the table column name

    Hi, this is my request
    select 
    table_name  , column_name  from user_cons_columns where table_name='EMP_CLASS'
    
    table_name     column_name
    
    
    emp_class        empno
    emp_class        deptno
    
    
    
    select constraint_type,table_name  from user_constraints where table_name='EMP_CLASS'
    
    
    
    constraint_type    table_name
    
    p                        emp_class
    u                        emp_class
    
    
    I need query for this out put combining above two query.
    
    constraint_type        column_name   table_name
    p                             empno            emp_class
    
    u                            deptno             emp_class
    Thank you
    Madam.

    Try this:

    SQL> SELECT ac.table_name,ac.constraint_type,ac.constraint_name,acc.column_name,acc.position
      2  FROM all_constraints ac, all_cons_columns acc
      3  WHERE ac.table_name = acc.table_name
      4  AND   ac.constraint_name = acc.constraint_name
      5  AND  ac.table_name = 'TABLE_NAME'
      6  /
    

Maybe you are looking for

  • Stuck "waiting for the printer to be available."

    After initially looking at it's going to print, the printer dialog box displays "waiting for printer to be available" and it's there (even if the printer - inkjet HP series C3800 - is ready). Here is what I tried: Using the HP utility software on the

  • compromise MacBook Pro

    I connect my Garmin to my MacBook Pro when a box popped on the screen ' ATTENTION Time Warner Cable Lic surfer: your Apple Macintosh has been blocked: "he had me call 1-844-316-5185 for assistance. Further reading said "ACTIVITY ANONYMOUS: 67.10.99.8

  • Touchpad on Satelite C70D-12U works not

    I have a wireless mouse and thus, using F5 disabled the touchpad. Now, I can't get it working again. We told by support robot per person here, to put the laptop off and then remove the battery and the AC adapter before pressing and holding the power

  • Turn on the password?

    My father-in-law gave me his old computer it is a 'hpG60' p/n 'NW149UA #ABA' and model # G60 - 447 CL Notebook PC in any case, when I turned it on it asked me to enter a "Power on password"? I asked my father-in-law, but he was able to remember where

  • AG6-710 News Version of the predatory sense fails

    Installed the new version of predator of sense (1.00.3002) by the centre Acer. Program never progresses past the Logo screen. Any idea where I could get the old version? Chatted with Predator cat, nothing helps. Thank you.