Periodic data recovery

Hi all

I have a requirement as to recover after 6 months of data and query below, I used.
select count(1) from event where trunc(start_datae) between trunc(sydate)-180 and trunc(sysdate);
It is giving the results, but don't know if it's give accurate data or not. So ran the above query, it takes longer to run.


The above approach is correct?

Is there any differece between
trunc(sysdate)-180 
and
 trunc(sysdate-180) 
?


Please suggest me.

Thanks a lot for your help.

sunitha2010 wrote:
Hi all

I have a requirement as to recover after 6 months of data and query below, I used.


select count(1) from event where trunc(start_datae) between trunc(sydate)-180 and trunc(sysdate); 

There are a few things to consider.

1. 180 days is not equal to 6 months. A month may contain 28, 29, 30, 31 days. Up to 6 months will be sum certainly not up to 180 days.

2. you used function TRUNC START_DATE. By doing so, you did anything on START_DATE unusable.

The right way would be


select count(*)
  from event
where start_date between trunc(add_months(sysdate, -6)) and sysdate; 

Tags: Database

Similar Questions

  • Help! Data recovery!

    Hi all

    My laptop was working fine when suddenly it became very slow access to the data for a couple of days. The next Win7 has not loaded up. Now I can't even the Dell BIOS screen upwards and the course when I turn it on. Just a black screen (is powered but).

    I thought that it would be a software problem or a virus, so I brought a small repair shop. The guy said that when he connected the HARD drive up to his machine, he makes noises and he couldn't access my data. He said that I should replace the HARD drive and to recover my data, I could send the HARD drive damaged in a laboratory where they could use their spare parts instead of those damaged to perform the data recovery for me, but it would cost around HKD$ 5,000 (USD$ 650).

    This sounds a little expensive. I recently bought an external DRIVE to backup drive and had not saved all my files at this point. My Dell warranty missed just after it happened so I don't have the chance to call on this subject. If anyone knows of any company that will perform the recovery of data on my HARD drive (or Dell will do it for a lower price), please let me know: I am desperate at this point!

    Thanks for taking a peek

    Wes

    Data recovery is very expensive.  The price is relatively cheap compared to the prices I saw here in the United States.

    It's lesson on the conduct of periodic backup on an external device.

    Dell, to my knowledge, offers no service recovery.

  • Programming Interface to call VMWare Data Recovery

    Hello

    I wonder if there is no out-of-box API call VMWare Data Recovery.  In other words, if there is a way to simulate all the operations that we could do to vSphere, creating a backup task, by selecting several virtual machines, etc., go to run in a period of time, either programmatically or by command line.

    Thank you.

    Lei

    as far as I know, no such API exists for vDR.

    =========================================================================

    William Lam

    VMware vExpert 2009,2010

    VMware scripts and resources at: http://www.virtuallyghetto.com/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • Corrupted data recovery water Iphone 6

    We know anyway to get data of an Iphone that does not turn on?

    I am desperate to get my photos from my broken phone and a loan to pay for it, but I do not know if everyone can do?

    The photos I want are not saved on icloud to bring from the phone itself are the only way.

    However, it was damaged more than a month there are water and did not put in operation since

    Thank you

    The bottom line is not. You can pay a ton of money for a service of data recovery, but it is useless with the encryption using the iOS and the iPhone with your data. All what they will recover is meaningless strings of gibberish, not files and with no way to decipher gibberish it's worthless.

    Sorry, but that the data is finished now.

  • Impossible to get a HD data recovery to set up

    Due to my iMac HD dying, and my backup default HD before I could recover, I had to have the backup disk recovered to a (expensive) data recovery service. The HD, they gave me with the backup Time Machine recovered is in the format exFat. In the Terminal, I could see the following information about this. Disk utility, he sees, and the mount button is activated. But it will not rise. Any ideas?

    / dev/disk1 (external, physical):

    #: NAME SIZE TYPE IDENTIFIER

    0: GUID_partition_scheme * TB 5.0 disk1

    1: Microsoft Reserved 134,2 MB disk1s1

    2: Microsoft data base CASE3020 5.0 TB disk1s

    See if it mounts on a Windows PC.

  • 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/

  • What is the cable of data recovery?

    With my flame came a wire called 'data '. What is the difference with a normal Micro USB cable? Is it connected differently?

    I noticed that when I connect to my flame using a standard Micro USB cable, then it behaves funny. I saw him restart spontaneously, and also saw him plug and unplug several times. With the cable of data recovery, connections appear to be stable, but I wonder why. The Keon has worked well with a standard Micro USB cable.

    Hi Fekle,

    I'm not sure what the difference is in the cable of data recovery. For me, when I use this cable to recharge, my camera flame has strangely, sometimes requires me to remove the battery before restarting the unit.

    I had written to T2M asking how to use the wire and this was their response:

    Please follow the instruction below to rescue the phone.
    
    Firstly, we send a Recovery Cable with RED label with Flame phone, which is placed outside of Flame package. Please make sure that you have it.
    
    Secondly, please download Emergency rescue tool from http://cds.w5v8t3u9.hwcdn.net/Flame%20Rescue%20Tool.zip, unzip it, run Flame.exe and follow the attached PPT instruction to start the rescue.
    

    -Ralph

  • 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.)

  • 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...

  • Linux data recovery software

    I have recentaly lost my data from my Linux operating system. I used Stellar Phoenix Linux data recovery software. This [recovery Linux | http://www.data-recovery-linux.com/] software retrieves almost of my data. Demo version of the software is free in which you can see the preview of recoverable data.

    Hey

    Thanks for the link. :)

  • Satellite A100 - hard drive data recovery

    Hello

    I recently tried to help a friend for his Toshiba Satellite A100 data recovery, died on this screen.
    I thought this would be a task simply remove the hard drive and put a HARD drive caddy and attaching it to another computer.

    This doesn't seem to work.
    Can I put the hard drive in the computer and I can hear start the computer to the top and was able to see it with a LCD display. I was able to delete the data in this way, so we're safe.

    My question is why do we seem to remove the disc and see on another computer?
    I guess it must be an interface or format the laptop can be used for the recovery section and cannot therefore be seen as a normal drive.

    If I could not delete the data because say the motherboard is dead. Is it possible to be able to see the data on another computer.

    E-mail: [[email protected]]

    > My question is why do we seem to remove the disc and see on another computer?

    Of course you can do if you want to use a symbol external USB SATA controller (external HARD drive) you should be able to connect to another computer.
    But if the HARD drive is faulty, it will not work.

  • 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.

  • 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!

  • Pavilion p6537c: Dead Win 7 C drive, should I go direct to 10 for a new disk? Ideas on data recovery?

    Question: Installing an operating system on the new replacement drive:

    750 GB hard drive on my Win 7 Home Premium desktop is completely dead. [See data recovery? below.] With regard to the new replacement unit 1 TB, I don't have recovery discs (my bad) and can get a USB bootable HP for $30 in 5 days.  But if I will Windows 10 in any case, would it not easier to simply direct that, assuming that I can download from the MS site?  Is this possible or do I have a valid Windows installed before 'upgrade '?  I have the serial number of windows etc. since it is a 64-bit licensed machine Win 7 legit bought new at HP.  There cpu: AMD Phenom II X 4 830 (D) 2.8 GHz and 6 Gig of RAM. Tips appreciated!

    DATA RECOVERY question: C drive would not start at all in a local computer store and they refer only to the people of data recovery. Any ideas how I could do this, or at least try, me? Otherwise, any suggestions on the most cost-effective way to get what I can (if any) out of the disc?  I don't have an idea as to why/how it has failed or the status of the Board at this point.

    Thank you very much!!

    Tommy

    From W10 v1511 that you do not have to enter a key when it is stored in the bios, W10 will find that during the installation, so you can just go right to the 10 and spend 8 installation.

    Even if it is not stored in the bios, you can enter a product key valid W7 orW8 during installation of W10 and he will accept it.

Maybe you are looking for