I want to remove old record

Hello

I'm trying to delete records before 2013.

delete reports where rep_date < 16/01/13;

My table:

SQL > desc reports

Name                                      Null?    Type

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

REP_ID NOT NULL NUMBER (5)

SL_ID                                              NUMBER(2)

REP_DATE TIMESTAMP (0)

SOURCE VARCHAR2 (3200)

SECTION VARCHAR2 (3200)

REPORT                                             CLOB

SQL >

Please notify

Thank you in anticipation

The research of this?

delete

reports

where rep_date< to_timestamp('01-jan-2013="" 00:00:00.000000',="" 'dd-mon-yyyy="">

Tags: Database

Similar Questions

  • Request to remove old records

    Hello

    Please help me to write this query.

    I have a table with the structure and data.

    {code}

    create the table temp_table1

    (

    change_number varchar2 (100 CHAR),

    Description varchar2 (200 CHAR)

    )

    {code}

    {code}

    insert into temp_table1 values ('7218', "LIST MAT.");

    insert into temp_table1 values ('7218', "LIST MAT.");

    insert into temp_table1 values ('7218', 'Spec. POLLUTANTS OTTICA MANUALE");

    insert into temp_table1 values ('7218', "PLM");

    insert into temp_table1 values ('7218', "PLM");

    insert into temp_table1 values ('' 7218', A PLM");

    insert into temp_table1 values ('' 7218', PLM B");

    insert into temp_table1 values '7218', 'PLM C;

    insert into temp_table1 values ('7218', 'THE SCHEME');

    insert into temp_table1 values ('7218', "DIAGRAMMA DI VENTILES");

    insert into temp_table1 values ('7218', 'the standard DI COLLAUDO');

    insert into temp_table1 values ('' 7218,' WHEREAS UNIVERSITY");

    insert into temp_table1 values (' 7218 ', ' DI VAT REGISTRATION standard.) ALSTOM EXP-EAST-STD-005');

    insert into temp_table1 values ('7218', "the standard DI INTALLATION");

    insert into temp_table1 values ('7218', 'the standard DI LAVORAZIONE');

    insert into temp_table1 values ('7218', 'the standard DI VERNICIATURA');

    insert into temp_table1 values ('7218', "MODULO DI VALIDAZIONE VERNICIATURA");

    insert into temp_table1 values (' 7218 ', ' the standard COSTR.) NOTE DI RATIOS ');

    insert into temp_table1 values ('' 7218', TOPOGRAFICO C.T.");

    insert into temp_table1 values ('' 7218', TOPOGRAFICO L.S.");

    insert into temp_table1 values ('7218', 'TOPOGRAFICO + NOTE DI RATIOS');

    insert into temp_table1 values ('7994', "LIST MAT.");

    insert into temp_table1 values ('7994', "PLM");

    insert into temp_table1 values ('7994', "PLM");

    insert into temp_table1 values ('7994', "PLM");

    insert into temp_table1 values ('7994', 'THE SCHEME');

    insert into temp_table1 values ('7994', 'the standard DI LAVORAZIONE');

    insert into temp_table1 values (' 7994 ', ' the standard COSTR.) NOTE DI RATIOS ');

    insert into temp_table1 values ('' 7994', TOPOGRAFICO C.T.");

    insert into temp_table1 values ('7994', 'TOPOGRAFICO + NOTE DI RATIOS');

    insert into temp_table1 values ('8305', "PLM DI CHANGES");

    {code}

    I want to delete old records that have been added the previous changes, excluding recordings whose description starts with "PLM."

    For ex: change number 7994 exists with description 'TOPOGRAFICO + NOTE DI RATIOS', that had added to change 7219, which should be deleted. Latest album should stay exist.

    Output would be like that.

    {code}

    insert into temp_table1 values ('7218', 'Spec. POLLUTANTS OTTICA MANUALE");

    insert into temp_table1 values ('7218', "PLM");

    insert into temp_table1 values ('7218', "PLM");

    insert into temp_table1 values ('' 7218', A PLM");

    insert into temp_table1 values ('' 7218', PLM B");

    insert into temp_table1 values '7218', 'PLM C;

    insert into temp_table1 values ('7218', "DIAGRAMMA DI VENTILES");

    insert into temp_table1 values ('7218', 'the standard DI COLLAUDO');

    insert into temp_table1 values ('' 7218,' WHEREAS UNIVERSITY");

    insert into temp_table1 values (' 7218 ', ' DI VAT REGISTRATION standard.) ALSTOM EXP-EAST-STD-005');

    insert into temp_table1 values ('7218', "the standard DI INTALLATION");

    insert into temp_table1 values ('7218', 'the standard DI VERNICIATURA');

    insert into temp_table1 values ('7218', "MODULO DI VALIDAZIONE VERNICIATURA");

    insert into temp_table1 values ('' 7218', TOPOGRAFICO L.S.");

    insert into temp_table1 values ('7994', "LIST MAT.");

    insert into temp_table1 values ('7994', "PLM");

    insert into temp_table1 values ('7994', "PLM");

    insert into temp_table1 values ('7994', "PLM");

    insert into temp_table1 values ('7994', 'THE SCHEME');

    insert into temp_table1 values ('7994', 'the standard DI LAVORAZIONE');

    insert into temp_table1 values (' 7994 ', ' the standard COSTR.) NOTE DI RATIOS ');

    insert into temp_table1 values ('' 7994', TOPOGRAFICO C.T.");

    insert into temp_table1 values ('7994', 'TOPOGRAFICO + NOTE DI RATIOS');

    insert into temp_table1 values ('8305', "PLM DI CHANGES");

    {code}

    delete temp_table1

    where rowid in)

    with t as)

    Select the rowid RID.

    ROW_NUMBER() over (partition by order of description by change_number desc) rn

    of temp_table1 t

    )

    Select rid

    t

    where not)

    RN = 1

    or

    Description = "PLM."

    )

    )

    /

    7 deleted rows.

    Scott@SOL12 >

    SY.

  • Sync iCal to blackBerry Smartphones want to remove old entries

    Recently, when I use BB Desktop to sync with my new MacBook, it wants to add 2, 482 to modify and delete 1053. The first 2 are not a problem, but I don't want to erase the old iCal entries.

    I tried to adjust to synchronize only future or synchronization from-999 to + 999 days nothing works.

    Can what work-around I use to return to the synchronization?

    Thank you

    It helped me for this problem...

    On your BlackBerry, go to the calendar, then press the Menu key, then select Options. You have a set that says 'Keep appointments' defined for a specified period.

    If so, you will need to change this at all never.

    Once I changed it, I did a rewrite of the BlackBerry sync (I use Missing Sync). Then a normal Sync worked well without deleting the old events.

  • How to remove old files from backup under vista

    How can I delete old backup files?

    Hi AcieWorkman,
    Thanks for posting in the Microsoft community!
    I understand that you want to remove old backup files created using the Backup Wizard. Please correct me if I'm wrong.
    Please follow the steps under How can I delete a backup I created using the back up files Wizard?
    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions

    Please report if you are still having the problem. I will be happy to provide you with the additional options that you can use to get the problem resolved.
    We can't wait to hear back on your part.

  • Find out how to record things I don't want to remove it from windowsold

    I would like to know how to record some of my stuff before you remove old windows

    Hi, Cathy,.

    If you are in the folder and you know what documents you don't want to delete,

    Hold down the CTRL key, and then select all the files you want to keep clicking one by one.  Now keep the Ctrl key while selecting the files

    Right-click on the last selected file and select move to folder

    Move the items window will open

    Navigate to where you want to move documents

    If you do not have a folder prepared for these documents, click on create a new folder

    Once you have created the folder, click on move

    You have completed

  • I have a download version of Lightroom 4.4 on my old computer and want to remove it and load it on my new computer.  I can't find a prompt to unregister in the Help menu.  And how to download this version again?

    I have a download version of Lightroom 4.4 on my old computer and want to remove it and load it on my new computer.  I can't find a prompt to unregister in the Help menu.  And how to download this version again?

    Unlike almost all other Adobe applications, there is no option of deactivate for former Lightroom products - they were not that way so just go and install it on another machine and use the serial number, you have for her.

    Lightroom download - all versions

    Windows

    http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Windows

    Mac

    http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh

  • I get to level my windows in Windows 7 PC.  My old PC had CS6, Bridge, and Lightroom installed 5.7.  I want to remove all three of the old and install the new.  How do I do that?

    I get to level my windows in Windows 7 PC.  My old PC had CS6, Bridge, and Lightroom installed 5.7.  I want to remove all three of the old and install the new.  How do I do that?

    First of all make sure you disable / disconnect in order to save the number of activations.

    Click the help menu, and then select disable / disconnect .

    Then you can uninstall in Control Panel uninstall process as normal.

    Later, you can download and install CS 6 app link below:

    Download Creative Suite 6 applications

  • How we remove the old recording files in ES2?

    Hello

    The error:

    2010-02-26 16:25:16, 811 ERROR [STDERR] 26 February 2010 16:25:16 com.adobe.idp.auditworkflow.dsc.service.storage.ProcessRecordingStorageImpl manageRecordingFileSizes
    ATTENTION: removal or the older recordings due to the limitation of space.

    I see above error several times in the log file. Then google, I had http://forums.adobe.com/thread/506674?tstart=0 wire. But I know this one.

    Is there any page in /AdminUI, where I can remove all the old record to a shot.

    Is there a way where I can improve the size of the buffer to the server?   Because sometimes I am getting error like below:

    2010-02-26 16:12:12, exceeding the threshold of memory WARN [com.adobe.idp.dsc.workmanager.workload.policy.MemoryPolicy] 558: maximum limit of 95.0, current value 106.0
    2010-02-26 16:12:12, 559 WARN [com.adobe.idp.dsc.workmanager.workload.policy.WorkPolicyEvaluationBackgroundTask] policies being violated since statistics on "adobejb_server1:wm_default". Cause: com.adobe.idp.dsc.workmanager.workload.policy.WorkPolicyViolationException: political work violated. Will try to get to 60000 ms

    Please help me!

    This is the help topic:

    http://help.Adobe.com/en_US/LiveCycle/9.0/workbenchHelp/000375.html#1548929

    Here's how to configure the number of recordings to keep:

    http://help.Adobe.com/en_US/LiveCycle/9.0/workbenchHelp/001482.html#1608026

    Scott

  • I have 2 bookmarks with the same name but different stuff in them. I want to remove one, but pass the contemts remaining bookmark

    I have 2 bookmarks with the same name but different stuff in them. I want to remove one, but pass the contemts remaining bookmark

    This is the first mention you made records. See this - https://support.mozilla.org/en-US/kb/Sorting%20bookmarks#w_rearranging-manually - and move individual bookmarks from one folder to the other folder. You may need to press the Alt key to display the Menu bar and the View menu item.

  • Photos saving disk space to share images with your iPhoto or Aperture libraries.  Should which library I use to remove old photos?  If I delete old photos in iPhotos appear in pictures and vice versa?

    Should which library I use to remove old photos?  iPhoto or Photos?

    If you migrated a library iPhoto to Photos and you want to release the storage, you should remove the pictures of these two libraries.

    Related photos storage only comes out, after that the last linked file has been deleted.  If you do not use more of the iPhoto library, move it to a backup drive. Then simply delete the photos of your new photo library.

  • OfficeJet Pro 6830: Remove old HP printer connected

    I just received and installed a 6830 JO reconditioned to replace under warranty.  I want to remove the old connected HP printer, but REMOVE PRINTER link is grayed.  Any suggestions?

    Hey @racerbrb,

    I see that you have some problems with the removal of your old connected HP printer. For this issue, you will need to contact HP Cloud Services directly. You can do this by clicking on this link and fill in the form below. If you have an instant account of ink that has been saved to your original printer, make sure you leave the chat or phone agent know immediately so that you get to the correct service.

    Please let me know if they are able to help you with the removal of the printer. If you get all solved, click on accept solution. If you appreciate my help, please click on the thumbs up icon. The two icons are below this post.

  • How to remove old VBAI calibrations?

    VBAI calbration increments, you can select data from previous calibration, or create a new set of calibration data, but there is no option to remove old, obsolete calibration data.

    How can this be accomplished?  Is there a directory where the old files can be deleted, or obsolete, confusing calibrations hault forever our vision computers?

    You can delete calibrations in system resources manager (Tools > System Resource Manager)

    Select the calibration files that you want to remove, and then click Remove. Note that multiple selection works.

    Hope this helps,

    Christophe

  • How can I remove old updates from windows to prevent their fill my hard drive?

    How can I remove old updates from windows to prevent their fill my hard drive?

    You don't want to. Otherwise, why would have installed their in the first place? They are updated for security. Thema alone.

  • How can I reboot my pc (reformat)? Windows XP - want to remove ALL - please help, thank you!

    attempt to delete everything on my pc! Please sumone help! Thank you very much.

    You want to reinstall Windows XP, or you want to install another operating system?  Or you want to erase everything because you want to sell or give away your computer?

    If you want to reinstall Windows XP you have a Windows XP CD?  You have the product key all important?  Without the product key, you will not be able to install Windows.

    If you just want to reinstall Windows XP for your own use then just boot the computer with your Windows XP CD and press screen printing 'Welcome' to install Windows and the next screen, press F8 to accept the end user license agreement.  After accepting the EULA, you will be presented a list of partitions and disks available, simply select the partition where you want to install Windows and have the installer to format the partition and then follow the instructions on the screen.

    Note that formatting does not erase the files on the drive, everything simply writes a new boot sector and erases the record of all entries table and shows the disc under vacuum for the operating system.  You can get the free files (such as TestDisk) recovery utilities that can easily recover formatted partition.  Even if you reinstall the system operating, commercial data recovery can still recover files in areas that have not been replaced with the new files after you have formatted the drive.  Obvioyusly is not in the safest thing if you want to give or sell your computer, or if you want to remove the stubborn MBR or boot sector virus, in this case you want to zero fill the drive and rebuild it.  Get a zero fill utility (disk wiping) and fill the disk with zeros, this will completely destroy all data on the disk and prevent recovery of files.  You can get a zero utility filling of the manufacturer of your drive, or you can use one of them (Secure Erase is my preferrence):

    Secure erase

    Darik Boot And Nuke (DBAN)

    (Note that these utilities are not suitable for SCSI drives, if you have disks SCSI contact the manufacturer for a suitable utility)

    After fill you to zero the drive start just the computer with the Windows XP CD and the Setup disk selection screen will see and present as a new disk.  Create a partition and format, then proceed with the installation of Windows.  Don't make the mistake of installing Windows on a partition too small, better to use the entire disk rather than running out of space more later!

    Native and favorite of the filesystem for windows XP is NTFS, format the NTFS partition, unless you have compelling reasons to use a different file system.

    And yet once, remember that you can not install Windows without the product key, you must ensure that you have the key before format or erase the disk.  Without the key, you'll be up the proverbial Creek!

    John

  • two hard drives, one with vista and the other with XP and you want to remove second disk XP

    I have a hard drive that came with my computer and vista on it, I added a second drive to my bench that has XP on it. I want to remove the second XP disc and simply use it as a storage drive, and I'm afraid that if I try and uninstall XP disc, it allows to uninstall vista of the first hard drive instead. or should I even try and uninstall it all and just delete all files? Since there is nothing in the registry for all the things on the second disc. If I uninstall XP second drive will be there remove all of that second drive? because there are a few things about this, I still want to keep. I should also mention that it is divided into three separate letters, if I do not uninstall XP I lose all three of these letters of partitioned drive? Any help on this would be greatly appreciated.

    Thank you.

    You can just uninstall XP. Anyway, as you say, you can remove the folder Program Files and Windows in that partition but personally I would just copy the files I need to another partition (on the hard drive where vista is installed) and the format of the old HDD.

Maybe you are looking for