Remove specific digit from number

I need to change a 13-digit number to a 12-digit number by removing a specific digit. For example:
1012200912003
I need to remove the 3rd digit from the right, so that the number would be:
101220091203
How can I do that in SQL?
Thanks in advance!
John

To do that you need to convert the number into string first.
with t
as
select to_char(1012200912003) x from dual
select to_number(substr(x,1,length(x)-3)||substr(x,-3+1) ) num
  from tHere you can change the value 3 to mach any position in the number
Edited by: Karthick_Arp on Aug 27, 2009 12:11 AM

Similar Messages

  • [solved] How to remove specific pages from PDF file?

    I'm looking for a way to remove few pages from PDF file.
    Last edited by delor (2008-07-04 10:28:22)

    To remove first page I did this:
    pdftk original.pdf cat 2-end output result.pdf
    Any other propositions ?

  • Removing specific folder from time machine help!

    I had a drive die that had only specific folders backed up. Large files sizes. How do I remove them from time machine now that the drive is gone. I read that you can use the gear menu to remove the back up but it does not seem to work. and since it's not the drive being backed up but only a portion of it, I see no way to remove this data. Any help would be appreciated

    You do mean you want to delete all the backups of those folders, right?
    If so, use the procedure in #E3 of Time Machine - Troubleshooting to see the backups, then select them and use the "gear" menu or right-clicking, to get the menu where you can delete them.  See #12 in Time Machine - Frequently Asked Questions for details on that.

  • To Remove decimal digit in number field

    Hi experts
    any one can tell me the function in Crystal Report for removing decimal digits in a number type field. like field value is 34.00 should be 34.
    Regards
    Gorge

    Hi,
    use "round(value,dec places)" formula that is there in  functions in crystal report.
    Rgds,
    Premraj

  • Removing specific podcasts from iPod

    Hello,
    I apologize if this is a simple question, but I'm not sure the best way to handle. I subscribe to many podcasts. I have it setup so that ALL podcasts are synced with my iPod. Once I have listened to a specific podcast, I will usually go into my Podcasts in iTunes and delete the ones that I no longer want. Then, when I sync, the podcasts are deleted off the iPod. However, sometimes I do not want the podcasts to be deleted from iTunes. Just the iPod. That way, I have the podcast incase I ever want to go back to it and listen to it again. It also doesn't clutter up my iPod.
    Question: What's the best way to do this? I tried to un-check the checkbox on the episode I didn't want sync'ed, but it still showed up on my iPod. Do I need to go into the iPod as well and delete the episode?
    Hopefully I'm making sense. Thanks for the help!

    To do this, I think you would need to go to edit, and then preferences at the bottom while your iPod is connected. Then, under the ipod tab, click podcasts. The selected button should be "Automatically update all Podacasts".
    Then, at the bottom there is a dropdown box, which is probably selected at "Update: All episodes". You ca change this box to one of 4 options: "Update: All episodes; Only checked episodes, only most recent episodes, or Only unplayed episodes"
    If you set it to update only checked episodes, then your problem should be solved.
    Another solution could be to manage the podcasts manually, which is the most organized route I personally think.
    Hope this solves your problem, And congrats on your first post.(lol I only started yesterday)
    (soon to be) Imac 20 inch core duo, 2 GB of RAM, 500 GB hd (but for now) old hp laptop   Windows XP  

  • Removing specific element from a list

    Hello, I'm very new to java, and to programming in general.
    I'm trying to write a secret santa app for my family for christmas. Essentially the idea is that 7 names are put into a list, and each time a name is "pulled" (i.e. randomly assigned to a name /= itself) it will be removed from the list of available names to assign.
    String[] nList = { name2, name3, name4, name5, name6, name7 }; // store names for random use
    Random r = new Random();
    name1assign = nList[r.nextInt(nList.length)];
    String[] nList2 = { name1, name3, name4, name5, name6, name7 };
    name2assign = nList2[r.nextInt(nList2.length)];
    My goal for this is to take the string that is equal to name1assign, and remove an element with that string from nList2.
    Can anyone give me some advice in this matter?
    Thanks.

    Sometimes a null value is used to indicate an 'empty' array element, but it would be better to try collections instead.
    You could use an ArrayList instead of an array. This has methods to remove items by index or value.
    An ArrayList also works with Collections.shuffle, which allows you to simply iterate over the list and not deal with random or removing elements at all.

  • Removing specific pops from phone recordings

    I'm running Audition 3.0 on an XP machine. My SoundBlaster card (X-Fi Xtreme Audio) has an audio input (DynaMetric) coming from the Aux plug on the business phone (older Avaya Partner).
    It records really well, all things considered, with one exception: the phone system for some reason produces very loud "pops" periodically. I have no idea where they come from and have made a cursory effort to prevent it, but was told this isn't the best phone system in the world.
    I'm a novice user, using Audition for promotional and fund-raising purposes in our small business. I'm barely able to navigate the tools. I did try a few of the built-in pop removers, but this particular type of pop doesn't seem to lend itself to that approach, at least not within the limits of anything I'm capable of figuring out.
    I'm hoping an expert can provide me with a plug-in or sound sample to use with one of those tools, and instructions on how to apply it.
    The good part is that these pops are quite consistent. Expect for one or two exceptions in the sample I'm providing here, they all seem to be very near to being identical to one another.
    They all seem to be of the same length and, apparently, pretty much of the same volume. I'm wondering if those parameters alone might help isolate them with a routine I can run on the recording file.
    (You'll notice that even though the volume of the person on the other end is considerable lower than mine, the volume of the pops seem to be consistent.)
    The sample I'm providing doesn't make sense if you listen to the words because I selected a series of places where the pops exist.
    I would estimate that in an hour-long recording there are at least a few hundred of them. They're very simple to manually delete by expanding the wave, but there are just too many for that to be practical.
    Here's the sample you can work from. (I can provide a different set of selections if you prefer. I assume this will be fine.)
    http://www.silver100.com/x/phonepops.wav
    Thanks very much!

    Oh, okay. I got it now. Thanks!
    (Note that in Audition 3.0 I don't see anything called "Repair Transient". Maybe you have a different version of Audition. The general Help description under Click/Pop Eliminator just says it removes various transients.)
    I've created the shortcut key to run your script. I see what it does, now -- as you said, it selects a short span of time following the cursor position and applies whatever it is that it does. I presume it's calling the Click/Pop Eliminator tool and applying the parameters in the script.
    It seems to do a pretty good job. Once I manually position the cursor before a pop, I can hit the shortcut key and it will eliminate it while only partly reducing the sound that I do want to keep. Not bad at all. Probably not as perfect of a result as manually slicing out the pop surgically, but I doubt it will be noticeable at all in most if not all cases since this is just speech recorded over the phone anyway.
    Man, I sure do wish there was a way to fully automate this. It's still going to require my manually selecting and removing hundreds of pops in longer recordings. That's an enormous cost in time spent!
    Are we really, really sure there's no way to manually define a profile or sample that matches the characteristics of these pops and let it run automated? The Noise Reduction feature can capture a sample from a selection and run with that, but my pops are not long enough in duration for it to capture. I would like to think there's some way to approach this that will let it run nice and cleanly and fully automated by defining the pop characteristics in one of the tools. The reason I'm suspicious there may be a way is the totally consistent characteristics of these pops (not that I know much at all about what would be involved or how realistic is really is or is not).
    Any other ideas?
    Anyone else have any other ideas?
    Thanks again!

  • Removing specific cells from different columns.

    Hi friends,
    My requirement is somewhat peculiar. I dont know anyone have already implemented that.
    I have 4 columns, 11 rows in my JTable.
    Now i want to display all the 11 rows (i.e to be specific cells ) for first two columns, and just 8 for the next two columns..
    Kind of incomplete table. Does anyone have any idea? please help me... This may be weird , but i need it.
    Sankar.

    try this with some change to suit you
    written a renderer to remove a cell, hope this is what you need.
    public class CellRemoveRenderer implements TableCellRenderer {
         private JLabel label;
         DefaultTableCellRenderer defaultRenderer = new DefaultTableCellRenderer();
         public Component getTableCellRendererComponent(JTable table, Object value,
                   boolean isSelected, boolean hasFocus, int row, int column) {
              if (row == table.getRowCount() - 1) {
                   return label;
              } else {
                   return defaultRenderer.getTableCellRendererComponent(table, value,
                             isSelected, hasFocus, row, column);
    }apply this to table
    table.getColumnModel().getColumn(table.getColumnCount() - 1)
                        .setCellRenderer(new CellRemoveRenderer());i hope this ends your problem.

  • Remove specific files from Time Machine backups

    My Time Capsule is getting pretty full and I know it will delete the oldest backup first, but looking at the oldest backup via TM, its full of some huge video files which just happen to be in the next three or four backups as well - but not exactly the same as they were edited each time.
    At 16Gb a shot they would be ideal candidates for trashing without deleting the rest of the backup. Is it possible to delete individual files within a backup leaving the rest unaffected ?

    Graham Outterside wrote:
    I managed to remove the relevant files off the oldest backup copies as far as I can tell - they do seem to have disappeared from view. After a few restarts of the computer however I notice that the sparebundle file is still the same size.
    that's because a sparse bundle does not automatically compact when you delete some of the contents. you can compact it from terminal if you really want to but there should be no need. new backups will take the freed space in the bundle eventually.
    to compact a sparse bundle you need to run the following terminal command
    sudo hdiutil compact /path/to/sparsebundle
    put the correct unix path to the sparse bundle in the command. an easy way to get it is to drag the bundle to the terminal window. make sure that all the space in the command are correct.
    Looking at the backup logs for subsequent backups I got;
    Starting standard backup
    No pre-backup thinning needed: 1.18 GB requested (including padding), 11.57 GB available
    Copied 4730 files (344.7 MB) from volume Macintosh HD.
    No pre-backup thinning needed: 1.27 GB requested (including padding), 11.57 GB available
    Copied 243 files (416.4 MB) from volume Macintosh HD.
    Starting post-backup thinning
    Deleted backup /Volumes/Backup of Graham Outterside’s Computer/Backups.backupdb/Graham Outterside’s Computer/2009-09-22-212457: 11.57 GB now available
    Post-back up thinning complete: 1 expired backups removed
    Backup completed successfully.
    Ejected Time Machine disk image.
    Ejected Time Machine network volume.
    Whats interesting is that TM is deleting the oldest backup POST SL and not going back to try and delete the oldest backup which is May 2008.
    I don't know why this would happen. did you do a regular install of SL? did you make any hardware changes to the computer?
    Secondly the files deleted from the May June and July 2008 backups have not affected the sparsebundle file size.
    I am fairly sure its a'user account'issue and this user cannot delete the oldest backup or thin down the sparsebundle as its owned by the older pre-SL user.
    no. this has nothing to do with user account issues. TM runs for the whole computer as root and does not care about individual accounts.
    not sure where to go from here to get any hard disc space back as its just going to keep deleting recent copies in prefernce to old ones.

  • Why can't I remove specific  photos from my photo library

    I Have a ipad 4 and I notice I'm using 2 gigs of photo ram and I only have 41 photos but if I look at the collections I have hundreds and on one day I took alot of photos that I want to delete but the trash icon is grayed out how do I fix this

    I am a PC user, but this may help you??:
    I am having the same problem with track 10 on two Springsteen CDs that would not play in my desktop PC (one was a dual dvd, the other a regular CD). So first, to get them to work, I had to find a source (my laptop) that would "see" the CD. Then I ripped to Windows Media, then copied onto an external hard drive, then imported into iTUnes.
    Everything went well until track 10 on both (After that, the rest of the tracks imported okay on one CD, and then on the other track 11 had a problem, but the rest ok).I found a posting (see below for the link) and it solved the problem on track 10 on both (basically I changed the track# to another number else in the Properties/ Summary/ Advanced section). However it didn't work for that one track 11. So if anyone has ideas on that, I'd appreciate it. I tried fiddling with all the differnt categories in Summary (track name, album name, etc) and rename the song itself, removing the number, but to no avail. Here is the posting that I found the solution on
    http://www.howardforums.com/archive/topic/1077261-1.html

  • Removing specific items from a list

    Hi all,
    i have the following problem:
    I have a list component on stage.
    I have 10 Items in the list , selected index is 5.
    Now i want to delete all the items above 5 (6-10).
    I think an array would be a solution but im not so kind with
    this so i need your help.
    Thank you
    Simon

    if the instance name of your list is myList, then the
    following code will remove all items after the currently selected
    item:

  • Excel - Remove specific characters from entire worksheet if they are the first 2 in the cell

    Hello,
    I have a very large worksheet that is used to populate a SQL database.
    I need to have the data clean before I pass it on to the owner of that database.
    The data is riddled with "na" where the supplier of the data sometimes leaves it blank, like they should, but instead sometimes puts in "na" as either "not applicable" or "information not available". 
    I just need the all "na" removed.  If I highlight the entire sheet and replace "na" with nothing then where it says "international" it will say "inertional" and I can't have that.
    I need a routine, with an on-click for a button, probably, that removes all of the "na" that comes first in the cell.
    I've seen where you can do it with individual cells, but not looping through the whole spreadsheet.
    Thank you in advance for any help I can get! 
    Gee

    >>then where it says "international" it will say "inertional"
    Selecting the "match entire cell contents" option may give you what you want.

  • Removing specific items from the "Open With" menu

    I use VMWare Fusion and have an issue with the "Open With" context menu for documents that I can open with VMWare. Several images that have been deleted continue to show up in the context menu. How can I remove them?
    I tried renaming the com.launcher.plist solution described in the "how to" section, but to no avail...

    When you say you "tried renaming the com.launcher.plist", did you do what is described [here|http://support.apple.com/kb/TA24770?viewlocale=en_US] or something else?
    Also have a look at [this thread|http://discussions.apple.com/thread.jspa?threadID=1486735].
    /p

  • HT204088 I want to remove specific items from my purchase history. for example items that were free, for trial were not purchased.

    Hi, This must be quite a common problem. A purchase is defined as something one acquires by paying.
    The app store gives you access to download free items or download items for trial. Most are rubbish.
    Because the ipad doesn't support multiple login accounts everyone uses one apple account to download the apps.
    Over the months i have tens of apps that have been downloaded and deleted. they still appear in my account as 'purchases'.
    How do i delete items that have been deleted and not been paid for?
    Thank you.

    I don't think you can, Peter.
    Apple regard a download from the App Store as a purchase.   You can hide it and ignore it, but not cancel it.  
    I am not so sure about the system if you're talking about apps previously downloaded 'privately' that are later subject to Apple updates.

  • Removing Specific Row from table

    I have a table and a button with this code
    var lastrow = Table1._Row1.count;
    if (lastrow < Units.rawValue) then
        while (lastrow < Units.rawValue) do
            Table1.Row1.instanceManager.addInstance()
            lastrow = lastrow + 1
        endwhile
    elseif (lastrow > Units.rawValue) then
        while (lastrow > Units.rawValue) do
           Table1.Row1(lastrow).instanceManager.removeInstance()
            lastrow = lastrow - 1   
        endwhile
    endif
    However that line gives me an error. I am trying to remove the last line of the table. Any help?

    Try like this..
         Table1.Row1.instanceManager.removeInstance(lastrow-1);
    Thanks
    Srini

Maybe you are looking for