oracle data recovery problem

Helloo,
I have a problem in the query of tables. The structure of the tables are:

Effortentry (effort_id, effort_date)

Activity_details (act_det_id, effort_id, activity_id, hours)

Activity (activity_id, activity_name)


now, I want to go search for hours for the activity for each day and view in frontend per week IE 7 days together as follows:
I'll spend the day 1 and day 7 of the same week.

activity_name day 1 day 2 day 3 day 4 day5 day6 day7

5 6 6 6 6 1 1 acitivity1

0 0 2 1 4 1 acitivity2 0

acitivity3 0 6 1 2 0 0 1

acitivity4 0 4 2 3 0 6 0

5 2 1 6 7 0 1 acitivity5


Day 1, day 2, day 3... consist of hours for the respective activity.


Please guide me how to go about... I tried to create views. What will be the best way to do it.

Published by: user9243989 on March 2, 2010 01:23
select activity_name,
       sum(decode(effort_date,:day1,hours,0)) day1,
       sum(decode(effort_date,:day1+1,hours,0)) day2,
       sum(decode(effort_date,:day1+2,hours,0)) day3,
       sum(decode(effort_date,:day1+3,hours,0)) day4,
       sum(decode(effort_date,:day1+4,hours,0)) day5,
       sum(decode(effort_date,:day1+5,hours,0)) day6,
       sum(decode(effort_date,:day1+6,hours,0)) day7
from Activity a, Activity_details d, Effortentry e
where a.activity_id=d.activity_id
and d.effort_id = e.effort_id
and effort_date >= :day1
and effort_date < :day1+7
group by activity_name

As you can see you need to pass only a single parameter: day1.

Max
http://oracleitalia.WordPress.com

Tags: Database

Similar Questions

  • SSHD Toshiba MQ01ABD100H - Firmware / data recovery problem

    Hello!
    I have the mission critical data on a MQ01ABD100H of Toshiba to SSHD which was in a Sony VAIO for less than one year who decided to stop working from one day to the next. All I care about is the data. A professional data recovery company apparently reputable rated player, told me that it was a "mechanical failure", said they could recover the data and gave me a quote of $1500.00. A week later I was told something different; They said the platters and heads seem to agree and the problem seems to be on the circuit board and/or flash drive, and they didn't know how to recover the data. They told me that they have consulted Toshiba too. I asked them if they replaced the pcb Board and they would not tell me or answer questions more. I have the drive in my hands and am looking for options. I really believe that my data is recoverable if the trays are okay, right?

    Here's what I know for sure; the bios of the machine of Sony VAIO Windows 8.1, correctly recognizes the drive. However, it does not start and is not accessible or recognized with cmd prompt Windows 8.1 UEFI options. The drive is not encrypted. After putting the reader into an external enclosure and its connection to another Win8.1 machine, the player starts with no extreme sounds of survey. Slowly, she clicks a few times as if the heads are looking, but then calms down and keeps running quietly. I have installed a Data Rescue PC3 software that recognizes the drive and its attributes correctly but can't read or clone. I have the Partition Wizard software mini tool, which recognizes the drive correctly, but shows the drive as being unreadable.

    That's what I'm trying to do. I'm looking for a donor on mine, with the same model drive, date, firmware, site, number of PCBS, hard drive code.

    Now, here is my unknowns and I appreciate everyone a preview with these. If I change the pcb edge myself, I need still more likely transfer the firmware for the new Board of Directors, even if I try it without doing it. I don't know where the firmware is stored, is there a rom chip or is it stored in the Flash Player. I'm not certain if, with this model of SSHD, if this can be done with replacement of the chip or the software? If it is stored on the Flash drive how is available independent of the HHD part? Must the reader Flash itself be harvested? But what happens if the flash player is bad, how can the firmware ever be recovered? Any ideas anyone? ... other than myself shot in the head, I'm kidding. I think that this may be a common problem that will often not resolved.

    I have the drive in my hands and am looking for options. I really believe that my data is recoverable if the trays are okay, right?

    I am not an expert but if applications cannot access the data and cannot read data from the SSHD then you will need professional help...

    I found the storage Toshiba page where you could get details on this SSHD
    http://Toshiba.SEMICON-storage.com/e...ient-sshd.html

    Mate good luck...

  • Attached data recovery problem size Raw LUN


    We have a problem with our unit of recovery to Date.

    We have a matrix of about 12 TB discs intended to save our VMs.

    So, I try to join VM recovery given as a raw LUN.

    I saw 10.9 TB plug in recovery. try to format... it seemed to me that it works.
    But when I ride it, it was presented as a 2 TB drive.

    Umount - 10.9 Tb
    Mont - 2 TB

    The next step... I have connected to the computer of data recovery (I mean it's just a CentOS behind). And try to make a hand partion using parted and mkfs.

    parted worked well (with TPG as the label).
    So I launched
    mkfs.ext3/dev/sdb1

    It took a lot of time, went up to
    "Writing Superblocks and filesystem accounting information.
    and it seems that it crashes.

    mkfs still present in the process, but it seems that it do nothing.

    It's probably a problem with the ext3 file system.
    But
    (a) it seems I might have an ext3 file system larger than 2 TB.
    (b) ext4 is not available on CentOS of data recovery... so what could I do?

    So... maybe someone has a tip for this problem?

    Thank you very much.

    P.S.: Just for the record, we have 3 ESXi5 host with vCenter 5.

    I'm not 100% sure why you see the wrong size RDM, but make sure you read the Administrators Guide.

    of http://pubs.vmware.com/vsphere-50/topic/com.vmware.ICbase/PDF/vmware-data-recovery-administrators-guide-20.pdf

    Data recovery is designed to support deduplication stores that are up to one terabyte of size and each appliance backup is limited to the use of two stores of deduplication. Data recovery imposes no limits on the size of the stores of deduplication, but if the size of a store exceeds a terabyte, performance may be affected. While data recovery imposes no limits on deduplication store size, other factors limit the actions of deduplication. So, the stores of deduplication are limited to:
    -500 GB on CIFS network shares
    -1 to VMDK and RDM

    André

  • types of data recovery problem

    Hi, I have a problem trying to retrieve the data type of an object. I use the VMUtils::find_device method to get the especification to cdrom. Then I need to get the data type of backup (VirtualCdromRemoteAtapiBackingInfo or VirtualCdromIsoBackingInfo) but I don't know how to recover this $cdrom_spec info - & gt; support.

    The value of $cdrom_spec is:

    $VAR1 = bless( {
     'deviceChange' => [
                         bless( {
                                  'operation' => bless( {
                                                          'val' => 'remove'
                                                        }, 'VirtualDeviceConfigSpecOperation' ),
                                  'device' => bless( {
                                                       'connectable' => bless( {
                                                                                 'allowGuestControl' => 0,
                                                                                 'connected' => 0,
                                                                                 'startConnected' => 1
                                                                               }, 'VirtualDeviceConnectInfo' ),
                                                       'backing' => bless( {
                                                                             'fileName' => ''
                                                                           }, 'VirtualCdromIsoBackingInfo' ),
                                                       'unitNumber' => 0,
                                                       'controllerKey' => 200,
                                                       'key' => 3000
                                                     }, 'VirtualCdrom' )
                                }, 'VirtualDeviceConfigSpec' )
                       ]
    }, 'VirtualMachineConfigSpec' );
    

    Someone knows how can I get the type of backup data.

    In perl, you can use "ref" to determine the type of thing that is referenced. Here, it will be as follows:

    > print Ref ($cdrom_spec-> support);

  • connection to the Internet. data recovery problem. check the connection. using netflix app... in windows media center

    last week, something changes in the netflix app and can no longer see the movie through the app.  We broadcast online via netflix with no problems.  We have even reinstalled silverlight in the hope of fixing the problem, but in fact no difference. We continue to receive the above error msg.

    Please help, we would really use the App again.

    Hello

    You can try the suggestion in the given below link and check if this is useful.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_programs/Netflix-in-Media-Center-returns-a-there-was-a/729583bd-aa22-4A06-BAD8-3be73bb0f624

    See also:

    http://thegreenbutton.com/forums/p/99379/526039.aspx

    Hope that information was useful

    Amrita M

    Microsoft Answers Support Engineer

  • VMware + Oracle secure backup data recovery

    Olá Pessoal, sou novo na comunidade, queria Saber is can me help.

    Estou instalando Data Recovery para perform os backup da maquinas tolls, wave total o hoje e 800 GB, utilizo Oracle secure Backup para o backup em Fita.

    EU think em utiliazar a shared network, wave apresentaria um 1 TB LUN option para Máquina e compartilharia um pasta, wave officer o Oracle Secure Backup Buscaria todos maximum pelo data recovery backups, but a prorpia Vmware alterta sober shivers com tamanhos maiores than 500 GB.

    E need Empresa perform os em backup Fita.

    Grato pela definition;

    Bem Vindo,

    Na truth nao e recomendado use LUN large not VMware pelo fato than quanto, maior a LUN, but maquinas tolls cabem, e virtual machine but quanto, maior a sole access nessa LUN that can cause shivers problema.

    Neste caso, only uma Máquina go access essa LUN, o e seu backup server, data recovery. Problems of nao of vejo.


    Por favor, não don't atribuir os pontos para e resposta 'useful' or 'correta.
    Se a sua question faith respondida, mark "Answered" como para o topico can.

    Mauro Bonder - moderator

    Lamw,
    I do a test:
    do vmotion THAT changed VMID.

    LinkedIn Facebook

  • Satellite L850: Drive HARD Firmware problem prevent data recovery

    Am a little confused and need a simple explanation
    My HDD L850 died under warranty and was sent to the people of data recovery to recover the data before entering new drive under warranty.

    I am told that my hard drive has a fairly unique combination of firmware and the drive that prevents the recovery until they get this firmware. Now 6 weeks after it happened I stll wait.

    Someone in support could explain to me in simple terms, why this firmware is the problem cause and so far can only be obtained by your partner data recovery company?

    Hello

    I think that you will here get a correct answer, why the people of data recovery needs of these packages since it is a user forum.

    But to my knowledge all the 2.5 hard drives and SSD drive supports various firmware.
    These firmware tells the hardware how to interact with the operating system.

    It seems that people in data recovery needs these packages in order to get access to the HARD drive, and I presume, without the compatible firmware, it is not possible to recover the data.

  • Netflix in Media Center returns a 'there was a problem of data recovery. "Check the works of your internet connection and try again" error instead of loading Netflix data.

    context: a previous thread with an identical title never responded, the problem just disappeared.  Well its been two weeks since then and the problem came back.

    somethings which may or may not apply: internet TV seems to work better in media center.  All updates have been applied to H.P. of Vista SP2. Netflix works fine in ie8 (such as the internet, of course). Tried to delete all the Internet Options, delete browsing history section of Internet Explorer. I get the same error message with my windows 7 professional media center, but netflix seems to play anyway (no game with vista). I recently installed quicktime alternative 2.72 to see what it was and how it worked, then removed and put back in quicktime.

    Tried / symptoms:

    -Remove all the browsing history (econcepts)
    -Same message on Win7pro but works even when (econcepts)
    -Works on Win7 no problem (omegafiler)
    -Works in ie 8 (econcepts)
    -Works in crome (Martin TX)
    -Consensus is that it started around December 30, 2009 (GeoffG1, johnetX, me)
    -Remove and reinstall silverlight (omegafiler)
    -Remove and replace netflix plugin (omegafiler)<- how="" did="" you="" do="" that="">
    -Netflix says: microsoft problem (Nitestalker)
    -Microsoft is silent (this thread - on vacation?)
    -Same problem on 32-bit and 64-bit VMC (JRSMiamiFL)
    -No applied update (johnetx)<- perhaps="" date="" related="" or="" drm="" date="">
    -Disconnect from netflix, you reconnect again - ultimately the same error (chicagokiwi)
    -Tried to reduce the number of items in the queues to well below the limit of 200 (econcepts)
    -Tried the register / unregister the third wire procedure, no joy (does not break anything else however)
    -Disabled the firewall, no change (econcepts)

    related topics:
    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/0c154c0a-1fcb-4353-8c5e-b394e885256d

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/aaab24a0-4BB9-42FA-a5ee-46a733d6560f

    http://social.answers.Microsoft.com/forums/en-us/vistamedia/thread/f05f69c7-6456-4117-B302-27c08886ea1e

    Someone else knows Netflix not being is not able to connect?  It started yesterday (30/12/2009) for me.  I looked fine the day before without problem.  The message I get says "there was a problem of data recovery.  Check the works of your internet connection and try again. Ok.  I make it work with both my VMC - one with the service pack and the other without.  My OS updates have been loaded in early December, so I don't see how this could it be.  I searched and found this problem has come up before, but I have not found a solution.  I made NO changes to my HTPC.

    Those who have and solved this problem.

    UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE *.

    2009-01-05 has attempted to start Netflix this morning and you know, it works on both my VMCs.  That's the good news.  So now the real questions are:

    Only 20 people reported it as a problem and only 6 on the green button.  I believe that it affected all the world with Media Center.  So why not discussed much?

    It already happened, causes a stir and silently slips without known cause or cure.  How can we find out what caused this and how to prevent it from happening again in the future?

    *******************************************************************************************

  • Netflix in WMC «there was a problem of data recovery...» »

    I installed the latest round of updates (Ultimate) of Windows Vista and it apparently burst Netflix in WMC.  Now, I get the error:

    "There was a problem of data recovery. Make sure your internet connection is working and try again. »

    Internet works on the machine.  I reinstalled Silverlight (v4) and Netflix for WIndows Media Center.

    How to diagnose and repair the problem?

    Thank you!

    Keith...

    Sorry for the delay, but I've been busy (in my free time) trying to get this to work.

    I gave up trying to resuscitate MCE and installed a brand new Windows Vista Ultimate Edition with Service Pack 2.  After apply all WIndows patches and installation of Silverlight, I have the "Netflix" element in MCE.  He invites me to install, what I'm doing.  However, every time I start MCE and go to Netflix, he tells me to do reinstall - no login screen.

    I tried all the "mcupdate" article and then supported your steps above, but no go.

    I did this twice, so it wasn't just a fluke.  Apparently, the part of Netflix to MCE is not detect the plug-in that it installed.

    Any thoughts on what to do then?

    Thank you again...

    Keith...

    Later: I ran "mcupdate" after the steps you suggested, and now Netflix is gone again!

    Later: same problem on my other computer running MCE and Vista.  I don't want to mess up this computer so I left as what.

    Later: opening of a new post on problems become Netflix to work with a clean install.

  • Failed to load movies Netflix in Media Center message appears to indicate there was a problem of data recovery. Check the works of your internet connection and try again.

    Original title: cannot load Netflix movies in Media Center

    Netflix photo click on the message appears indicating a problem of data recovery.  Check the works of your internet connection and try again.

    Hi Barbarasimonetti,

    (1) since when are you facing this problem?

    (2) remember to make changes?

    (3) what is the complete error message you receive?

    Method 1: You can follow the steps described in the article below

    Known issues and limitations of Netflix on Windows Media Center for Windows Vista

    http://support.Microsoft.com/kb/972496

    Method 2: If a Protection of resources Windows (WRP) file is missing or is damaged, Windows may not behave as expected. Auditor of file system (CFS) scan to fix all of the corrupted system files. To do this, follow the steps mentioned in the link below:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer
    ***************************************************************************

  • Slow response from phone to monitor data recovery

    hhaving problems with my app Apple Watch (watch OS 2.2) of the iPhone data recovery 6 (iOS 9.3.4). When I click on various watch apps - FaceBook Messenger, Messages, etc., they seem to take forever to recover data. I tried to restart watch it and iPhone without any improvement.

    If I remove the applications from the watch and then reinstall them this solves the problem for a short time.

    Ahy suggestions?

    Hello

    For best performance of your devices, make sure that both Bluetooth and Wi - Fi are enabled on your iPhone (and keep them permanently active).

    Also, make sure that you have installed the latest versions of all applications (on your iPhone: App Store > updates). To install updates for the associated Apple Watch applications also automatically, select automatic App install (on your iPhone, in the application of the watch, go to: Watch My > General > App Install).

    It can help to disable the twinning and re - pair your watch. The app shows on your iPhone takes a backup of your watch automatically when the disparity with the app choose to restore from backup during the whole upward. Most of the data and settings will be restored, with a few exceptions (for example cards Pay Apple, access code):

    In the future, notes that new arrivals under watch OS 3 - software update that is should be out this fall / Fall - include much faster loading of your favorite applications, including applications to launch immediate up-to-date information.

    More information:

    http://www.Apple.com/Watchos-preview/

  • SSD data recovery

    I spilled a glass of wine on the keyboard of my MAC BOOK PRO.  The SSD (1 TB) hard drive will not start.  I need to find a data recovery service to recover about 3 000 photos from disk.  Someone at - it services provider?

    SSD drives are not as recoverable as readers with magnetic rotating media. If the liquid got inside the car, maybe it's not recoverable.

    But the models of MacBook pro of 2015 should allow no liquids on the motherboard. He may not start for a much simpler problem aside, like a short circuit in the keyboard.

    If it were mine, I'd get another drive in an external enclosure and install Mac OS on it and see if YOUR files, (not more than 350,000 files comprising Mac OS) are recoverable. (The Mac can be installed on and boot from any drive appropriate, internal or external.)

  • ix4 - 300 data recovery

    Hello

    I have an ix4-330 with a raid5.problem because I myself stop working.to restarting, the computer gave me a raid5 parity error. Page: manage/diagnosis I appeared the problem and had to fix check and accept. No data warning possible perdiad or appeared as me.after a while system boot and thought everything was settled, the parity error is gone and everything was fine. Also the configuration of users and shared folders.but when I tried to access via FTP or through the explored windows there was nothing! I see that ssh entering the raid are created and active and synchronized.no solution to this? who could have happened?

    I finally opted to use R-Studio data recovery program. It worked perfectly. Now, I'm going to do a factory reset to back up the device to work.

  • Data Recovery HP once recovery

    I moved my 'once' HP on a USB key and on an external HARD drive data recovery. Is there a way to make these bootable data again?

    Thank you

    Hi there @Brotocol,

    Thank you for joining the Forums HP's Support and welcome! It is a great place to ask questions, find solutions and get help from others in the community! I read your post on the Forums of HP Support. I wanted to join you and help! I understand that you had the recovery of data on a USB key, put it on another hard drive and you want to know if you can take on this hard drive again.

    Due to software licenses, only a set of recovery disks can be created. This means that you could have done a copy USB or CD/DVD of it only. There is no way for you to get off the other hard drive to use it now.

    You will need toget a USB HP recovery disc or HP recovery disks. Please follow the provided document and follow the steps to order recovery media if you need.

    Please let me know if I answered your question by clicking the "Thumbs up" if the troubleshooting in this post steps solves the problem for you please click on the button "Accept as Solution" . This will allow to the others is that present the same problem a solution also. If you need assistance, please let me know to publish again. Could you please include your model number (How can I find my model number or product number?) also?

    Thank you!

    Have a great day!

  • How to use the data recovery disk

    I create data recovery in my hp envy m6 through portable dvd burner, but after the creation of recovery now when I try to install image recovery his does not work what do I do now?

    Hi dear_aneel2000,

    Welcome to the HP Support Forums, I hope you enjoy your experience! To help you get the most out of the Forums of HP, I would like to draw your attention to the Guide of the Forums HP first time here? Learn how to publish and more.

    I see that you have a problem to do a restore via recovery CD that you created. I'll be happy to help you with this. You get an error message at all? What version of the operating system you are trying to recover? Why have you used a laptop DVD burner to create the recovery CD? What is the product number for your desire to m6?

    Thank you

Maybe you are looking for