making case which partition by

Hi all
   select   CASE WHEN h.slurry_vol_ACTUAL = 0 THEN 0 ELSE (SUM (  (NVL (f.calc_cement_sk, f.calc_amount) * NVL (f.item_price, 0)
                )
              - (  NVL (f.calc_cement_sk, f.calc_amount)
                 * NVL (f.item_price, 0)
                 * (NVL (f.dis_per, 0) / 100)
                ))
             ) /(h.slurry_vol_ACTUAL)  END PER_BARREL

from 
FROM 
     xxnp_opn_joblog_est_002 f,
        xxnp_opn_joblog_001 j,
         xxnp_opn_joblog_slurry_003 h,
           

i want  to make this case statement as partition by h.slurry_type
kindly Guide
thanking in advance

Like this

select slurry_type, val/h.slurry_vol_actual per_barrel
  from (
        select h.slurry_type
          , h.slurry_vol_actual
          , sum(
                 case when h.slurry_vol_actual = 0 then 0
                      else (
                         (
                            (
                              nvl(
                                 f.calc_cement_sk
                               , f.calc_amount
                              ) *
                              nvl(
                                 f.item_price
                               , 0
                              )
                            ) -
                            (
                              nvl(
                                 f.calc_cement_sk
                               , f.calc_amount
                              ) *
                              nvl(
                                 f.item_price
                               , 0
                              ) *
                              (
                                nvl(
                                   f.dis_per
                                    , 0
                                   ) / 100
                              )
                            )
                          )
                         )
                 end
               ) over (partition by h.slurry_type) val
          from xxnp_opn_joblog_est_002 f, xxnp_opn_joblog_001 j, xxnp_opn_joblog_slurry_003 h,
         where 
       )

Tags: Database

Similar Questions

  • Satellite L655-178 - which partition will be available to start?

    Hello

    My Satellite L655-178 comes with active EFI Insyde H2O Bios. Apparently this BIOS needs to access the HARD disk before starting Windows. Nobody knows in which partition occurs this pre-start HARD drive access?

    My laptop has 3 partitions on a 500 GB HARD drive
    -400 MB Hidden Partition (without drive letter assigned)
    -C: Windows Partition
    D: a Partition of data (with HDD recovery)

    My guess is the Insyde H2O Bios to access the Pre-boot 400 MB hidden partition?

    Am I wrong?

    Thanks :)

    Hey,.

    Your question is interesting, but may I ask why is it important? Serious errors on your laptop?

    Well, first of all, you know that the 400 MB hidden partition is not the boot partition. It contains only the files of Windows recovery environment and cannot be accessed during boot I think. Just read this article:
    http://en.Wikipedia.org/wiki/Windows_Recovery_Environment

    As you can see, it s a Windows feature and has nothing to do with Toshiba.

    In any case, the start player C: partition will be accessible for on this Windows partition is installed. All that s!

    But until Windows starts, the BIOS HARD drive search internal, but it doesn't have access to all data of it. The BIOS simply check if an internal HARD drive is installed and it is indifferent to what you have on it of the partitions.

  • XP to Win 7 set at level OK. A 80 GB with 20 GB C and D Partitions 60 GB drive. Which Partition is active? Can remove Win subdir on another Partition?

    I have a Dell 745 with XP to Win 7 installed OK. The 80 GB hard drive has a partition C of 20 GB and 60 GB D partitions. The two partitions have a Windows subdirectory. If D is the active partition, can I remove the Windows subdirectory on the partitiion C? How can I find out which partition is active?

    Personally I start from scratch by booting from the cd win7 to install, early in the process when it locates the partitions, delete them both, and then continue the installation to utalise all the space

    http://winsupersite.com/article/Windows-7/clean-install-Windows-7-with-upgrade-media-128512

  • that means "user singolo"? I 'am' a company, a single user, but I would like to use the software in my Office OR home. is it ok with 'user unico "? the case, which means 'aziende '?

    that means "user singolo"? I 'am' a company, a single user, but I would like to use the software in my Office OR home. is it ok with 'user unico "? the case, which means 'aziende '?

    Cloud license allows 2 activations http://www.adobe.com/legal/licenses-terms.html

    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0

    -Windows or Mac has no importance... 2 on the same operating system or 1 on each

    -Two activations on one account CAN NOT be used at the same time (to be noted in the link above of the license)

  • which partition to install windows 7 on new system

    I just bought a new laptop without system. I got a copy of windows 7 Home premium 64-bit to put on.

    The hard drive is 1000 GB and is divided into 4
    Name: Total size: free space: Type
    Disk 0 partition 1 GB 29.3, 29.2 GB system
    Disk 0 partition 2 GB 29.3, 29.2 GB primary
    Disk 0 unallocated space go-go 871.8 871.8
    Partition of drive 0 3: LENOVO_PART 1.1 GB 457.0 MB OEM (reserved)
    I know not to touch the OEM, but the marked partition system used allows to install because it is formatted in FaT32 and said it requires NTFS. 2 other partitions are viable, but I don't know which one to use. My instinct would be to go to the primary partition scored because I think that space, it would be OK and keep the operating system from everything that will go on the laptop. But I don't know about you. What do you guys suggest?

    The System Partition "Disk 0 partition 1 is where you would put it.

    To be honest, I would just remove everything and do a fresh install and create more partitions after.

    Are you sure there is no operating system already located on the OEM (reserved) file, you can use to install Windows? Because what is the meaning of keep if you already use a different installation media?

    New computers coming often pre-installed with Windows 7 have what is called a recovery partition. This is used to reinstall an operating system in the case of a system failure. To access it, you need to start when you start your computer by pressing a function key. This can be either F1, F2, F9, F10, F11, F12 key DEL or tab. See the manual that came with your PC for instructions on how to reinstall Windows.

    This is how the recovery partition is accessible to most popular brands...

    http://www-307.IBM.com/PC/support/site.WSS/document.do?lndocid=MIGR-4HWSE3

    Computers laptops Lenovo include a function called the Lenovo OneKey Recovery button, which is used to boot into the recovery environment and to reinstall Windows.

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

    If you still want to use the installation media you have, follow these steps:

    Boot from the Windows 7 DVD

    Click Install now

    Accept the license agreement

    When the option is displayed to select a type of installation, click (Custom advanced)

    Click on drive Options

    Select the disc/s click on Delete

    Click new

    Click on apply

    Click OK

    Click Format, and then click next to proceed with the installation

  • Tecra R840 - which partitions can I delete?

    Hello

    I installed a Plextor M5P 512 GB ssd in my Tecra R840-16J! I'm very happy with it :-)
    Restore laptop to factory state using the recovery DVDs I created before! Now, I have 2 copies and a 16 GB USBFlash with an extra copy! So I can restore to factory State whenever I want!

    But I would like to delete the allocated partitions to this!
    In my SSD, I have 3 partitions made after recovery (please to image): http://imageshack.us/a/img827/4873/34012663.jpg

    Who then can I remove?

    Thank you very much
    Paulo

    First (1.4 GB) partition is created automatically by Windows 7 and there are some files used by Win 7 in case you need fix the system or set system time back at the beginning.
    The second partition C is common system partition containing the Win 7 OS.
    The last partition is the recovery partition that contains the files to recover.
    Recovery files are required to create a recovery disk. In addition the recovery partition allows to recover the laptop without the use of the recovery disk (HARD disk recovery option)

    I do not recommend to remove or change any partition UNTIL you not create the recovery disk.
    Create the recovery disk and then you could change the partitions of HARD drive theoretically you can delete the last partition of HARD drive recovery if you have already created the recovery disc.

  • Should which partition I format it?

    I am well brought out shape and external drive and do not know what my drive icon, I need to select before clicking Delete. I always click on the second under the external option, please see the attachment. Does this mean that I am only formatting part of the player? What is the difference between the option of drive GB 500,11 and one below it labeled "format"?

    Thank you!

    the reader can have multiple partitions.

    the upper level of the player is the player itself (500.11 GB G-Tech...)

    the lower part shows the partitions (in your case there are)

    If you want to format the drive that you have selected the correct partition and the correct format for the encryption on a Mac.

  • Which partition is safe to remove?

    I have a laptop Compaq CQ57-339wm, and I wonder, what partition on my hard drive should I remove? I want to install Ubuntu 12.04 LTS alongside Windows, but I know that the creation of a dynamic disk is going to ruin my computer. What should I do?

    Here are my readers and their size:

    C - local disk (269GB)

    Q unknown, inaccessible (unknown)

    E HP_TOOLS (3.95 GB)

    D - recovery (14.4 GB)

    What should I remove?

    If I ever restore my computer (I never it restore to a previous state) HP_TOOLS will still work if I delete the recovery partition?

    What this partition called Q - I can't access it, I don't know what it is about size, I can't do anything with it.

    If I delete the partition HP_TOOLS, I can never restore my computer if something should happen, because my computer lacks a disc burner, and I don't have the money to buy one.

    I don't know that to be deleted. What is the best?

    Hello:

    Q is your virtual drive of MS Office Starter 2010.

    If you delete it, I don't think that you will be able to use MS Office Starter.

    It couldn't be that big... maybe not more than 200 MB.

    With regard to the other:

    E HP_TOOLS (3.95 GB)

    D - recovery (14.4 GB)

    If you delete the recovery partition, you will not be able to recover your PC in case something goes wrong.

    Is there not an option in your programs menu to make recovery media?

    I think that if you don't have an optical drive of your laptop, it should give you an option to create a USB bootable flash drive recovery media.

    I can not really be help a lot more than that.

    I remove all of my hard drive and install Windows from scratch, so I do not use the HP tools, recovery, etc. and I have a full version of MS Office, so Q went too.

  • Tips on how to make a business case for partitioning

    Hello world

    I am the architect of a team of business intelligence/data warehouse. We have grown to the point where I think that we need database partitioning. I believe that we are at approximately 1.5 TB of data. Our larger tables are the counts of 100 million lines with relatively large lengths Records (~ 100 columns). Our just a sort of large tables are of the order of 10 million to 50 million, however, they have very long line lengths (~ 300 columns). Based on the plans of our future source system, our data will become even more granular, and it is always necessary to maintain our historical data.

    Those who are not the only reasons, but are some conduct issues that make most of our team members think it's time we purchased database partitioning. Our team is fairly unanimous for partitioning, many of our partners from the source system also deem an 'evidence', however, we get a push back of our CIO saying that 1.5 TB and 100 million records is not only the large amount of data compared to other 'big Data' businesses and that it requires no partitioning.

    Anyone has any advice on how to make a business case for the purchase of partitioning? Is there a good way to demonstrate the value of profitability-vs?

    Thanks for your comments.

    -= Joe

    The best cost c. analysis of benefits is that you put together based on points regardless of the pain you feel.

    For example, you have pain around your evening of meeting load ALS? If you do, you can watch how (and if) partitioning would allow you to streamline your loading process and how much time you would save probably every night. If you have no problem hitting your evening load ALS today, however, this probably isn't something you want to focus on.

    You have pain around query response time? If Yes, you can watch how (and if) partitioning would improve some of the queries and most important reports. Or, perhaps, he would have you to allow users to do an ad hoc analysis more than you can't afford today because the cost would be prohibitive.

    Although you will find no doubt generic cost v. benefit whitepapers, it tends to make a much better case if you focus on what causes the pain of the company and what you as the application developers are willing to commit to. It is easy for a CIO watch a generic white paper saying "partitioning reduces ETL time up to 99%" and the question of what improvements he or she would have actually see and how this is marketing hype. It is much more difficult to look at a document put in place by the data warehouse team saying "partitioning would allow us to reduce the load of X of Y hours on Z hours every night. "That would allow us to hit our SLA w % more often without adding hardware / additional treatment for A project that we have been postpone / let Department B start to work with the data more early every morning / what causes the pain of the IOC. Of course, this means that he must be willing to make such commitments (and, of course, to meet).

    Justin

  • XPS 8700 - which partitions can I remove?

    * Please see my image in attachment my disk management *.

    I just manually installed Win 8.1 on my XPS 8700. I installed the operating system for an SSD, and in the Windows menu, I reformatted my hard drive 2 TB to store my programs on.

    (1) in the disk management screen, I noticed there is a lot of data recovery/OEM partitions - what I am able to remove? Do I need them or they are simple for recovery situations only? I'm a bit wary of removing OEM partition and EFI partition as I do not know if it will mess with my PC!

    (2) also whenever I start my PC, now it says I have 2 selections to begin:

    Volume 2 = SSD (which I want to start automatically)
    Volume 7 = a few menus recovery / on one of the partitions, but I can't say that

    I've never seen this before selection when I had Win8.1 installed on the hard disk. Wouldn't be better to simply keep the partitions and select volume2 as my disk to MBR in Windows so I ignore the msg to start every time?

    If you want to save your factory settings, you should do so, using Dell Backup and Recovery by using the Windows installation on your original drive:

    http://dellwindowsreinstallationguide.com/Dell-backup-and-recovery/

    i.e. remove the SSD and the original hard drive boot and then make a rescue disk (external hard drive Bootable) / Backup factory (USB Bootable).

    None of the 5 scores are needed for a data reader and I advise to dry the internal HARD disk (with removed SSDS and UEFI/SecureBoot disabled) using the likes of DBAN:

    http://dellwindowsreinstallationguide.com/securely-wipe-your-hard-drive-with-dariks-boot-and-Nuke-DBAN/

    You can then use these to restore the factory settings on the SSD later if you wish. Install in UEFI with activated SecureBoot.

    http://dellwindowsreinstallationguide.com/Dell-backup-and-recovery/#restore

    If you prefer to install manually clean then see here still install in UEFI with SecureBoot enabled:

    http://dellwindowsreinstallationguide.com/download-Microsoft-Windows-and-Office/Download-Microsoft-Windows/download-Windows-8-1-retail-and-OEM-ISO/

    After installation it will also help you configure Windows to use the HARD disk as a data disk:

    http://dellwindowsreinstallationguide.com/hardware-upgrades-for-your-system/upgrading-to-a-solid-state-drive/solid-state-drive-and-hard-drive-configuration/

  • I want to reinstall Windows Vista, but have 2 partitions on the hard drive partition which should I use?

    Which partition should I use to re - install Windows Vista? A partition is much smaller then the other.

    Hello

    you don't say how you are trying to reinstall vista

    If you use a microsoft vista dvd you would normally select a CUSTOM installation that gives you the opportunity to see what partitiions are available, what size are they and what is currently installed on them etc.

    It is then to you to delete the existing partition where vista is already installed and reinstall on the same partition or where you want to

    We cannot see how your hard disk is configured

    We can only give you general information on this subject

    read the tutorial below well especially the steps below:

    Now it's time to choose the installation type. Update or custom are the choice, but as you can see, in this case, Custom is the only option. There are two points to note. The first is under Customs where it says you can use this option to change the disks and partitions. This is true to a point. You can create and delete partitions and resize a partition using the command 'Extend '. The second thing to note is that if you want to 'Upgrade '. you need start the installation from Windows inside.

    Once determined the type of installation, it's time to decide where to install Vista. As you can see on the screenshot options in this scenario are limited. There is a 20 GB hard drive and it is all unallocated space. If your intention is to return the entire disk in Vista with none of the additional partitions for other uses, all you have to do is click on disk 0, and then click the [next] button. The installation will continue.

    etc.

    etc.

    http://www.theeldergeek.com/Vista/vista_clean_installation.html

  • S 4530 HP recovery partition

    I just bought a Hp Probook s 4530. There were 3 partitions. Two of them were recovering C: and hp.

    I wanted to make more partitions, so I shrunk the size of C with software and making a new partition. But somehow that changed the recovery partition hp from the primary to the logic.

    So, my question is who is this usable yet partition for recovery or change of logic has made useless?

    And my second question is, if I use the Hp recovery partition to restore my pc, will all my scores and the deleted data or only the system files will be restored?

    Thanks to anyone who can answer these questions!

    Hello:

    I can only answer a question.

    If you use your recovery partition to recover the PC, all partitions will be removed and the hard drive partitioned and formatted as it came from the factory.

    I also believe that since you changed the recovery partition, you can make it unusable.

    Best to get a set of HP recovery disks or make your own windows 7 installation DVD while reading the info below.

    If you can read the Microsoft windows 7 25-character product key, you can download simple Windows 7 ISO files to burn on a DVD for the version of windows that is installed on your PC, and which is listed on the Microsoft COA sticker on your PC case.

    Burn the ISO with the option to burn the ISO on your DVD burning program and burn it at the slowest possible speed that will allow your program. This will create a bootable DVD.

    Or use the installation of Windows 7 USB/DVD tool to compile the ISO file that you download from Digital River. Link and instructions below. You need a 4 GB flash drive to use the USB compilation method.

    http://www.microsoftstore.com/store/msstore/HTML/pbPage.Help_Win7_usbdvd_dwnTool

    Use 25 characters on the PC product key to activate the installation.

    The key will activate a 32 or 64 bit installation.

    Then go to the support of the PC and driver page to install the drivers you need.

    Link to downloads ISO of W7 is below.

    http://www.mydigitallife.info/official-Windows-7-SP1-ISO-from-Digital-River/

    Paul

  • Re: Qosmio X 500 - 10W - how to restore the partitions from the factory?

    Hi all

    I messed up my Windows 7 64 bit system desinstalling Ubuntu default (it is a dual boot with GRUB). Now my system will not boot. I have repaired my partition table using Linux tools and therefore can access files on each partition (SYSTEM; WINDOWS and RECOVERY) which was not the case before.
    So, I consider this task fact and ok.

    But I don't know which partition has been marked as boot; hidden or whatever. There are 3 partitions on the first HARD disk that are the SYSTEM; WINDOWS and RESTORE

    -They are all PRIMARY partitions (I think so)?
    -Is the hidden SYSTEM partition?
    -What is the boot (SYSTEM or WINDOWS) partition?

    At that time, when I use the recovery CD, it detects Windows 7 disk D:\ instead of C:\

    Sorry for English, but this is not my first language
    Thank you

    Hello

    Install Ubuntu on your computer as the 2nd operating system, you have moved recovery partition. In General, it is not available more hopefully, you've done a recovery disk before partitioning. Otherwise, you can order [Recovery disk | https://backupmedia.toshiba.eu/landing.aspx] Toshiba for money or get Win copy of disc to do a clean install, all Toshiba drivers, you can find:

    [European Toshiba driver page | http://eu.computers.toshiba-europe.com/innovation/download_drivers_bios.jsp]

  • ProBook 650: Drive Partitions and Windows 10 upgrade

    Hello

    I'm here to find some information on Windows 10 because I want to upgrade my system, now it's Windows 7 Pro (64 bit). I downloaded the Windows ISO 10N Pro yet and before doing the upgrade, I'll create a complete backup of my drive using Macrium Reflect.

    I have now four partitions:

    1. Active NTFS, 500 MB system
    2. (: C) primary NTFS
    3. (: D) HP Recovery - NTFS primary
    4. (:) E HP Tools - primary NTFS

    In which partition Windows 10 installs?

    I have to choose, or it's an automatic installation?

    I should delete some of the partitions?

    W10 upgrade will remove one or more partitions?

    Thank you very much for your help!

    PS: how to check if the driver are compatible with W10?

    I upgraded to win10 of many PC Win7 - and everyone had some issues that needed to be overcome.

    Your plan to make an image with MR backup is the best approach, because, although Microsoft says that there is no risk in the upgrade of Win10, because they allow you to believe that you can always go back to your original OS and setup within 30 days, the ugly fact of the matter is that the Win10 GoBack feature turned out to be unreliable - and when it fails She can let the machines in a corrupt State - which is not always the case, it happens often enough to be a problem, but you will get no warning beforehand that he goes to the trash your PC!

    With regard to your questions:

    (1) installation partition: you already have 4 partitions at a higher level, so unless your drive is formatted in GPT (which is probably isn't), you WON'T get a meaningful choice about where to install Win10, because only the C: partition will be enough space.

    (2) deletion of partitions: while you can migrate HP tools stuff it into the C: partition and then delete HP_TOOLS, which really won't help much because this space is much too small to be useful.

    (3) with the recovery partition.  Don't count on that it works. The Win10 upgrade is known, in some cases, corrupt the partition of recovery that are stored by the OEM that built the original machine.  It's pretty much guarantee that no HP recovery will work. Thus, based on the recovery of Win7 partition back to Win7 is a mistake.

    Your backup of Mr. is safest and most reliable way to have a backup plan to return to Win7.  You do not mount the image to a restoration, instead, you start from media that you have created using MR, connect the external hard drive and then use the restore option to select the backup that you did.  So, be sure to exercise the option MR to create bootable media, you will need later to do a restore.

    Good luck
    ========================================================================
    I'm a volunteer and I do not work for, or represent, HP.
    ---------------------------------------------------------------
    If my post helped you, please click on the Thumbs-Up symbol on my post to say thank you.
    If my posts resolved your issue please click "accept as a Solution.
    ========================================================================

  • Satellite A660 that partitions to copy by creating bootable clone?

    I have a Toshiba Satellite A660 running Windows 7 Professional 64-bit. Surf forum discussions, it seems that Toshiba has a unique way of partitioning the hard drive for a laptop. In disk management and Table of PowerQuest Partition editor, my 640 GB HARD drive has 4 partitions:

    Partition 1: Windows RE, 1.46 GB
    * ' Active', probably contains boot info
    * Not large enough to contain the Windows 7 image
    * Image of Windows 7 probably real in the score 3 or 4

    Partition 2: 559,5 GB NTFS C drive

    Partition 3: 22.37 GB hidden installed file systems

    Partition 4: 12.83 installed hidden GB file systems

    The closest that I could find for a description of partitions 1,3,4 is http://forums.techguy.org/windows-vista/619983-solved-mystery-partition-toshiba-notebook.html for a system of VISTA in 2007. Partition 1 is likely to start. Partitions 3 and 4 contain a kind of recovering files for other languages.

    I'll ask Technical Support on the partitions, I don't expect them to know. Even if they do, it's on the phone, that leaves me no documentation.

    (1) I was wondering if anyone can confirm (or point to the online documentation that confirms) the suspicion that precedes the goals and content of the partitions?

    (2) in addition, how can I know which partition 3 and 4 contain files of recovery for the language of the Windows 7 installation, which is English?

    (3) Finally, I intend to clone all partitions except the one containing the recovery of unused language files. This will be my first crack at the cloning or manipulation of the partitions in any way (never done a picture). This plan is sane?

    The intention is for the cloned HARD drive to be a fast replacement of full boot for the source HARD drive in its entirety. I use Norton Ghost. At this point, I'm not interested by creating usable images, although I could Explorer on the road.

    > Partition 1: Windows RE, 1.46 GB
    This partition is automatically created by Windows 7 this was the case even with Vista. This partition contains files that help to repair the operating system.

    > Partition 3: 22.37 GB hidden installed file systems
    > Partition 4: 12.83 hidden GB installed file systems
    This partitions could contains the Toshiba HDD image it is necessary to create an own recover disc and it provides HARD disk recovery options that help to recover the laptop without the use of recovery disks.

    (> 2) Furthermore, how can I know which partition 3 and 4 contain files of recovery for the language of the Windows 7 installation, which is English?

    The use of Toshiba disc creator recover the image of Toshiba in order to burn the recovery disk would not require to modify the image or files manually use the preinstalled software called Toshiba recover creator to create the recovery disk

    (> 3) Finally, I intend to clone all partitions except the one containing the recovery of unused language files. This will be my first crack at the cloning or manipulation of the partitions in any way (never done a picture). This plan is sane?
    Why you want to clone the recovery partitions? Create the first recovery disk this disc will fix the laptop always factory settings which means that the HARD disk should be formatted and would create a new time all partitions.

Maybe you are looking for