Help needed in selecting Design

Hi all,
I need your help in designing WLI.We need to receive messages(string) from network(sockets) and process it in WLI, send it back.Can any one pls help me which connection method(HTTP/TCP/JMS) is suitable, how to configure WLS for that?
Thanks in Advance

HI,
I think kf3 can easily be created at query level itself without writing complex logic..As far as i understand your requirement kf3 is a differnce of kf2 and kf1.
so jst make local formula and in that put kf2-kf1.it will give you the desired output for kf3.
Kf4 i need to think,i will update you soon

Similar Messages

  • Help needed with Report Design

    Hi All,
    Here is the requirement.
    Period Type(holds 2 values) : Payment and Vested.
    we have field 'Total Days' which is calculated based on "User Selected" Period Type.
    For example, When Period Type is Payment,
    If start date is less than or equal to grant date and end date is less than or equal to vest date, then calculation is (End Date - Grant Date)+1
    If start date is greater than grant date and end date is less than or equal to vest date, then calculation is (End Date - Mobility Start Date)+1 (similarly 2 more if conditions) ...we have similar calculation for Period Type - 'Vested'.
    This Period Type is a multiselect Prompt. How can this be achievable.
    Any thoughts will be greatly appreciated.
    Thanks.

    I simply did as i got a tip on FB to do
    quote from adobe themselves on facebook "Adobe Illustrator You might also want to try asking on our forums as there are many people that can help there as well! http://forums.adobe.com/community/illustrator/illustrator_general"
    sry if it was wrong of me, simply thought there might be someone nice out there to give a helping hand
    Date: Tue, 5 Jun 2012 13:41:48 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help needed with a design!
        Re: Help needed with a design!
        created by in Illustrator - View the full discussion
    This really isn't the place to ask for free services.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4467790#4467790
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4467790#4467790. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Illustrator by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Help needed with a design!

    HELP! I need help with designing something!
    IMAGE on this link " http://i1072.photobucket.com/albums/w362/jjnilsson/DSC_0188.jpg "
    i need this patch on the picture to be "remade" in higher definition and the text should be MILF HUNTERS intstead of milf hunter... Anyone that might be able to help me out?
    reson for all this is that its gonna be made to a 30x40cm big patch fitting the back of our Team jackets!
    send me a pm or a mail ([email protected]) if you need any futher info or if you can help me out! I am really thankful for all the help i can get!
    With best regards J. Nilsson, Milf Hunters Mc

    I simply did as i got a tip on FB to do
    quote from adobe themselves on facebook "Adobe Illustrator You might also want to try asking on our forums as there are many people that can help there as well! http://forums.adobe.com/community/illustrator/illustrator_general"
    sry if it was wrong of me, simply thought there might be someone nice out there to give a helping hand
    Date: Tue, 5 Jun 2012 13:41:48 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help needed with a design!
        Re: Help needed with a design!
        created by in Illustrator - View the full discussion
    This really isn't the place to ask for free services.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4467790#4467790
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4467790#4467790. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Illustrator by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Help needed in select query

    Hi,
    I need to select the max time for the transaction using the below query. I’m able to get the o/p. Here the problem is I need to fetch the corrletorid (primary key) as well. if try to get that I’m getting the o/p like case2.
    I want the o/p to be like case 1 with the corrleator id . plz help me to get the o/p.
    Case 1: select b.TransactionName, max(to_char(b.duration, 'mm/dd/yyyy hh24:mi:ss.ff')) as average from trandetails a,subtrandetails b where a.CORRELATORID=b.PCORRELATORID and b.PCORRELATORID='11' group by b.transactionname
    TRANSACTIONNAME MAXTIME
    FINT3 12/10/2007 19:53:09.042000
    FINT 12/10/2007 19:31:07.042000
    FINT2 12/10/2007 19:31:07.042000
    SQL> /
    Case 2: select b.TransactionName,b.correlatorid, max(to_char(b.duration, 'mm/dd/yyyy hh24:mi:ss.ff')) as average from trandetails a,subtrandetails b where a.CORRELATORID=b.PCORRELATORID and b.PCORRELATORID='11' group by b.transactionname,b.correlatorid
    SQL> /
    TRANSACTIONNAME CORRELATORID AVERAGE
    FINT2 102 12/10/2007 19:31:07.042000
    FINT3 108 12/10/2007 19:53:09.042000
    FINT3 103 12/10/2007 19:31:07.042000
    FINT 101 12/10/2007 19:31:07.042000
    in the above output i should have only record(max time) for FINT3.
    Thank

    Sharma,
    Please find the below sample data(insert stmt and create table):
    ======================================
    create table trandetails(
    correlatorid varchar2(20) CONSTRAINT correlatorid_FKey REFERENCES Subtrandetails(correlatorid),
    username varchar2(25) NOT NULL,
    applicationname varchar2(25) NOT NULL,CONSTRAINT composite1_pkey1 PRIMARY KEY(correlatorid ,applicationname));
    create table Subtrandetails(
    correlatorid varchar2(20) PRIMARY KEY,
    PCORRELATORID      varchar2(20),
    TransactionName varchar2(25) NOT NULL,
    Machinename varchar2(15) NOT NULL,
    STARTDATE timestamp NOT NULL,
    ENDDATE timestamp NOT NULL,
    SourceName varchar2(25),
    FunctionName varchar2(25),
    LOC number(5),
    CONTEXTPROPERTY1 varchar2(25),
    CONTEXTPROPERTY2 varchar2(25),
    CONTEXTPROPERTY3 varchar2(25),
    TransactionStatus varchar2(25) NOT NULL CONSTRAINT Transaction1_Status_chk Check (TransactionStatus in ('Success', 'Failure', 'Abort')));
    INSERT INTO trandetails VALUES ('11','FINAPP','ANUAPP1');
    INSERT INTO trandetails VALUES ('13','FINTEST','ANUAPP2');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('10','1','ARM','blrkec95931d','10-DEC-07 03.24.07.042000 PM','10-DEC-07 03.31.07.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('11','1','ARM1','blrkec95931d','10-DEC-07 04.24.07.042000 PM','10-DEC-07 04.31.07.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('12','1','ARM2','blrkec95931d','10-DEC-07 05.24.07.042000 PM','10-DEC-07 05.31.07.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('13','1','ARM3','blrkec95931d','10-DEC-07 06.24.07.042000 PM','10-DEC-07 06.31.07.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('14','1','ARM4','blrkec95931d','10-DEC-07 07.24.07.042000 PM','10-DEC-07 07.31.07.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('101','11','FINT','blrkec95931d','10-DEC-07 07.24.07.042000 PM','10-DEC-07 07.31.07.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('102','11','FINT2','blrkec95931d','10-DEC-07 07.24.07.042000 PM','10-DEC-07 07.31.07.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('103','11','FINT3','blrkec95931d','10-DEC-07 07.24.07.042000 PM','10-DEC-07 07.31.07.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('104','13','SAP1','blrkec95931d','10-DEC-07 07.24.07.042000 PM','10-DEC-07 07.31.07.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('105','13','SAP2','blrkec95931d','10-DEC-07 07.24.07.042000 PM','10-DEC-07 07.31.07.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('106','13','SAP3','blrkec95931d','10-DEC-07 07.24.07.042000 PM','10-DEC-07 07.31.07.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('107','13','SAP2','blrkec95931d','10-DEC-07 07.2.10.042350 PM','10-DEC-07 07.50.10.042050 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('108','11',' FINT3 ','blrkec95931d','10-DEC-07 07.16.07.042000 PM','10-DEC-07 07.53.09.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('109','108','FINT3','blrkec95931d','10-DEC-07 07.20.07.042000 PM','10-DEC-07 07.59.09.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('110','108','FINT3','blrkec95931d','10-DEC-07 07.18.07.042000 PM','10-DEC-07 07.57.09.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('111','108','FINT4','blrkec95931d','10-DEC-07 07.18.07.042000 PM','10-DEC-07 07.57.09.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('112','108','FINT5','blrkec95931d','10-DEC-07 07.18.07.042000 PM','10-DEC-07 07.57.09.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('113','108','FINT6','blrkec95931d','10-DEC-07 07.18.07.042000 PM','10-DEC-07 07.57.09.042000 PM','Success');
    INSERT INTO
    Subtrandetails(correlatorid,PCORRELATORID ,TransactionName,Machinename,STARTDATE,ENDDATE ,TransactionStatus )
    VALUES ('114','108','FINT7','blrkec95931d','10-DEC-07 07.18.07.042000 PM','10-DEC-07 07.57.09.042000 PM','Success');
    ======================================
    Thanks.

  • Help needed - containers at design time

    I'm new to Flash, and I'm having trouble with some basic
    concepts. Here's my project:
    I've created a state map, with each county broken out as a
    symbol. I can traverse the DisplayObject list and manipulate each
    county as needed. That all seems to work ok.
    The problem: in addition to the county symbols, I have
    several other objects in my scene (text layers, logos, etc). I'd
    like to move the county symbols to a container, so I can traverse
    that container without the other objects getting in the mix. Doing
    this in AS would be cumbersome and bug-prone. How can I create such
    a container at design time? The only technique I could find was
    selecting all the counties and making them a symbol, but then I
    can't manipulate the individual counties.
    Any help? I'd appreciate any advice. I'm not new to OOP, but
    this is a very different world. Thanks!

    1. Create an empty map MovieClip
    2. Select edit (in the right click menu)
    3. Create all the countries in the map MovieClip
    4. Assign a descriptive instance name to the map instance on
    the stage

  • Help needed in selection screen - Urgent

    Hi Experts,
    I have a selection screen. I have three radi buttons in that selection screen. Based on the selection of the radio buttons I need to activate corresponding selection screen parameters.
    e.g : if radiobutton1 is selected, njo activation needed,
           if radiobutton2 is selected, activate selection screen parameter p_one,
           if radiobutton3 is selected, activate selection screen parameter p_two.
    All three radiobuttons are attached to the same radio button group.
    I have assigned the parameters p_one, p_two, p_three to MODIF ID as follows.
    p_one - NULL
    p_two - t01
    p_three - t02.
    on the selection of a radio button I want the corresponding parameter to get activated.
    please help me.
    Regards,
    Arul jothi A.

    hi
    jothi
    AT SELECTION-SCREEN OUTPUT.                                      
      CASE SY-TCODE.                                                 
        WHEN 'ZEDI6'.                                                
          LOOP AT SCREEN.                                             
            CASE SCREEN-GROUP4.                                      
              WHEN '001'.                  "Sales order select       
                SCREEN-ACTIVE = '1'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
              WHEN '002'.                  "Delivery select          
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                        
              WHEN '003'.                  "Invoice select           
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
              WHEN '004'.                  "PO Select                
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
    regards
    praveen

  • Help needed in Query design

    Hello Query experts,
    I have the following data in my DSO.
    Char1      date                      Kf1     KF2
    a           01.01.2011              10       20
    a           03.01.2011              50       70
    a           05.01.2011                5       10
    b           02.01.2011              20        25
    b           05.01.2011              10        15
    b           06.01.2011               5         15
    Now, I need to design a query to produce the following result:
    Char1      date                      Kf1     KF2     KF3(KF2-KF1)        KF4
    a           01.01.2011              10       20             10                     10
    a           03.01.2011              50       70             20                     30 [KF3+Prev(KF4)]
    a           05.01.2011                5       10              5                      35
    b           02.01.2011              20       25              5                       5
    b           05.01.2011              10       15              5                      10
    b           06.01.2011               5        15             10                     20
    Can anybody help me achieve this through a BI Query?
    Thanks and regards,
    Jashua

    HI,
    I think kf3 can easily be created at query level itself without writing complex logic..As far as i understand your requirement kf3 is a differnce of kf2 and kf1.
    so jst make local formula and in that put kf2-kf1.it will give you the desired output for kf3.
    Kf4 i need to think,i will update you soon

  • Search help needed! select box with 2 variables? is it possible

    Using coldfusion 8 and MySQL.  I need to make a search form that has a drop select that displays the department and category together in the drop select.
    Is it possible? what would the form and search query look like. any help would be appreciated. thanks in advance.
    example: each is a line item for the drop select. then when one is selected it returns the results if records are found.
    mens/shoes
    mens/clothing
    mens/accessories
    womens/shoes
    womens/clothing

    Gee, what a coincidence, my current project has one of those.  My approach is to include a concatonated field in the query and use it for the desired attribute of cfselect.
    The details of the contcatonated field depend on the db.  I don't use mySql but if I wanted to know badly enough, I would google "mySql concatonate"

  • Help need in selection query

    Hi ,
    I have a field(test) in ztable(zxxx) whose length is 12 char and while updating it
    only 10 digits were updated and there are no zeros in front of the value in order to make it
    12 digit.
    Now i need this parameter to be included in another program selection screen.
    Now i have given it as
    parameter :  test(12) type n.
    it works fine when it has an entry , when it is blank i has to retrieve all records but in this case
    i won't because it has a value of 000000000000
    noe when i declare like this
    paramter : test like zxxx-test.
    when my input is 123456, it won't fetch me any value because it has to be 0000123456 because it has been updated like in the table.
    There was a purpose in updating this way.
    Now my code is like this
    parameters : test(10) type n.
    select-options :   kostl for zxxx-kostl NO-EXTENSION NO INTERVALS,
          p_uname for zxxx-uname NO-EXTENSION NO INTERVALS.
    if test is initial.
    select * from zxxx into table itab where kostl in kostl and uname in p_uname.
    else.
    select * from zxxx into table itab where aufnr  = order and
                                   kostl in kostl and uname in p_uname.
    endif
    PLEASE SUGGEST ME IF THERE IS AN ALTERNATE BETTER WAY.
    or this is the best way
    Thanks

    Hi
    as per my knowledge what you have done is right.
    Thanks
    KAJOL

  • Help need in select statement?

    Hi experts...
    I have an internal table with 2 records...i_mara with fields matnr and ersda
    matnr   ersda
    2345    01/26/2007
    3445    02/05/2007
    i need to write a select statement to collect all MBLNR from MKPF table where BUDAT is in between 01/26/2007 and 02/05/2007..
    Thanx
    Giri

    HI vasanth and rich...
    thanks for replies...
    vasanth i am getting error with the statement.. so i assigned 6 points to u..
    DATA: RA_BUDAT RANGE OF BUDAT WITH HEADER LINE.
    Unable to interpret range.... Possible error with spelling or comma
    Rich: ur solution worked good....
    is there any possible simplest way... or this is the best way includes performance?
    Regards
    Giri

  • Help needed to select Responsibility

    I have a requirment as below. I want to make the code more flexible so that it will work according to the setup in applications.
    I have to send notification to a group of approvers after the initiator press the "submit" button on the Oracle applications custom Form. This buttom will invoke the Workflow and will send notification. In the NTF I have to send the link of the form.
    My real problem is selecting the responsibility for the Approvers which I need to pass to generate the form link.
    For approvers I want to handle this in the setup level. The responsibility for the Approvers has not yet been decided. I want to make the program to work in this way that what ever may be the responsibility where the custom form function would assigned it should pick that responsibility.
    Can anybody suggest if I can handel this at the setup level so that in future whatever may be the reponsibility to which the form will be assigned and if the Approvers have that resp the program will be picking that resp.
    Thanks

    So all you need is finiding the responsibility where this function is attached. This sql written sometime ago, gives you that.
    SELECT DISTINCT responsibility_name, menu_id
    FROM fnd_responsibility_vl a, fnd_user_resp_groups_direct b, fnd_user c
    WHERE a.responsibility_id = b.responsibility_id
    AND b.user_id = c.user_id
    AND a.end_date IS NULL
    AND c.end_date IS NULL
    AND b.end_date IS NULL
    AND menu_id IN (
    SELECT menu_id
    FROM fnd_menu_entries_vl
    START WITH menu_id IN (SELECT menu_id
    FROM fnd_menu_entries_vl
    WHERE function_id IN (SELECT function_id
    FROM applsys.fnd_form_functions a
    WHERE function_name LIKE 'FND_FNDPOMPV')
    AND prompt IS NOT NULL)
    CONNECT BY PRIOR menu_id = sub_menu_id)
    AND a.responsibility_id NOT IN (
    SELECT responsibility_id
    FROM fnd_responsibility_vl
    WHERE responsibility_id IN (
    SELECT responsibility_id
    FROM fnd_resp_functions resp
    WHERE action_id IN (
    SELECT function_id
    FROM applsys.fnd_form_functions a
    WHERE function_name LIKE
    'FND_FNDPOMPV')))
    AND a.responsibility_id NOT IN (
    SELECT responsibility_id
    FROM fnd_responsibility_vl
    WHERE responsibility_id IN (
    SELECT responsibility_id
    FROM fnd_resp_functions resp
    WHERE action_id IN (
    SELECT menu_id
    FROM fnd_menu_entries_vl
    START WITH menu_id IN (
    SELECT menu_id
    FROM fnd_menu_entries_vl
    WHERE function_id IN (SELECT function_id
    FROM applsys.fnd_form_functions a
    WHERE function_name LIKE 'FND_FNDPOMPV')
    AND prompt IS NOT NULL)
    CONNECT BY PRIOR menu_id = sub_menu_id)))
    ORDER BY menu_id;
    Thanks
    Nagamohan

  • Help needed in payslip design

    hi experts
      My client is asking to create new payslip.
      how can i desing and assing wagtypes to those field.
      i got around 50 field in the payslip.
      i know the tcode pe51.
       is there any differnce between pe51 and se71 ?
      please help me
    regards

    HI,
    I think kf3 can easily be created at query level itself without writing complex logic..As far as i understand your requirement kf3 is a differnce of kf2 and kf1.
    so jst make local formula and in that put kf2-kf1.it will give you the desired output for kf3.
    Kf4 i need to think,i will update you soon

  • Help needed in algorithm design please

    Hello,
    I need to design an algorithm that prints a monthly calendar in tabular format. The problem is:
    1. The first day of the month needs to be indented to the corresponding day of the week,
    2. Each week needs to be on a separate line (Sun ... Sat),
    How should I design this? What data structure should I be using?
    Also, please recommend some GOOD introductory algorithm and program design books and websites.
    Thanks in advance!
    Eric

    tsith wrote:
    BigDaddyLoveHandles wrote:
    tsith wrote:
    BigDaddyLoveHandles wrote:
    ericdunn wrote:
    I'll give your suggestion a try. btw, any recommendations on GOOD algorithm and program design books?
    [http://www.amazon.com/Art-Computer-Programming-Sorting-Searching/dp/0201896850/ref=sr_1_6?ie=UTF8&s=books&qid=1237833469&sr=1-6]
    That's kinda mean!
    how about this ?It's a classic. Studying it would make anyone a better person. But then I'm an Old Testament kind of guy. No, strike that and make it Rigveda.It is a classic, and studying it, assuming it doesn't kill you, will make you stronger, and make you want to write a MIX to Java converter.That was my Master's thesis! Then I tripped carrying the punch cards and they scattered everywhere.

  • Help needed in select statement

    Hi gurus,
    I have a table with orderentry and ordertype
    case 1 :
    i want to get the set of records when ordertype =1 repeats
    case2:
    i want to get the set of records when there is no ordertype =1
    CREATE TABLE test
    orderentry NUMBER,
    ordertype NUMBER
    INSERT into test
    values ( 10,1);
    INSERT INTO test
    VALUES (10, 2);
    INSERT INTO test
    VALUES (10, 1);
    INSERT INTO test
    VALUES (10, 2);
    INSERT INTO test
    VALUES (11, 1);
    INSERT INTO test
    VALUES (11, 2);
    INSERT INTO test
    VALUES (11, 2);
    INSERT INTO test
    VALUES (11, 2);
    INSERT INTO test
    VALUES (12, 1);
    INSERT INTO test
    VALUES (12, 1);
    INSERT INTO test
    VALUES (12, 2);
    INSERT INTO test
    VALUES (12, 2);
    INSERT INTO test
    VALUES (13, 2);
    INSERT INTO test
    VALUES (13, 2);
    INSERT INTO test
    VALUES (13, 2);
    COMMIT;
    I want the set of records when the ordertype 1 repeats
    my result should be:
    case 1:
    orderentry ordertype
    10 1
    10 2
    10 1
    10 2
    12 1
    12 1
    12 2
    12 2
    case 2:
    orderentry ordertype
    13 2
    13 2
    13 2
    Thanks in advance

    Hello
    Thank yuo for posting the create table statements and sample data. I think these do what you are looking for
    --case 1
    SELECT
        orderentry,
        ordertype
    FROM
            SELECT
                orderentry,
                ordertype,
                COUNT(CASE WHEN ordertype=1 THEN 1 END) OVER(PARTITION BY orderentry) ct
            FROM
                t_test
    WHERE
        ct > 1
    --case 2
    SELECT
        orderentry,
        ordertype
    FROM
            SELECT
                orderentry,
                ordertype,
                COUNT(CASE WHEN ordertype=1 THEN 1 END) OVER(PARTITION BY orderentry) ct
            FROM
                t_test
    WHERE
        ct = 0
    DTYLER_APP@pssdev2> select * from t_test;
    ORDERENTRY  ORDERTYPE
            10          1
            10          2
            10          1
            10          2
            11          1
            11          2
            11          2
            11          2
            12          1
            12          1
            12          2
            12          2
            13          2
            13          2
            13          2
    15 rows selected.
    DTYLER_APP@pssdev2> SELECT
      2      orderentry,
      3      ordertype
      4  FROM
      5      (
      6          SELECT
      7              orderentry,
      8              ordertype,
      9              COUNT(CASE WHEN ordertype=1 THEN 1 END) OVER(PARTITION BY orderentry) ct
    10          FROM
    11              t_test
    12      )
    13  WHERE
    14      ct > 1
    15  /
    ORDERENTRY  ORDERTYPE
            10          1
            10          2
            10          1
            10          2
            12          1
            12          1
            12          2
            12          2
    8 rows selected.
    DTYLER_APP@pssdev2> SELECT
      2      orderentry,
      3      ordertype
      4  FROM
      5      (
      6          SELECT
      7              orderentry,
      8              ordertype,
      9              COUNT(CASE WHEN ordertype=1 THEN 1 END) OVER(PARTITION BY orderentry) ct
    10          FROM
    11              t_test
    12      )
    13  WHERE
    14      ct = 0
    15  /
    ORDERENTRY  ORDERTYPE
            13          2
            13          2
            13          2
    3 rows selected.

  • Help needed in select query to take date

    Hello,
    I am using Oracle 11g.
    I am using this query
    select to_date(to_char(to_date((SOURCE_MONTH||'-'||SOURCE_YEAR),'MM-YYYY'),'Mon-YYYY'),'MON-YYYY') date_
    from tab1 a,tab2 b
    where b.col2=a.col1;
    I have a table with 2 separate varchar columns month and year,
    I want to insert the data into another table which has the col type as timestamp.
    This query gives me the data as
    01-NOV-06 but
    i want the data as
    01-NOV-2006
    What should i do for that?
    Thanks

    First, get rid of the extra conversions from date to char and back to date:
    select to_date((SOURCE_MONTH||'-'||SOURCE_YEAR),'MM-YYYY'),'Mon-YYYY')
    from tab1 a,tab2 b
    where b.col2=a.col1;Now, your data is safely rendered as a DATE. It knows the full year (i.e.2006). You are just not seeing it formatted the way you like. You could
    alter session set nls_date_format = 'mm/dd/yyyy hh24:mi:ss';or give the explicit format you want when you query it (with TO_CHAR).
    Please read and understand about DATE datatypes....
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/sql_elements001.htm#i54330
    In particular, search that page for: "DATE Datatype "

Maybe you are looking for