HELP: In-Order traversal of a BinaryTree in Java

Hey,
We were instructed to build a Node class and a BinaryTree class in java and do an in-order traverse on it. (Print out in order) I know that I am building my tree correctly (w/ pointers, etc.) because I can use System.out.println() to tell me. However, we were instructed to pass one string around and have all the nodes add their "info" to it, in this case a String that is a persons name. So I wrote this:
In my BinaryTree class where root is a Node:
       public String toString()
         String temp = "";
         if(root != null)
            temp = root.inOrder(temp);
         else
            temp = "";
         return temp;
     }And my inOrder() method looks like this in my Node class:
       public String inOrder(String s)
         if(left != null)
            left.inOrder(s);
         s = s + "\n" + info;
         if(right != null)
            right.inOrder(s);
         return s;
      }However, Im not sure as to why its only printing out the root's info? And not the rest!! BTW, he told me that is the correct algorithm for the inOrder traverse, I just wasnt passing the String parameter right...
FROM THE TEACHER:
"The way you are traversing the tree is fine. By that I mean you are moving from node to node through the tree correctly. Your problem comes from the way you are passing parameters. What you are trying to accomplish here is to create a String called "temp" in your Binary Tree class and then, as you "visit" each node, that node should append its "info" to the string. When you have visited all the nodes, the string is returned to the Binary tree object with all the info concatenated into that one string.
That means that that one string must be passed to each node and returned from each node. Notice that in your code for the "inOrder" method, you create a new empty string in that node, add the info for that node and then return it. It doesn't get passed on to the next node."
Any help??? Thanks alot! :)

BC2210 wrote:
Im confused though because isnt that what Im doing in the toString() method of the BinaryTree class? temp = root.inOrder()? And then return temp from that?Yes, but root.inOrder() only returns the info from the root, since the inOrder method doesn't do anything with the data returned from subsequent inOrder() calls.
public String inOrder(String s)
         if(left != null)
            left.inOrder(s);     // calls inOrder() on the left node, but doesn't do anything with the return value, so it's like this was never called at all
         s = s + "\n" + info;
         if(right != null)
            right.inOrder(s);   // same here
         return s;
      }

Similar Messages

  • Depth first, pre-order traversal ?

    Im experiementing with various examples of parsing an XML document and adapting it to a TreeModel for use in a JTree component. Im looking at some of the newer JAXP API's like org.w3c.dom.traversal
    Interface DocumentTraversal. Im wondering about depth first and pre-order traversal.
    What do these terms mean ? Im guessing it has to do with the tree type data structure ? Like many programmers out there, I went to college for something other than comp sci so i never had the unfortunate pleasure of taking a data structures course.
    Also it seems like the level 2 DOM spec is making things alot easier to work with, but even Sun doesnt have a good tutorial on using the newer API's.

    Pre-order traversal simply means, that any method is applied to the parent first, before it is applied to its children. A tree like
    aNode
    -pNode-+-bNode
    cNode
    would therefor result in a series of method calls like:
    pNode.yourMethod();
    aNode.yourMethod();
    bNode.yourMethod();
    cNode.yourMethod();
    Whereas post-order taversal would start with the children and process the parent node as last one. Finally a in-order run would process some children first, which come in some kind of order before the parent node, then the root node and finally the remaining children. Of course, that makes only sense if the tree is ordered in some way, eg. if the node content can be ordered alphabetically or so.
    Hope that helps,
    Mathias

  • Anyone can tell me how to design a stack for post order traversal

    about the post order traversal of binary tree
    any one can give me a tips
    thank u so much

    Have you tried anything yet, or are you wanting someone to give you a personalized tutorial?

  • I had to put my computer by together without migration or time machine I NEED help with order of the files?

    I had to put my computer by together without migration or time machine I NEED help with order of the files?

    Hi, where are these other files exactly?

  • Help in ordering BE6000 and licences

    Hi
    I need some help in ordering BE6000 solution for my organization.
    We are a small company growing rapidly. Currently have UC560 with about 50 users. The main reason for upgrading our voice system is that we'll be having over 200 employees by the end of the year. And the biggest problem currently is as follows.
    The technical requirement we have is:
    When a call comes in, a greeting should be played out (like "Thank you for calling.... your call maybe recorded....") and then transferred to a call blast group. (the main point being, all the people calling in are of very old age, hence they shouldn't be required to press any key but rather just wait for the audio greeting to finish and then get transferred to a call blast group.)
    This I've been told can be implemented by using CUCM and CUC, hence BE6000 suitable option.
    Now coming to the real issue about licencing:
    I'm not sure if using 'UCL Enhanced ' licence would do the job or 'UWL Standard '. About 25 users would be using voicemail, and also the main customer care blast group would be using voicemail.
    Also as we're migrating from UC560, I read that there is a migration licence, but not sure how and what.
    My current order was
    BE6K-ST-BDL-K9=
    BE6K-START-UCL25
    BE6K-UCL-ENH
    Or should it be BE6K-START-UWL25, BE6K-UWL-BE ?
    I would really appreciate any advise on this.
    Thanks a lot
    regards,
    Aws

    Hi CipherunaSupport, i see that you are looking at migrating from the UC560 to the Business Edition 6000. I think it's better if we discuss this over the phone so we can check the part number's that you are looking into, Feel free to message me directly for further assistance. Hope to hear from you! :)

  • Help with ordering prints

    Can anyone help with ordering prints for Shutterfly? I keep getting to step 4 (payment type) and then it just goes to blank page and nothing happens.

    Thanks for your help, I am new to all of this. I think it was my edited pics that were the problem, they were to big of files, I had to go and save them as a new file as a jpeg and then went to shutterfly and downloaded from there. I never could get it to work from Photoshop Elem.
    Date: Thu, 9 May 2013 00:51:58 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help with ordering prints
        Re: Help with ordering prints
        created by vsh07 in Photoshop Elements - View the full discussion
    Looks like some problem! Just try the following steps. They worked for me: 1. Go to shutterfly website (www.shutterfly.com) and log into your account.2. In My Account Section> Billing Information, add your Credit Card details and Save.3. Logout from your account and open Photoshop Elements application to order prints.4. Now,on step4 (payment type),your Credit Card details will appear magically    Let me know if this solution works for you. It can be of some help to other members too.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5304432#5304432
         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/5304432#5304432
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5304432#5304432. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Seeking Help for Guidance in developing a product using JAVA CARD

    Hi All,
    I am using windows environment with netbeans 6.8 as developer tool and MySql Server connectivity for back end process.My requirement is to develop applets and installing them to my Smart card and reader.my question is
    1. how i am supposed to create applets to get the student id of particular student whose id is already registered in the database?
    2. how to install them into the smart card?
    3.what are the commands i am supposed to follow if other than APDU commands?
    4.i found there is APDU commands but what do that each CLA,INS,p1,p2,Lc,le..commands used for?how can i use them in my creation of applets.i found the command varies for certain requirements.
    5.if possible please help me with a small example so that i will start developing it.
    can anyone help me in developing this application.i will be so helpful if anyone helps me in guiding me to develop the java card product.
    Edited by: Sijukj on Mar 4, 2010 7:04 AM

    Hi,
    Welcome to the wonderful world of embedded Java development!
    Sijukj wrote:
    1. how i am supposed to create applets to get the student id of particular student whose id is already registered in the database?The first step is to download the Java Card Development Kit (JCDK) from the Sun website (along with the related documentation/specifications). If you plan on using your code on a real card, I would recommend JC version 2.2.1 or 2.2.2. If it is sufficient to run your applet on a simulator (as a proof of concept or for assignments) with no intention on running on real hardware you could go for JC 3.0.2 and use the supplied simulator. This version of JC does not have commercially available cards as of yet.
    Once you have the applet coded and installed on your card, you would personalise the card for the card holder. This means loading card holder specific data into your application. This may also involve registering the smart card ID with the student in your database.
    2. how to install them into the smart card?The procedure for loading and installing applets is outlined in the Java Card documentation (available with the JC development kits from Sun) and the GlobalPlatform card specifications (available from [http://www.globalplatform.org]). You can look into some open source tools for doing this (GPShell and the Java Card Development Kit).
    3.what are the commands i am supposed to follow if other than APDU commands?This depends on what you are trying to achieve with your applet. If you want interoperability you could implement a standard like ISO7816 or IOS24727. This is a lot of work so you may just want to implement the proprietary you require for each operation you need (e.g. set student ID, get student ID etc).
    4.i found there is APDU commands but what do that each CLA,INS,p1,p2,Lc,le..commands used for?how can i use them in my creation of applets.i found the command varies for certain requirements.These are defined in ISO7816 part 4.
    The CLA byte gives information on the command you are sending such as secure messaging, command chaining, ISO or proprietary command
    The INS is the instruction or command you are trying to perform
    P1 and P2 are parameters to the command. These may not be required for each command but are able to be used to convey further information to the applet.
    Lc is the length of the data field you are sending (e.g. for a PUT DATA command this would be the amount of data you are sending)
    Le is the length of the data you expect to receive back from the card. If this is absent you do not expect the card to return any data, 0x00 means send all the data you have left (up to the limit of the response APDU)
    5.if possible please help me with a small example so that i will start developing it.You can find example code in the Java Card Development Kit. There are a wide range of examples there that can help you get started.
    Cheers,
    Shane

  • Help with order by

    I want to select the same column name from 2 tables, combine them, and give them a certain order but I am getting:
    ORA-01785: ORDER BY item must be the number of a SELECT-list expression
    select a from table1 where a = 'TYY000007'
    union all
    select a from table2 where a = 'TXXXXXXXX'
    order by TRANSLATE(a, 'ABCDEFGHIJKMNOPQRSUVWXYTL0123456789','0123456789ABCDEFGHIJKMNOPQRSUVWXYTL') DESC;
    I know the TRANSLATE works because it will work with just 1 table query and I've used it in other queries.
    Please help.

    Hi,
    Noramally, you can ORDER BY something that is not in the SELECT clause.
    In a UNION query, you can't.
    if you want to ORDER BY d046d (or something derived from it), then you have to include d046d in the SELECT clause. To avoid displaying it, you can do the UNION in a sub-query, like this:
    WITH     union_results     AS
         select a, d046d from table1 where a = 'TYY000007'     -- This is easy to do without a UNION,
         union all                                              -- but that's not the point
         select a, d046d from table2 where a = 'TXXXXXXXX'
    SELECT       a
    FROM       union_results
    ORDER BY  TRANSLATE ( d046d
                          , 'ABCDEFGHIJKMNOPQRSUVWXYTL0123456789'
                  , '0123456789ABCDEFGHIJKMNOPQRSUVWXYTL'
                  )          DESC
    ;

  • Need help on order by in PL/SQL

    Hi all,
    I know this problem would have occurred a lot of times before, but me being a beginner want to know all the possible solution for this one.Now I am having a procedure in which I am declaring a cursor to select rows from a table
    create or replace procedure call_me(sortstring IN Varchar2(200))
    IS
    cursor cur is
    select * from EMP order by (sortstring);
    BEGIN
    for rec in cur
    Loop
    DBMS_OUTPUT.PUT_LINE(cur.EMPNAME)
    END LOOP;
    END;
    Assume the EMP table has
    EMPID,EMPNAME,EMPCITY,EMPDEPT as its fields
    I am calling the procedure like
    exec procedure_call('EMPCITY,EMPDEPT')
    but I get an unsorted output, worse still
    exec procedure_call('EMPCITY')
    itself is not working.If I hard-code the order by columns in the query it is working, but when I pass it as argument it is not working.Please help me resolve this issue.

    In your case,
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Elapsed: 00:00:00.33
    satyaki>
    satyaki>select * from emp order by '&str';
    Enter value for str: empno
    old   1: select * from emp order by '&str'
    new   1: select * from emp order by 'empno'
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7777 SOURAV     SLS                  14-SEP-08      45000       3400         10
          7499 Travor     SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       4450                    10
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7839 KING       PRESIDENT            17-NOV-81       7000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
    13 rows selected.
    Elapsed: 00:00:01.00
    satyaki>In our case,
    satyaki>select * from emp order by &str;
    Enter value for str: empno
    old   1: select * from emp order by &str
    new   1: select * from emp order by empno
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7499 Travor     SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7777 SOURAV     SLS                  14-SEP-08      45000       3400         10
          7782 CLARK      MANAGER         7839 09-JUN-81       4450                    10
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7839 KING       PRESIDENT            17-NOV-81       7000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
    13 rows selected.
    Elapsed: 00:00:00.31
    satyaki>/
    Enter value for str: empno,job
    old   1: select * from emp order by &str
    new   1: select * from emp order by empno,job
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7499 Travor     SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7777 SOURAV     SLS                  14-SEP-08      45000       3400         10
          7782 CLARK      MANAGER         7839 09-JUN-81       4450                    10
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7839 KING       PRESIDENT            17-NOV-81       7000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
    13 rows selected.
    Elapsed: 00:00:00.18
    satyaki>So, capitalizing this ->
    satyaki>
    satyaki>declare
      2    cursor cur
      3    is
      4      select *
      5      from EMP
      6      order by &sortstring;
      7     
      8    rec cur%rowtype;
      9  begin
    10   for rec in cur
    11    Loop
    12      DBMS_OUTPUT.PUT_LINE(rec.ENAME);
    13    END LOOP;
    14  END;
    15  /
    Enter value for sortstring: empno,job
    old   6:     order by &sortstring;
    new   6:     order by empno,job;
    Travor
    WARD
    JONES
    MARTIN
    BLAKE
    SOURAV
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.84
    satyaki>Got my point?
    Regards.
    Satyaki De.

  • Need help with ORDER BY clause

    Hey,
    I have a table:
    Name: Year:
    Eagle 2000
    Tiger 2001
    Eagle 2002
    Lion 2006
    Lion 1999
    Fox 1991
    Lion 1995
    I need a query which will return in such order:
    Name: Year: Position:
    Eagle 2000 1
    Eagle 2002 2
    Fox 1991 1
    Lion 1995 1
    Lion 1999 2
    Lion 2006 3
    Tiger 2001 1
    So, of course to get Name and Year in this order is quite easy:
    select Name, Year from Animals order by Name, Year;
    but how about Position, is there a way to count it with SQL?
    any help is welcome,
    Silvestras

    SQL> with rt as
      2  (select 'Eagle' nm, 2000 yr from dual union all
      3  select 'Tiger', 2001 from dual union all
      4  select 'eagle', 2002 from dual union all
      5  select 'Lion', 2006 from dual union all
      6  select 'Lion', 1999 from dual union all
      7  select 'Fox', 1991 from dual union all
      8  select 'Lion', 1995 from dual)
      9  select nm,yr,row_number() over(partition by (nm) order by nm,yr) position from rt;
    NM            YR   POSITION
    Eagle       2000          1
    Fox         1991          1
    Lion        1995          1
    Lion        1999          2
    Lion        2006          3
    Tiger       2001          1
    eagle 2002 1
    7 rows selected.
    SQL> with rt as
      2  (select 'Eagle' nm, 2000 yr from dual union all
      3  select 'Tiger', 2001 from dual union all
      4  select 'eagle', 2002 from dual union all
      5  select 'Lion', 2006 from dual union all
      6  select 'Lion', 1999 from dual union all
      7  select 'Fox', 1991 from dual union all
      8  select 'Lion', 1995 from dual)
      9  select nm,yr,row_number() over(partition by lower(nm) order by nm,yr) position from rt;
    NM            YR   POSITION
    Eagle       2000          1
    eagle 2002 2
    Fox         1991          1
    Lion        1995          1
    Lion        1999          2
    Lion        2006          3
    Tiger       2001          1
    7 rows selected.
    SQL> 

  • Need help with order booking tutorial

    Hi
    I am new to OracleFusion.
    Started Learning By practising OrderBooking tutorial for 10g.
    I am practising parellel branching in the tutorial .
    I ve invoked Rapid distributors service in branch 1 of the flow activity.
    and
    i ve invoked Select manufacturing service in branch 2 of flow activity.
    I ve deployed order booking service,rapid distributed service,select manufacturing service in the server.
    Select manufacturing service is an asynchronous service .for this service to be complete it requires user to manually set price for the item ordered.
    So I accesed SelectManufacturinUI in browser as instructed in book.The problem is tht it is directing me to login page where User id and password should be submitted.
    In the tutorial no info is given regarding login details fot this page.Hence i am not able to set price for order.
    So the Select manufacturing service is not completed ..hence i am not able to move further in the tutorial..
    Kindly help with this..if any one has faced same prblm
    thanks

    Hi
    I got the answer. Just posting it so that it helps someone
    User id i tried : jcooper
    password : Bpel console startup password

  • Need help with Order by statement

    I have a report which has an order by statement to order a varchar2 field in ascending order.
    The report sorts the records correctly but if I rerun the report, the records with the same values in the column that I order by, do not maintain the same order as was in the report's 1st run.
    The records will still be sorted in ascending order but those records that have the same values interchange positions each time I run the report.
    Is this ok or is there a way of making records with same values maintain the same order in all the report runs? Please assist. Thanks.

    user8655468 wrote:
    but those records that have the same values interchange positions each time I run the report.
    Is this ok or is there a way of making records with same values maintain the same order in all the report runs? Please assist. Thanks.Hello,
    It's normal those are same values may interchange at each run. you can add another column in order by clause. That
    Order by column1,column2 may add another column3 -- this will maintain always same but column 1,2,3 have same value , it will may interchange.
    Hope this helps
    Hamid

  • Need help with order by

    Test Data:
      CREATE TABLE "TEST_GMU"
       ( "PZINSKEY" VARCHAR2(255) NOT NULL ENABLE,
    "PXCREATEDATETIME" DATE,
    "PXURGENCYASSIGN" NUMBER(18,0),
    "WORK_PXURGENCYWORK" NUMBER(18,0),
    "MASTERACCNTFIRMCUSTID" VARCHAR2(255 CHAR)
       ) SEGMENT CREATION IMMEDIATE
      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 FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
    insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12858!AMADVISORSERVICESFLOW','16-JUL-13 15.55.57.000000 PM',0,40,'2531215'); 
    insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12859!AMADVISORSERVICESFLOW','16-JUL-13 15.01.22.000000 PM',0,40,'742254777');
    insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12860!AMADVISORSERVICESFLOW','16-JUL-13 15.01.23.000000 PM',0,40,'2531215'); 
    insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12861!AMADVISORSERVICESFLOW','16-JUL-13 15.03.55.000000 PM',0,40,'2568091'); 
    insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12862!AMADVISORSERVICESFLOW','16-JUL-13 15.03.56.000000 PM',0,40,'742254777');
    insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12863!AMADVISORSERVICESFLOW','16-JUL-13 15.03.57.000000 PM',0,40,'2568091'); 
    insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12864!AMADVISORSERVICESFLOW','16-JUL-13 15.06.29.000000 PM',0,40,'742254777');
    insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12865!AMADVISORSERVICESFLOW','16-JUL-13 15.06.31.000000 PM',0,40,'2568091'); 
    insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12866!AMADVISORSERVICESFLOW','16-JUL-13 15.06.32.000000 PM',0,40,'742254777');
    The output required is like below
    1.       AM-12859 BXYZAB CO. 742254777  07/16/2013 15:01:21
    2.       AM-12862 BXYZAB CO. 742254777  07/16/2013 15:03:56
    3.       AM-12864 BXYZAB CO. 742254777  07/16/2013 15:06:27
    4.       AM-12866 BXYZAB CO. 742254777  07/16/2013 15:06:31
    5.       AM-12858 WHIJKL CO.  2531215  07/16/2013 15:01:16       The values of this timestamp is actually '16-JUL-13 15.55.57 in datbase
    6.       AM-12860 WHIJKL CO.  2531215  07/16/2013 15:01:22
    7.       AM-12861 SIJKLM CO.  2568091  07/16/2013 15:03:54
    8.       AM-12863 SIJKLM CO.  2568091  07/16/2013 15:03:56
    9.       AM-12865 SIJKLM CO.  2568091  07/16/2013 15:06:30
    I could work this out till below:
    ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12859!AMADVISORSERVICESFLOW 7/16/2013 3:01:22 PM 0 40 742254777
    ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12862!AMADVISORSERVICESFLOW 7/16/2013 3:03:56 PM 0 40 742254777
    ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12864!AMADVISORSERVICESFLOW 7/16/2013 3:06:29 PM 0 40 742254777
    ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12866!AMADVISORSERVICESFLOW 7/16/2013 3:06:32 PM 0 40 742254777
    ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12861!AMADVISORSERVICESFLOW 7/16/2013 3:03:55 PM 0 40 2568091 
    ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12863!AMADVISORSERVICESFLOW 7/16/2013 3:03:57 PM 0 40 2568091 
    ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12865!AMADVISORSERVICESFLOW 7/16/2013 3:06:31 PM 0 40 2568091 
    ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12860!AMADVISORSERVICESFLOW 7/16/2013 3:01:23 PM 0 40 2531215 
    ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12858!AMADVISORSERVICESFLOW 7/16/2013 3:55:57 PM 0 40 2531215
    with order by masteraccntfirmcustid desc ,pxcreatedatetime
    But one of the developer told me masteraccntfirmcustid should be asc
    This resultset is supposed to be ordered by
    order by masteraccntfirmcustid ,pxurgencyassign desc NULLS LAST ,work_pxurgencywork desc NULLS LAST,pxcreatedatetime
    in the test data I have been given pxurgencyassign and work_pxurgencywork is same for all the records
    Could you please help?
    Thanks,
    swapnil

    the results of the query are not matching the data in the table.  like ....
    1.      BXYZAB CO.
    2.      BXYZAB CO.
    3.      BXYZAB CO.

  • HT204364 Help on Ordering Photo Book

    I submitted a 62 page photo book for publication and after paying and, thereafter, gathering done, the order seems to get stuck in download at about the 1/2 way mark (according to Apple's completion bar graph; I know not necessarily accurate).  Left it going 2x overnight and still stuck in the morning.  Checked for updates to software.  Turned compueter off and tried again.  My internet speed is good.  I have ordered photo books in past and orders were completed without a problem.  Thoughts?
    By the way, it seems ridiculous that I can't ask Apple these questions for free when I am spending money to purchase products from them (I have three books for holidays lined up).  Is there a way when the problem is a purchase problem and not a computer problem? 

    Here are a some other tricks that helped users get their books ordered. Maybe one will work for you:
    First:
    crowland1066
    Re: book upload fails
    Nov 30, 2013 3:02 PM (in response to pablo123)
    Just got off the phone with apple support.  If the photo book completes the assembly process but fails during the upload process the problem is in their overloaded servers.They just started a free shipping promotion for the holidays which has increased the traffic dramatically. I bought a calendar a week ago and it went right through. I'm going to try again during less peak times.
    Next:
    Here's a fix that worked for some users:
    Make sure this checkbox is checked in the System/Sharing preference pane:
    If it is, uncheck it and then recheck and try ordering again.
    And lastly:
    Quit iPhoto.
    From the Finder menu bar, choose Go > Utilities to access your Utilities folder (or press Shift-Command-U).
    In your Utilities folder, open Keychain Access.
    Find the "NetServices" entry in your Keychain Access window.
    Select the "NetServices" entry and press the delete key.
    Reopen iPhoto and attempt to place your order again.
    You should be prompted to enter your account information if you deleted the Keychain entry successfully.
    After entering your account information, you should be able to complete your order.
    Happy Holidays

  • HELP WITH ORDERING PHOTOBOOK IN IPHOTO

    HI I HAVE THE LATEST IPHOTO SOFTWARE, BUT I SPENT ALOT OF TIME PREPARING A PHOTOBOOK AND WHEN I TRY TO ORDER IT I GET THE FOLLOWING ERROR MESSAGE:
    * -[NSPlaceholderMutableString initWithString:]: nil argument
    CAN SOMEONE PLEASE HELP ME/
    THANKS

    Does this article contain anything useful?
    (25717)

Maybe you are looking for

  • Variables in Bex Analyser

    Hi, I am trying to include two variables (ZCS_TDAT - User Entry/Default Value ,Selection Option,Ready for Input and ZCS_DDAT - Customer Exit,Selection Option , Not Ready for Input) both under 0CALMONTH. While trying to move them in Rows it is giving

  • OS patches required  in Solaris 10  for JDK 1.5

    I need to know if there is a set of required Solaris patches required to install jdk 1.5 and what are those? The documentation does not contain this information, thus it says that all required patches need to be installed. Thanks, Maria

  • Set Bookmark Open Options to Open File with Wild Cards

    Hi there Guys. I need help with something. I work on manuals with various table of contents that contain bookmarks and a lot of them are basically cookie cutter. Here is what I am wondering: The bookmarks are in numerical order and need to link to an

  • Rewired Reason with Logic

    Hey guys, I am new here. I successfully rewired reason so I can hear it in Logic, but the only problem is that I hear both programs playing the sound. There might be a quick and easy solution that I do not know of since I am quite new to logic. Anywa

  • Amount no Showing miro

    Hi expert I have made a Import Po while doing miro for Custom, duty amount and Qty are not showing in Miro. what will be problem. Regard