Can this be done by just a single query alone ?

hi ,
I have the following data
id , type1 , duration, status
1 a 2 R
1 a 3 R
1 a 2 I
i need to become a single record as follows
id , type total , total_R , total I
1 a 7 4 2
partitition by does not allow where clause
besides 1st creating a table and then update the fields , is this possible in just using 1 query (besides unioning several query for total_R , total_I) ?
pls advise
tks & rgds

select id , case when type like '%I' then sum(time1)
end case total_1
group by id , -- if i do not speciy type it won't
work but what i want is a total over each different
idpls adviseSum should come outside the case statment. Try this
select id , sum(case when type like '%I' then time1 end) total_1
group by id There is no performance difference between case and decode.

Similar Messages

  • Demo & Video - Can this be done?

    My client would like to have a captivate demo of their
    software on the right side of the screen, while on the left there
    is video of a manager explaining the demo.
    It would look like this:
    link
    Can this be done with just Captivate? From what I can tell
    your recording has to be the full size of your project. If not,
    anyone know what tools could be used to do this? I assume Flash,
    but would imagine the difficulty would be getting the demo and the
    video to be in sync.
    Any suggestions/thoughts are very appreciated.
    Edit: I think I should have put this post in General. Anyone
    know how to have it moved? I don't want to create multiple posts of
    the same topic.
    Thanks!
    Choksi

    Welcome to our community, Choksi
    I'm pretty sure you can do this with Captivate, some
    imagination and another little Adobe product called Visual
    Communicator.
    Click here
    for the Visual Communicator site)
    Basically, you would record the demonstration at the smaller
    size. Then you would create a larger Captivate presentation that
    would hold the whole thing. You would then have the basic
    demonstration occurring in the left side of the screen as your
    image shows. Now for the fun part. You would use Visual
    Communicator to record many smaller video segments that describe
    what is occurring over on the left side of the screen. Once
    recorded, you would produce them as .FLV files and insert them onto
    the Captivate slides as needed.
    I suppose you may be able to also work the other way around.
    Create the Captivate projects and insert them into Visual
    Communicator. Not sure if it supports that quite yet, but may be
    interesting.
    Hopefully that helps... Rick

  • I have just got a new computer and I want to transfer Adobe Acrobat to my new one can this be done ?

    I have just got a new computer and I want to transfer Adobe Acrobat to my new one can this be done ?

    Hi Ianpce,
    You need to download and install Adobe Acrobat on the new machine to use it.
    You can use the same subscription or the serial number to activate the product.
    Thanks

  • Have just migrated from the world of PC's. and I had my set up so that when I typed a new sentence it started with a capital with out me pressing shift. also, i could set up words to self fill like ur would auto correct to your. can this be done with mac

    Have just migrated from the world of PC's. and I had my mail text typing set up so that when I started  a new sentence after a full stop  it started with a capital with out me pressing shift. also, i could set up words to self fill like ur would auto correct to your. can this be done with mac

    I don't know about the first letter cap but the spelling is simple. Edit - Spelling and Grammar - Select While Typing and Correct Spelling Automatically.
    I'd also STRONGLY recommend that you bookmark and use:
    Mac 101
    Switch 101
    Find Out How Video tutorials
    List of Useful URLs for switchers
    Welcome to the Light side.

  • TS1315 I have just purchased the new iPad with the camera connection kit. I just want to bewant to be able to insert my SD card into the Pad and only view my photos, not import them to the pad.  Can this be done and how do I do this.  Please advise.  Thaj

    I have just purchased the new iPad with the camera connection kit.  I just want to be able insert my SD card into the Pad and view my photos, not import them.Can this be done and how?  Please advise.  Thank you.

    See this article: iPad: Using the iPad Camera Connection Kit
    No, this canot be done, afaik. When your camera or card is connected, you will see the thumbnails in the camera pane, but not full size preview. So to browse your photos on the iPad you will need to import them to your camera roll. But you need not delete them from the camera or card after importing, so you might simply import selected photos to your camera roll from the camera grid and then delete them again from the camera roll after importing and browsing, without removing them from the card/camera.
    Regards
    Léonie

  • I have just purchased the new iPad with the camera connection kit.  I just want to view my photos from my SD card, not import them to the iPad.  Can this be done and how is it done?  Please advise.  Thank you.

    I have just purchased the new iPad with the camera connection kit and want to be able to view my photos full screen and not import them.  Can this be done and how?  Please advise.  Thank you.

    When connecting the Camera Connection Kit to a camera or SD card all you see are the thumbnails of the photos. I suggest you review those, select the photos you might want to see full screen, then import them to your iPad. After viewing them you can always delete them if you no longer want them on your iPad.
    I also suggest Keeping the photos on your camera or SD card until you import the to your computer and back them up to at least one other location.

  • Since Windows 2003 Services ending we moving Sharepoint Services 3.0 to Windows 2008R2, Any help how can this be done ?

    Since Windows 2003 Services ending we moving Sharepoint Services 3.0 to Windows 2008R2,
    Any help how can this be done ?
    We have 1 Server and single Farm.
    I have build New 2008 R2 Server and planning to restore Backup taken from Old server to this new server. Will this work ?
    Which version of Sharepoint should i install on Windows 2008 R2 server , i run sharepoint.exe downloaded but it throws error

    Sorry for late reply.
    Your next step is, create a new web application and deattach the content DB from new web application. You need to attach existing CDB to that web app.
    Here is some links for your ref (unfortunately this is for 2010 but it same steps should work in WSS as well)
    http://nikpatel.net/2009/03/11/step-by-step-process-move-site-collections-from-one-content-database-to-another/
    http://www.sharepointpitstop.com/2012/06/attachdetach-sharepoint-webapp-contentdb.html
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How do I set up two separate iTunes accounts on one MacBook Pro in order to manage the wife's iPhone and my iPhone? Can this be done?

    How do I set up two separate iTunes accounts on one MacBook Pro in order to manage the wife's iPhone and my iPhone (with separate info on each of course) ? Can this be done? A little step by step would be greatly appreciated; just short step by step though, I can follow fairly well.
    Kindest Regards,
    Phil T.

    You would each need to use your own user account on the Mac, you can do this at system preferences > users & groups.

  • I want to shoot a movie on my iPhone and edit it on my iPad using the iMovie app. How can this be done via iTunes on my computer?

    I want to shoot a movie on my iPhone and edit it on my iPad using the iMovie app. How can this be done via iTunes on my computer?

    You can't drag video into the filesharing pane of iTunes, you can only transfer projects.
    Videos need to come in via the photos tab of iTunes.
    The easiest way to get videos from the iPhone to the iPad is via the project export import.
    Projects can be exported from the iPhone, then imported to the iPad like this:
    iPhone Send a project or trailer to iTunes
    If the marquee screen isn’t showing, tap the My Projects button .
    Scroll to center the project or trailer you want to share.
    Tap the Share button at the bottom of the screen, and then tap iTunes; tap OK when iMovie indicates that export is complete.
    Connect your device to your computer, and then open iTunes on your computer.After a moment, your device appears in iTunes, below Devices on the left.
    Select the device, and then click Apps at the top of the iTunes window.
    Select iMovie in the Apps list below File Sharing. (You may need to scroll to see it.)
    In the iMovie Documents pane, select the file you just shared, and then click the “Save to” button; save the file to your computer in a place where you can find it easily.You can also save the file by dragging it to the desired location on your computer.
    Disconnect the device from your computer.
    iPad Import a project or trailer from iTunes
    Connect your device to your computer, and open iTunes on your computer.After a moment, your device appears in iTunes, below Devices on the left.
    Select the device, and click Apps at the top of the iTunes window.
    Select iMovie in the Apps list below File Sharing. (You may need to scroll to see it.)
    Click Add below the iMovie Documents pane; in the window that appears, navigate to the file you want to add.
    Select the file, and then click Open to copy the file to your device.The file appears in the iMovie Documents pane when copying is complete.
    Open iMovie on your device; if the marquee screen isn’t showing, tap the My Projects button in the upper-left corner above the viewer.
    Tap the Import button at the bottom of the screen, and then tap the name of the project you want to import.When the import is complete, the project opens and can be edited like any other project.

  • I want to have 2 seperate libraries with content in different locations, can this be done?

    Hi there, I have 2 uses for itunes, one is for my mobile DJ business and for this I store all of my music on a 2TB external firewire 800 HDD I use Traktor Pro to mix, but find itunes very good for creating playlists.  I would however like to be able to store seperate content on my internal drive in a different library for personal use as a great deal of the stuff in my DJ collection I personally have no time for, and do not want the inconvenience of needing to connect my external HDD to be able to listen to my own collection.  I have a SSD installed and have tried depressing the CMD button during startup of the application although no option for creating a new library presents its self, it may be that the start up is too quick for me to be able out this.  Any ideas guys? Many thanks.

    Trying2loveMac wrote:
    Can this be done? If so, how?
    there may be other (better) ways out there but all i can think of is this:
    1) make one iTunes library the main one and "consolidate" files that aren't in it, but in the other computer's libraries, to it.
    you can use home sharing for this but home sharing won't copy ratings, playcounts, and original "date added". a 3rd party tool such as PowerTunes would be very useful if those details are important to you.
    2) once the "main" library is created, copy the entire iTunes folder (not just the iTunes music or media folder) to the media server, launch iTunes while holding the option(⌥) key, click on choose library when prompted, and select the iTunes folder you copied to the new location.
    3) repeat with the other Macs.
    with a setup such as this, be aware that only one iTunes at a time can access the library. if your intention is to enable multiple machines to access the library simultaneously, you will probably have look into a NAS with a built-in iTunes server.

  • Adobe Bridge has been deleted and needs to be re-installed. How can this be done without reinstallin

    Adobe Bridge has been deleted and needs to be re-installed. How can this be done without reinstalling the entire CS5

    Hi RDMDanielM,
    Welcome to the Community!
    We cannot install Adobe Bridge as a Standalone product, you can just reinstall Photoshop and Bridge will be reinstalled with it. Go ahead and start uninstalling CS5 suite but choose Photoshop from the list and the same will be applicable while Installation.
    Thanks!
    Ankit

  • I have numbers on mac mini and need to email as an attachment  one sheet instead of the 30. Can this be done

    Can anyone help please. I have just downloads the numbers app. I have a very large document of which i need to send a separate sheet each week as an attachment via email. Can this be done?. Sadly, I am used to Neo and that was rather easy to do.   I could not find the answer for excell either!  Surely, saving each sheet separately is not the only answer. 

    File > Print
    set the print range "From "  = 1, "To" = 1 in the print dialog, then
    click the "PDF" button the bottom left and select "Mail PDF"
    If you must send a Numbers document, then I think I would copy the germane content into a new document and save as the current month (or week), then attach that document.

  • I have been given a 28 page Pdf and have been asked to optimize the item to reduce the file size. Can this be done in Photoshop Elements? if so how?

    I am using a Mac and just bought Photoshop Elements 13. I have been given a 28 page Pdf and have been asked to optimize the item to reduce the file size. Can this be done in Photoshop Elements? if so how?

    No the pages will open as separate documents in Expert Mode. You really need Acrobat or possibly you could copy and paste the contents into MS word. Then re-save as PDF.

  • Can this be done? Emailing a completed form without emailing.

    When using a standard html form, a user can fill in the required fields, press post, and abracadabra, the results of the form are emailed to the specified account and the user is redirected to a page that says your form has been submitted.
    Can this be done using a .pdf? The email button is simply retarded. Why do users have to go through the hassle of having their email client opened just to submit the form they just completed? There probably isn't any other way, but would be nice if there was.
    Is it possible to create a submit button that will automatically email the completed .pdf form to a pre-specified email address and then redirect the user to a "thank you" page? I don't want to annoy my customers by forcing them to email me the form. I just want it sent when they click "submit."
    Is this even possible? If so, is it relatively easy?
    Any help is greatly appreciated!

    >Can this be done using a .pdf?
    Sure. The principle is exactly the same: you submit data to a script
    which runs on a web server. You are limited only by what the
    programmer has made the script do. Don't be under any impression that
    it is "magic": if you have a web form which submits and then you get
    an e-mail it's because there is a script on a web server that a web
    programmer wrote to make it happen.
    > The email button is simply retarded.
    I prefer to think of it as a handy tool for testing, but nothing
    anyone would use for the real solution.
    >Why do users have to go through the hassle of having their email client ...
    They don't. Did you know that you can "submit" an HTML form to e-mail?
    But nobody does, because it just isn't a good way of working. Everyone
    expects an HTML form to submit to a web script, but for some reason
    hopes they can use direct e-mail of PDF forms.
    Aandi Inston

  • 1 repository serving 2 OBIEE servers - can this be done?

    Hi Gurus.
    I have a question that I though might be better answered in this forum.
    Is it possible for us to configure 1 repository and have 2 OBIEE / Web Logic servers running from it?
    We are thinking of having one OBIEE server for external and the other for internal layers.
    Can this be done? With each running off / out of the same repository?
    I did find this http://www.rittmanmead.com/2010/07/obiee-11gr1-scaleout-clustering-and-high-availability/
    Any comments?
    Thanks in advance,
    OBIEE Oracle Business Intelligence 11.1.1.3:
    Linux x86 (64-bit):
    The Data ware house Database will be a 11g database
    Edited by: 869150 on 12-Sep-2011 05:52

    whoops - just read this Clustering
    i will close this post now.

Maybe you are looking for

  • Give Discount/Surcharges to PR00

    Hi Experts, Please can you explain how to give discount to PR00 base value? For example, currently the pricing logic is PR00 value * quantity = gross value. Any discount or surcharges will be based on this gross value. How to change it to give discou

  • JCO Destination are not coming in Content Administrator

    Hi Team I have created one Development Component in Local Development and imported an RFC. The JCOs used are standard WD_MODELDATA_DEST and WD_RFC_METADATA_TEST.. The JCOs are already configured and tested fine. When I am running the application it i

  • Mistakenly ordered duplicate audiobook, how can I remove and get reimbursed for duplicate?

    I mistakenly ordered a duplicate of an audiobook I already have. Is there any way to remove and get reimbursed for it?

  • SCOM Windows agent failover

    Hi experts, I need some clarification on resource pool. If i configure 500 agents on to one management server1 and keeping another management server2 for HA. If i create a resource pool and add both MS1 and MS2. Does all 500 agent failover to MS2 if

  • Is there log mechanism in SDK?

    Our product is using SDK(9.1, PDFLPrintDoc) to print a PDF document. It is an ActiveX control and utilize Acorbat Reader to display pdf files. One of our customer is using Acorbat Reader 9.3.3. At the customer's production environment the print will