How Can I validate an Cust_Id that has nubers and letters within it

I am trying to validate a cust_id that has both numbers and letter in it. like this 111A12345678. the valid letters to be imputed are A,C,D,E,G,Z how can I validate this so that when the fourth character is any other letter than the above, like this 111B12345678 it display an error message that A,C,D,E,G,Z are the only valid letter that can be imputed in the fourth character.
Your help is greatly appreciated
Thanks
Hank

I think Sergio was wondering what Db version, 10G will give you regexp, if you're running 9i then a sql exists may do it for you
select 1
from dual
where substr(:cust_id_item,4,1) in ('A','C','D','E','G','Z')

Similar Messages

  • How can I debug a sequence that has a subsequence is running in a separate thread?

    Hi,
    How can I debug a sequence that has a subsequence is running in a separate thread?
    I have to have a continues check for a  digital in signal to be able to terminate the sequence if a physical button is pushed.
    This is running in a separate thread, but this way I cannot debug the main sequence.
    Is there any workaround for this?
    Thanks,
    Andras

    This KB might help you:
    http://digital.ni.com/public.nsf/websearch/46D1E157756C37E686256CED0075E156?OpenDocument
    Let me know if this does not help.
    Allen P.
    NI

  • How can i copy a picture that has been installed with the flash player

    how can i copy a picture that has been installed using the flash player

    You can't. You can take a screen cap of it, but the container doesn't allow access to the individual images used in a SWF or FLV.

  • How can I uninstall an app that has locked my phone?  Can I uninstall the app online from my computer?

    How can I uninstall an app that has locked my phone?  Can I uninstall the app online from my computer?

    I don't know about uninstalling an app from a web page but if all else fails you could try recovering with the Nokia lumia recovery tool.
    FAQ - How can I recover/reset/restore my phone software? - Nokia - USA

  • How can you find an ipod that has been lost

    how can you find an ipod that has been lost and the icloud is not turned on

    lost/stolen                                      
    No app is required.                                               
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    iCloud: Find My iPhone
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    iCloud: Find My iPhone
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • HT1420 how can i deauthorized a computer that has crashed. i have hit my limit but i have no way to access itunes on those computers

    How can I deauthorize my computer that has crashed. I have hit my limit but have no way to access itunes on any of those computers

    By using the Deauthorize All function.
    (69001)

  • HT1420 How do I deauthorize a computer that has crashed and can't be restarted?

    How do I deauthorize a computer that has crashed and can't be restarted?

    You don't, nor do you need to.
    When you reach the limit of 5 then you can deauthorize all.

  • How can I recover a iMessage that was deleted and if not is there a way apple can send me email of all my iMessages in past month

    How can I recover a iMessage that was deleted and if not is there a way apple can send me email of all my iMessages in past month

    Hi Toniann,
    If you have a recent iCloud backup that was done when that message was on the devcie, you can restore from that backup.
    No, Apple does not keep your messages, no do they have access to them. That would be a serious invasion of privacy, don't you think?
    GB

  • How can I backup a drive that has errors?

    How do I backup a drive that has this error? So I can re-partition and reformat it.
    Starting repair tool:
    2013-01-12 16:35:55 +0800: Checking prerequisites
    2013-01-12 16:35:56 +0800: Checking the partition list
    2013-01-12 16:35:56 +0800: Problems were encountered during repair of the partition map
    2013-01-12 16:35:56 +0800: Error: Partition map check failed because no slices were foun
    I bought a new 3tb internal drive for my windows machine so I can backup an external drive which I didn't know was mac formatted. When I was trying to extend the capacity of my internal drives in wndows so it would add another 3tb I accidentally chose my exteranal drive and it changed the master boot record although I cancelled the process the drive won't mount in my mac anymore. And I get those errors in the disck utility.
    The data in it are very important I was trying to backup it to my sohotank harddrive enclosure which already had a 2tb and now a 3tb installed. Any help would be appreaciated.
    I'm now trying to create an image of the mac drive and had reformatted my 3tb drive to Mac just so I can place the image there. I don't know if it would work or it will jus take too long because the progress bar is not moving at all.
    Thanks!

    sp0radic wrote:
    I'll buy software if i have to.
    I prefer one full backup then incremental backups.
    maybe ChronoSync can do what you want.
    good luck !

  • HT1414 How can I use my info that has been backed up on my older iphone

    I was wondering how can I access the information that was backed up on my Iphone 3G and 3GS, now that I have the current Iphone 4S?
    Can I print that information out on a word doctument or something?

    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • How Can You Track a Person That Has Your IPhone And You Want It Back

    How Can You Track a Person That Stole Your IPhone And You Want It Back

    Log into icloud.com with your Apple ID and use Find my iPhone to track it. If it can't be located that way, there is no way to track it.

  • How can I get an item that has the broadcast icon next to it into MP3 format so I can put it on my ipod nano?

    Question: how can I get an item in my itunes library, on my mac os 10.6.7 that has a broadcast icon next to it into MP3 format so I can play it on my ipod? right now it won't let me, and it's very frustrating!!!! thanks

    I might have misunderstood what you mean by the "broadcast icon," but if you are talking about an audio stream, then there is just no way you can convert a stream to MP3. What this would involve is either recording the stream, and then you would just be replaying the recorded audio on your iPod (is this what you are trying to achieve?), or reading the stream directly on your iPod, which an iPod nano does not support (it would need wireless connectivity).
    Hope this helps

  • How can i delete a toolbar that has been added?

    Somehow I have a toolbar for a shop at home site that has been added to my list of toolbars. It takes over my browser when I'm surfing and takes me to places i have not selected. How can i delete this toolbar? I believe I have the latest version of firefox and i am running windows 7

    This sounds like spamware you might have installed by accident. If you go into Add-Ons (Firefox -> Add-Ons) it should be under 'Extensions'. Click the 'Remove' button and that should get rid of it.
    You might also find it under 'Programs and Features' in Control Panel. Remove it if it's there.

  • How can I create a subVI that has state?

    I'm trying to simplify a VI that I inherited and I noticed a recurring pattern that IMHO should be a subVI.  The pattern is that we have a digital output line that is controlled by a timer.  Each output has a start time for it to activate and a duration after which it is turned off.  When the state changes, a single line entry is added to a common log file and an indicator shared variable is set so that the remote host VI updates.  We have a big while loop that checks the current time against each of the activation conditions.  To detect when the state has changed, we're using a shift register (for each actuator).  It's one thing to see the same pattern 3 times, but it's worse -- we want to sometimes use a different number of actuators.  If I was writing this in C++ (with which I'm far more comfortable than LabView), I'd write a class for the actuator and instantiate it N times.  The class would have member data to keep track of its state.  I can create a subVI that does the meat of the design pattern, but I can't figure out how to store the previous state in the subVI without requiring it to be passed in.  How do I keep the state and behavior of a VI together?  Surely there's a way to do this because otherwise I can't see how you could implement state-ful algorithms like, say, a PID controller.  But I'm at a loss to figure it out ...
    Thanks.
    Keith.

    To save state in a subVI and not use that state in other subVI calls, make the subVI reentrant.  When a subVI that is reentrant is called it creates a unique memory space for that subVI.  This is called a clone.  That memory space is where state is held for that subVI.  Keep in mind that it also means that the memory footprint is going to be larger.
    To set a subVI to be reentrant, open it and go to File -> VI Properties and select execution.  It will be a choice on the bottom left.
    Hope that this helps,
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • HT1212 how can i restore a ipod that has been disabled with a different computer

    how can i restore a ipod touch that has been disabled with a different computer

    Restore it in Recovery Mode: http://support.apple.com/kb/HT1808

Maybe you are looking for