Help Getting data in correct format

Hello,
ID VALUE DATETIME BRANCHID
1 21
2015-01-01 00:00:00.000 1
2 25 2015-01-02 00:00:00.000
1
3 25 2015-01-03 00:00:00.000
1
4 254 2015-01-04 00:00:00.000
1
5 21 2015-01-05 00:00:00.000
1
6 20 2015-01-06 00:00:00.000
1
7 54 2015-01-07 00:00:00.000
1
8 21 2015-01-01 00:00:00.000
2
9 25 2015-01-02 00:00:00.000
2
10 215
2015-01-03 00:00:00.000 2
11 25 2015-01-04 00:00:00.000
2
12 25 2015-01-05 00:00:00.000
2
13 24 2015-01-06 00:00:00.000
2
14 48 2015-01-07 00:00:00.000
2
I want to convert this list into 2 rows 1 for each branchid with the value to Today(2015-01-01), Tomorrow and SUM of day (4,5,67)
Can someone tell me a way of accomplish this?
Thanks

Hi, can you clear up please?
Questo post è fornito "così com'è". Non conferisce garanzie o diritti di alcun tipo. Ricorda di usare la funzione "segna come risposta" per i post che ti hanno aiutato a risolvere il problema e "deseleziona come risposta"
quando le risposte segnate non sono effettivamente utili. Questo è particolarmente utile per altri utenti che leggono il thread, alla ricerca di soluzioni a problemi similari. ENG: This posting is provided "AS IS" with no warranties, and confers
no rights. Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Similar Messages

  • I read about  outside publisher assistance that helps get the books correctly formatted for uploading - any info on this? I found it yesterday while searching iBooks Author information and have lost it! :) thanks

    Is this assistance, for a nominal fee, called aggregators?  I can't find this info anymore, and wonder if anyone else has heard of this.
    thanks,

    https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/wa/displayAggregato rs?ccTypeId=13
    Check this out - Fabe

  • Put java.sql.Date in correct format

    I need to put java.sql.Date in correct format to query an Oracle database.
    Here is my code:
            SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yy");
            java.util.Date dateChosen = jXDatePicker1.getDate();
            String strDate = formatter.format(dateChosen);
            System.out.println("Date Chosen: " + strDate); // output is: 11-Feb-00
            java.util.Date parserDate = null;      
            try {
                parserDate = formatter.parse(strDate);
            } catch (ParseException re) {
                System.err.println("Exception caught: " + re.getMessage());
            // create java.sql.Date object
                java.sql.Date oraDate = new java.sql.Date(parserDate.getTime());
            System.out.println(oraDate);  // date is in this format: 2000-02-11
            System.out.println("formatted oraDate: " + formatter.format( oraDate ) ); // no good, stringIf I use formatter.format( oraDate ) I get the correct format (11-Feb-00) BUT it is no longer a sql Date, it is a String which can't be use.
    I have looked at the API and many other forum threads on this, any help would be greatly appreciated!

    In the class with the PreparedStatement, I pass the date like this:
    public class report extends javax.swing.JDialog {
         java.sql.Date newDate;
        public report(java.sql.Date passedOraDate, String passedtxtDate) {
            super();
            initComponents();
            setTitle("Report");
            setModal(true);
            newDate = passedOraDate;
            statusLabel.setText(passedtxtDate);
            System.out.println("passedtxtDate: " +passedtxtDate);       
            System.out.println("newDate: " +newDate);      
        }Here is the code that uses the actual PreparedStatement:
            try {
                // In my actual code I have all columns listed in query
                String query = "SELECT * FROM report WHERE repdate = ?";
                ps = conn.prepareStatement(query); // create a statement
                           ps.setDate(1, newDate); // set input parameter
                rs = ps.executeQuery();
                // extract data from the ResultSet
                ResultSetMetaData md = rs.getMetaData();
                int columns = md.getColumnCount();This is greatly edited to show relevant code!

  • Getting date and time format through RIDC call

    Hello,
    i want to set date and time features to my document , how can i get the date and time from RIDC call
    Regards
    Mayur Mitkari

    Hello
    I am performing this operation for getting date
    username = Util.getInstance().getCurrentUser().toString();
    IdcClient myIdcClient = Util.getInstance().getUCMConnection();
    IdcContext myIdcContext = new IdcContext(username);
    DataBinder binder = myIdcClient.createBinder();
    binder.putLocal("IdcService", "COLLECTION_GET_COLLECTIONS");
    binder.putLocal("hasCollectionID", "true");
    binder.putLocal("dCollectionID", parentNodeID);
    idcResponse = myIdcClient.sendRequest(myIdcContext, binder);
    DataBinder serverBinder = idcResponse.getResponseAsBinder();
    DataResultSet resultSet = serverBinder.getResultSet("COLLECTIONS");
    folderInfoList = new ArrayList<String>();
    resultInfoList = new ArrayList<List>();
    Iterator itr = resultSet.getRows().iterator();
    while (itr.hasNext())
    String dCreateDate = dataObject.get("dCreateDate").toString();
    but i am getting date in this format "2012-05-22 08:26:52Z"
    if i want the date in local timezone what can i do
    Regards
    Mayur Mitkari

  • How Adobe gets DATE and its format?

    Hello,
    I am getting current (todays) date by using below JS in some flds, and by using below FormCalc for some flds into my_form,
    JS:
    var currentTime = new Date()
    Form Calc:
    $.rawValue = num2date(date(), DateFmt(MM/DD/YYYY))
    But, i dont have much idea that how adobe is getting this date? For my company this is the very first form, hence they are asking me how adobe gets date and its format whether,
    1) From local IP/Interner provider address's date, format?
    2) or user PC/laptop's LOCAL settings date, format? if so, for example, if Germany user (Laptop settings) has a DD.MM.YYYY configured, if this user comes to US on a busines trip and if that user opens the form, then how the date looks like for this user? as per user laptop settings DD.MM.YYYY or local internat provider date format MM//DD//YYYY?
    Thank you

    Hi,
    the date() function returns the number of days since 01.01.1900 for the local date of the current system (related to the system clock of the OS).
    If you travel from Germany to the US but don't update your date/time settings, then it returns the same date in the US as in Germany.
    You can check the behavior by changing your local date/time setting or the timezones.

  • Need help getting floppy disc to format

    When i run volcheck some times get media in drive and I sometimes do not , basically I need to no how i can get my floppys to format and which commands and files to check to see if the floppy drive is working.... my two cdroms work fine but i cannot read data from floppy discs (I no my floppy drive is 100% ok) so what would I do to remedy this problem? I have read numerous man pages and non english documentation which was no good.
    Excuse my sinisism but Im starting to get really hacked of with solaris and its lack of support or incomplete examples
    any help appreciated
    David

    Hi David
    u can use #fdformat commnad to format the floppy.and also with -F option u can define the fstype ufs/pcfs . for more info u can go through man pagaes. hope this will helpu out.
    good luck
    shravan

  • Time From field is not getting displayed in correct format in Activities

    Hello Experts ,
    We are facing one problem in UI , when we search for Activities in Web UI . In the field "Time From" we are not getting the time in correct format , ie is instead of  getting time as say 13::38 we are getting time as 13::3 , but when we place cursor on it the field it shows correct format say 13::38.
    Can any one suggest how to display in correct format ?
    Regards
    Vinayak

    Hi,
    Its an SAP Product error.
    Please check note 1151821 ,if you facing the greyed button in time.Also the other note 1136402 needs to be applied for time display issue
    - Bobby

  • How can i get Date in this format - 04/Feb/2008

    I need to get the date in this format - 04.Feb/2008. How can i get it using Java coding..
    java.sql.date
    Please reply to this..

    Hi,
    Are you running this code in a java file which is running on your local system???
    Is this is webapp/webdynpro???
    If this is a web app/webdynpro and if its deployed on the server, it should take the time of the system(server) where the app is deployed.
    Regards
    Ayyapparaj

  • Help: getting data from a web page

    i have a jsp page which generates some strings. i pass these strings in to a login page on some server. the web page displays my login status. is it possible to read or get data from the web page?
    i have captured the header of a web page and modifying the header based on my generated strings.
    or jus say is it possible to read whats in a web page into a jsp page?
    thanks in advance for any help , assistance or redirection to a source where i can find help.

    hi,
    sorry for a poorly framed question.
    this is what i m trying to do.
    i call google with a header generated.
    now i want to read back the content in the google search result page onto my jsp page.
    possible?
    first.jsp calls google. i m using redirect (url)
    the url is modified based on user input
    now i want the links in the google page to be put up in my page itself. so i want to read the links there...
    Message was edited by:
    on_track

  • Help get data from socket

    hi all
    i am trying to get data from socket www.yahoo.com site and try to write in file with following code
    NOTE:here netClient is the soccket object accepted by server
    File f=new File(finalpath);
    BufferedReader fromClient = new BufferedReader(new InputStreamReader(netClient.getInputStream()));
    OutputStream fo=new FileOutputStream(f);
    String str;
    try{
    while((str=fromClient.readLine())!=null){
    byte buf[]=str.getBytes();
    fo.write(buf);
    }catch(Exception e){}
    finally{fo.close();}
    But i am not getiing data from socket
    please help
    regards krunal

    GeneralYerevan is absolutely right. Use URLConnection and you will get what you want. It seems to me that you do not know deeply how http works. The fact that you opened a connection to www.google.com doesn't mean that you will get data. The web server, after it accepts the socket object, waits for your request. In you case it is something like "GET / HTTP1.1", which you have to write to the stream. URLConnection does all this for you and all you have is to read the InputStream.

  • How to read data in correct format from EXCEL file into an internal table??

    Hi Experts,
    My requirement is to upload data from an excel file on presentation server into an internal table on <b>SRM</b> server.
    I used 'GUI_UPLOAD' function module to achieve the same but all the the data is getting uploaded in # only.I had set in the 'HAS_FIELD_SEPARATOR' to 'X' to overcome this problem.
    But all the efforts are in vain. The function module 'ALSM_EXCEL_TO_INTERNAL_TABLE' doesn't exist on SRM Server and I am not getting any other function module having similar functionality available on SRM server.
    I have written the following code:-
    TYPES: BEGIN OF ty_addr_loc,
             userid    TYPE xubname,      "User Id
             addr_code TYPE char4,        "3 Digit Site Location Code/4 Digit
                                                       "Alternate Address
             loc_id    TYPE bbp_location, "Indicator: Address is standard address
            END OF ty_addr_loc.
    *Retrieving file name
    parameters: p_file type rlgrap-filename.
      DATA:
        Local variable holding file name
          l_file TYPE string,
        Local Variable holding the file type,
          l_type TYPE filetype VALUE 'ASC',
        Local Variable holding the field separator
          l_sep  TYPE char01,
          i_tab type standard table of ty_addr_loc.
    Clearing local variables
      CLEAR:
            l_file,
            l_sep.
    Initializing the local variables
      MOVE p_file TO l_file.
      l_sep = 'X'.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = l_file
          filetype                      = l_type
          has_field_separator           = l_sep
       HEADER_LENGTH                 = 0
       READ_BY_LINE                  = 'X'
       DAT_MODE                      = ' '
       CODEPAGE                      = ' '
       IGNORE_CERR                   = ABAP_TRUE
       REPLACEMENT                   = '#'
       CHECK_BOM                     = ' '
       VIRUS_SCAN_PROFILE            =
       NO_AUTH_CHECK                 = ' '
    IMPORTING
       FILELENGTH                    =
       HEADER                        =
        TABLES
          data_tab                     = i_tab
       EXCEPTIONS
         file_open_error               = 1
         file_read_error               = 2
         no_batch                      = 3
         gui_refuse_filetransfer       = 4
         invalid_type                  = 5
         no_authority                  = 6
         unknown_error                 = 7
         bad_data_format               = 8
         header_not_allowed            = 9
         separator_not_allowed         = 10
         header_too_long               = 11
         unknown_dp_error              = 12
         access_denied                 = 13
         dp_out_of_memory              = 14
         disk_full                     = 15
         dp_timeout                    = 16
         OTHERS                        = 17
      IF sy-subrc <> 0.
      Throwing an information message
        MESSAGE i003. "Data Upload Failed
        LEAVE LIST-PROCESSING.
      ENDIF.
    Please tell me a way out. I have to make a delivery urgently.
    Thanks in advance,
    Swati Gupta

    Hi
    Try the FM <b>KCD_EXCEL_OLE_TO_INT_CONVERT</b>
    Sample:
      call function 'KCD_EXCEL_OLE_TO_INT_CONVERT'
           exporting
                filename                = i_filename
                i_begin_col             = l_begin_col
                i_begin_row             = l_begin_row
                i_end_col               = l_end_col
                i_end_row               = l_end_row
           tables
                intern                  = xt_intern
           exceptions
                INCONSISTENT_PARAMETERS = 201
                UPLOAD_OLE              = 201.
      if sy-subrc <> 0.
        e_subrc = sy-subrc.
        exit.
      endif.
    <b>reward if Helpful.</b>

  • Need help getting data out of Berkeley DB

    Hi All
    I have an old vrsion of Berkeley Db (about 5 years old I think) that we use at work for storing key value pairs. We use this to store ids for that data that we later load to a relational database. We have multiple files with key vaue pairs. One particular file is very large(11 GB) and has about 100million entries.
    We are trying to migrate the data from Berkeley DB to a relational database. I was able to get the entries out of most files but this large file is givng trouble.
    I can only get out about 26 million entries. I have tried Ruby and Perl to get the data out (our main application is in Ruby) and tried multiple approaches but all hit the limit at about 26.xx million records.
    If anybody has experienced similar thing and knows a way to get the data out, your help is highly appreciated.
    Thank
    Harsh D.

    Hi All
    This is for Berkeley DB version that is at least 5 years old. I do not know the exact verion and do not know how to find one. This is not for the Java Edition or the XML edition.
    Below is what I am doing in Ruby:
    db = nil
    options = { "set_pagesize" => 8 * 1024,
    "set_cachesize" => [0, 8024 * 1024, 0]}
    puts "starting to open db"
    db = BDB::Btree.open(ARGV[0], nil, 0, options)
    if(db.size < 1)
    puts "\nNothing to dump; #{ARGV[0]} is empty."
    end
    puts "progressing with the db"
    myoutput = ARGV[1]
    puts "allocating the output file #{myoutput}"
    f = File.open(myoutput,"w")
    i = 0
    iteration = 0
    puts "starting to iterate the db"
    db.each do |k, v|
    a = k.inspect
    b = v.inspect
    f.puts "#{a}|#{b}"
    i = i+1
    if (i>1000000)
    iteration = iteration + 1
    puts "iteration #{iteration}"
    i = 0
    end
    end
    This only outputs about 26.xx million records. I am sures there are more than 50 million entries in the database.
    I also tried some other approaches but nothing seems to work. I end up getting only 26.xx million entries in the output.
    In some case, I managed to get it to output more records, but after 26.xx million, everything is output as duplicate entries so they are of no use to me.
    The Ruby is 32 bit version. I tried this on Windows 7 (64 bit) and also on RedHat Linux 5 (64 bit version).
    Thanks
    Harsh
    We ran db_stat on the ExpId database and below are the results
    ExpId
    53162 Btree magic number
    8 Btree version number
    Big-endian Byte order
    Flags
    2 Minimum keys per-page
    8192 Underlying database page size
    2031 Overflow key/data size
    4 Number of levels in the tree
    151M Number of unique keys in the tree (151263387)
    151M Number of data items in the tree (151263387)
    9014 Number of tree internal pages
    24M Number of bytes free in tree internal pages (68% ff)
    1304102 Number of tree leaf pages
    3805M Number of bytes free in tree leaf pages (64% ff)
    0 Number of tree duplicate pages
    0 Number of bytes free in tree duplicate pages (0% ff)
    0 Number of tree overflow pages
    0 Number of bytes free in tree overflow pages (0% ff)
    0 Number of empty pages
    0 Number of pages on the free list

  • Help get data

    hi guys
    is there any tools in oracle that help me to get my data in script.sql tat data in it like
    insert into table.....
    and thank's

    dark death wrote:
    hi guys
    is there any tools in oracle that help me to get my data in script.sql tat data in it like
    insert into table.....
    and thank'sSQL is the tool

  • Help getting data off ipad

    Ok, I'm hoping someone can help me here. I"ve read tons on the forums but can't seem to find a solution.
    Here's what I'm working with:
    iPhone 4s v 5.0.1
    iPad 2 v 5.0.1
    MacBook Air v 10.6.8
    I use various email accounts - gmail is where I get most emails, exchange server which is where my contacts & calendar reside as well as a .me account that I don't use at all. I don't sync through itunes (never saw a need to since my email, contacts & calendar sync through exchange and gmail). I do try to run a backup every so often.
    All this has been working great, til the exchange server blew up and we all lost everything. Most people are also working off a desktop outlook so IT was able to recreate most of their stuff that way. I don't, as I either work off ipad, iphone or web mail access.
    Luckily, my ipad was in airplane mode at the time and is now the only place with a clean copy of my calendar and contacts. I did a backup of this, and the IT guy tried to extrapolate the data from that backup. Unfortunately, what got synced back to the exchange server was not a complete copy - many appointments are missing, contacts are incomplete - and I can't find any rhyme or reason to the missing data. I'm thinking that it has to do with what itunes does and does not backup, but not sure.
    So, is there any hope that I can get this data somehow? I am open to multiple solutions. I can move it to gmail, to the cloud, to entourage, to the server. The thing is, as soon as I turn it off airplane mode, it will sync to the server and wipe everything out so keep that in mind.
    Any ideas would be greatly appreciated!

    Try this. Connect your iPad to your MacBook. Launch Image Capture (in the Applications folder). It should recognize you iPad and hopefully you'll be able to transfer your photos too.

  • Help getting data from iTunes onto my New iPad from iPhone backup

    Hi for 2 days now I have been trying to sync my New iPad2 with my iPhone 3GS, I have followed lots of threads & advice which has been helpful but its not quite happening for me!
    I set up iCloud and iTunes as advised, my iPhone & iPad share the same Apple ID. I backed up my iPhone to iTunes successfully, and restored the iPad via iTunes using the iPhone backup, it went thru the motions OK so I assume completed but I can't see any change.
    Under "Purchases" in my iTunes account it has two tabs one for the iPhone and the other iPad listing all my Apps so clearly it recognises my Apps but the Apps only feature on my iPhone I can't get them onto my iPad. I even deleted some apps and reloaded them since the sync & backups but it still doesn't work. Strangely under my "Account" in iTunes it says only 1 Device is recognosed by iTunes and thats my New iPad, yet it still shows a Tab under Purchases for my iPhone so I don't understand why this is not listed as a recognised Device under the Accounts tab.
    My contacts, calendars etc are in sync between the two devices wihtout any trouble at all.
    I did think it was because some of the apps were downloaded before the sync / backup but some threads lead me to beleive you can sync the content no matter when it was purchased. Under the "Purchases" tab for my iPad I can view my "Apps" which has a "Download all" option so Ibeing at a loss what to do next I proceeded to Download All and it was clearly doing this for some time but still nothing on my iPad.
    I was advised to turn iCloud off whilst I do the backup and restore on iTunes, and then turn it back on after. I have turned my iPad off/on after these updates but still the apps do not transfer across.
    I feel like I am so close now but for some reason something is still not working! Please Help - thankyou.
    (Just to add both devices are using the latest software update & iTunes working with Vista Windows on PC.)

    Connect and select iPhone in computer iTunes sidebar, in Music tab,
    select
         Sync Music,
         Selected Playlists, artists, albums....
         Select the music you want on iPhone.
         Click Sync button (bottom right)
    Here's the iPhone user manual
    iPhone User Guide (For iOS 6.1 Software)
    Message was edited by: ckuan

Maybe you are looking for

  • "Licensing for this product has stopped working" error 148:3

    I have only just installed CS4 Production Premium, opened a CS3 Premiere project and saved it as a CS4 project, then run the updater for Premiere to 4.0.1. When I restarted I got the above message and cannot now use the program. Anyone know what I sh

  • Another case of "missing" iTunes songs, internal drive, iTunes 8 & 9

    I have searched the forums for several hours, pouring over post after post on this subject, but have not seen an answer or workable solution to this exact problem. I have been using iTunes since version 1, and have a little over 14,000 songs in my li

  • Is iMovie's AIC = FCP's AIC?

    Can I import my AVCHD footage into iMovie, and then used by FCP in the future? I am pretty sure iMovie use AIC when importing AVCHD. Is there anyone know how big file size if transcoding a 2-minutes AVCHD to AIC or Apple ProRes 422 (LT)? Quote from t

  • HowTo run a .jar file??

    Hi I downloaded jpodder. It is a jar file. How do I run it? [chris@traumschiff Desktop]$ java -jar jpodder1.0RC2-Linux.jar kaffe-bin: machine.c:256: translate: Zusicherung »reinvoke == false« nicht erfüllt. Abgebrochen [chris@traumschiff Desktop]$ Wh

  • Photos deleted from facebook are now missing from iPhoto

    How do I recover photos that went missing after deleting an album from facebook?