If the mobile is valid or not by using the Pl/SQL cursor

Hello

Can someone please email me a cursor query to see if an mobileno is valid or not.

Table name Cc_customer
mobileno domain name
length should be 10 and start by 9, length should be 12 and start with 919

Do you mean something like this?

SQL> ed
Wrote file afiedt.buf

  1  with t as (select '9123456780' as mobile from dual union all
  2             select '919123456780' from dual union all
  3             select '12345' from dual union all
  4             select '1234567890' from dual union all
  5             select '123456789012' from dual)
  6  --
  7  -- END OF TEST DATA
  8  --
  9  select mobile
 10        ,case when regexp_like(mobile, '^((91)?9[0-9]{9})$') then 'valid'
 11         else 'invalid'
 12         end as chk
 13* from t
SQL> /

MOBILE       CHK
------------ -------
9123456780   valid
919123456780 valid
12345        invalid
1234567890   invalid
123456789012 invalid

SQL>

Tags: Database

Similar Questions

  • Is there any web page of Microsoft, where I can check if the product key is valid or not before using it?

    Hello team,

    Are there any Microsoft webpage where I can type my product key for windows 8 and receive:
    -product information - if the key is valid, what version and so on.
    -instruction where and how download the correct software for this product key.
    I have just a key card - card with a product key for Windows 8, which must be valid and which I have not yet installed and I need a proof for it.
    I found this web page:
    http://www.Microsoft.com/genuine/validate/DownloadValidationSupport.aspx?displaylang=en
    But it is to check if the current operating system on my PC is valid. And I don't want to install first, before I checked.
    Thank you very much in advance!
    Best regards

    Teodora Kasabova

    Original title: product key Windows 8

    If there was a website like this, it is very likely that someone he would use with randomly generated product keys until they have found one that has been reported as working.

    So I guess the answer is no, there is no site I know. The algorithm that determines if a product key is valid or not and to what version is a secret very jealously guarded for the reasons mentioned in paragraph 1.
    If you have a genuine product key card, it should show the version that it is intended to be used with.
  • Error message about Lightroom mobile (which I have not or use)

    Hello

    I bought the version regular stand-alone Lightroom and use it without any cloud thing. Suddenly, I get an error message that says "mobile trial Lightroom has expired. I do not use it, the "feature" is suspended (cannot be disabled), but the annoying error message is still displayed.

    How to completely remove this message?

    I am running the latest version of Lightroom.

    Hello

    In the upper left corner of the main window close the model name, there should be a drop down menu that has "sync with LR Mobile" as the first option. From there, you should be able to disable it.

    Thank you

  • On the PL/SQL cursor

    I have this code snippet:

    DECLARE
    CURSOR c1 IS
    SELECT * FROM CLEANED_WINDOWS_DEVICE_DATA;
    event_rec c1% ROWTYPE;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO EVENT_REC;
    WHEN the OUTPUT (c1% NOTFOUND);
    INSERT INTO CLEANED_WINDOWS_DEVICE_DATA)
    ET_DATE_STRING,
    ET_HOUR)

    VALUES)
    -ET_DATE_STRING
    TO_CHAR (EVENT_REC. EVENT_TIME, 'dd.mm.yyyy'),
    -ET_HOUR
    TO_NUMBER (TO_CHAR (EVENT_REC. EVENT_TIME, 'HH24'))
    );
    END LOOP;
    CLOSE c1;
    END;

    But so I don't get anything in the ET_DATE_STRING and ET_HOUR columns.
    Why is this? Is it because I'm using sliders? Another way to do this?

    Can be.
    Assuming that EVENT_TIME is having the DATE data type.

    UPDATE CLEANED_WINDOWS_DEVICE_DATA
    SET  ET_DATE_STRING = TO_DATE(TO_CHAR(EVENT_TIME,'DD-MON-YY'),'DD-MON-YY'),
            ET_HOUR = TO_NUMBER(TO_CHAR(EVENT_TIME,'HH24'));
    

    -Clément

  • the mobile device Center can not download!

    I think that I need Windows Mobile Device Center to connect my phone to my PC to synchronize (Vista Home Prem 32 sp2).
     
    Whenever I download, I said I need validation (do not know why, as Microsoft Update works fine) but no worries. When I click on the checkout page (there are alternative to validate means did not), I'm redirected to a generic page of windows
     
    http://www.Microsoft.com/UK/Windows/
     
    I searched this forum, many people seem to have the same problem and they all are sent on the same page, I'm trying, but it still does not work.
     
    Any suggestion is welcome.
     
    Thank you

    Hi Bonalymac,

    Have you tried to download the file in Mode safe mode with network and save it on the desktop? Start in normal mode, and then runs the installation?

  • When I want to print my coreldraw 13 error "file of valid workspace not found in the specified path.

    whenever I try to print a document on my coreldraw is will just put "file of valid workspace not found in the specified path.

    Hello

    Thanks for posting your question in the Microsoft community forum!

    I understand that you encounter printing problems in CorelDraw. I will try to help you with this.

    (1) is the issue limited to only Corel Draw?

    I suggest you to restore the default values by pressing the F8 key while the program starts.

    Reference: File not found valid environment...

    http://CorelDRAW.com/forums/t/4156.aspx

    If the problem persists, I suggest you contact the link mentioned below for the best support.

    http://CorelDRAW.com/forums/

    Please post back if you have any questions about Windows. I will be happy to provide you with the additional options that you can use to get the problem resolved.

  • Computer has recently been corrected it now say windows is not genuine, go online to solve the problem. Windows validation does not any ideas how I can fix this

    Computer has recently been corrected it now say windows is not genuine, go online to solve the problem.  Windows validation does not any ideas how I can fix this

    Visit: http://www.microsoft.com/genuine/diag/> and click on "start the Diagnostics.

    IMPORTANT -online if you run Windows 7 or Vista 64-bit, you must Access the site via IE 32 bits only!]

    `~`

    Try the number listed here appropriate phone: phone numbers Microsoft Activation centers worldwide:

    http://www.Microsoft.com/licensing/existing-customers/activation-centers.aspx>

    `~`

    If you are still not able to validate your Vista installation, follow these steps:

    I. Download this diagnostic tool, save it to your desktop: http://go.microsoft.com/fwlink/?linkid=56062>

    -Online Vista & Win7: right-click on the executable and select run as administrator to run the tool.

    II. after running the tool, click on the button continue, and then click the copy button (to the Clipboard).

    NB: You can open a new file in Notepad, paste the contents of the Clipboard in it & keep for future reference.

    III. start a new thread in the following Microsoft Genuine Advantage forum and paste the results of the diagnosis of MGA tool in your post, and a clear description of your problem:

    >>

    >

    IV. A help desk specialist will analyze the data and recommend an appropriate solution.

    UTC/GMT is 21:28 Friday, December 2, 2011

  • [ADF, JDev12.1.3] step-recording-shape built with fragments: validation should not happen when you click on the "back" button

    Hallo,

    I have a btf containing fragments of 4 in the order who are at the stage of the registration form.

    Each fragment contained fields for the same instance of VO. the points of the fields is managed through the property Required for the APP.

    Each fragment has a front and a "back" button to go to the next/previous step (buttonthe Action property is set to the name of the species of specific control flow).

    In each fragment of the automatic validation - occurs when the user clicks the next button if the form is not well filled. It is very good.

    The problem is that validation also occurs when the user clicks the back button: in this case the validation should not happen.

    How can I achieve this?

    Thank you

    Federico

    Have you attempted to immediately assign = true on the "back" button?

    Dario

  • How can I save a document in pdf format pdf.p7m? I have digitally signed by Aruba I signed and the signature is valid, but not in pdf format, I contacted Aruba, I sent my card and regular and correct. Who can help me?

    How can I Save a document in PDF format PDF.p7m ?
    I digitally signed Aruba
    J’ai signed and the signature is valid, but not in pdf format pdf.p7m
    I contacted Aruba, I sent my card and regular and correct.
    Which peut help to me?

    Not possible with Adobe Acrobat.

    Open File Extension P7M

  • get the error "no sequence valid is not found for the set of patches" msg trying to launch Acrobat XI for the first time after installing - suggestions?

    get the error "no sequence valid is not found for the set of patches" msg trying to launch Acrobat XI for the first time after installing - suggestions?  Using Windows XP.

    Hi James,

    Let me know if the problem persists.

    Kind regards

    Nicos

  • The ADF Mobile preview pane does not work under Windows 8.

    The ADF Mobile preview pane does not work under Windows 8 64-bit even I use Jdeveloper 11.1.2.4.0 version, but I use windows 7 64-bit or windows xp works fine.

    How to solve this problem, please.

    Thank you!

    Hello

    I installed JDeveloper 11.1.2.4 on my machine Windows 8 and the extension of the ADF Mobile. I can open the ADF Mobile Viewer. There is therefore no problem with this on Windows 8. I used the generic facility, which is that I have installed the JDK and then run the command for installing JDeveloper Java-jar.

    Frank

  • Migration E Xperia Xperia compact Z5 - Xperia transfer Mobile & PC companion does not

    I bought a compact smartphone Z5 because they had already a series Xperia E. I wanted to migrate easily and instead, I have problems and application of local data transfer.

    1. I can't use the PC because the PC Companion requires at least Windows 7, so that my editing PC operating system Windows XP.

    2. I bought the micro USB sony original EC310 adapter cable to use the transfer Xperia Mobile application but does not.

    Check step 4 on both smartphones but then nothing happens. The Z5 recognizes the USB connection.

    On Xperia E usb port's on MTP and so on compact Z5. The bluetooth connection is active and receive all the permissions requested by the display.
    Xperia E is the model C1505 with Android 4.1.1 build 11.3.A.2.33.
    Compact Xperia Z5 Monte 6.0 Android

    I tried to disable and re-enable debugging.
    The operation is always performed with charged batteries.
    The cables used are all original Sony.

    How can I solve the problem? I can't use the new phone if you do not complete the migration because the phone has to be in order.

    I did some research and unfortunately Xperia E is not supported by Xperia transfer for several reasons,

    -It doesn't support USB host so an OTG adapter will not work

    -It does not direct WiFi support so a wireless transfer is not possible

    -It is not guaranteed to work with the Xperia Xperia companion transfer function

    I would say that the best idea here is to back up as much data as possible on an SD card and simply insert the SD card into your new phone. There might be some third-party solutions as well but I have no reference for I'm afraid.

    I'm terribly sorry for the inconvenience.

  • Validation does not work

    Hello world

    There is a login screen that contains (basiceditfield) username, Password (basiceditfield) and submit (buttonfield)...  If the user name and password is equal to "AEK" then only it may be able to go to the next screen by clicking on submit button... the next screen contains the user name and password, that he entered the first screen... but my validation does not work... it shows that the user name and password dialog box is wrong... just see this as soon as it takes a few minutes.. Please check it out...  my code is

    Import net.rim.device.api.system.Bitmap;

    Net.rim.device.api.ui import. *;

    Net.rim.device.api.ui.component import. *;

    Net.rim.device.api.ui.container import. *;

    SerializableAttribute public class extends UiApplication LoginScreen

    {

    Public Shared Sub main (String [] args)

    {

    LoginScreen connection = new LoginScreen();

    login.enterEventDispatcher ();

    }

    public LoginScreen()

    {

    pushScreen (new login()));

    }

    }

    final class login extends screen

    implements FieldChangeListener

    {

    DisplayList _displayList;

    HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager();

    VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager();

    HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager();

    public BasicEditField username = new EditField("Username:","",8,EditField.FILTER_DEFAULT);

    password public PasswordEditField = new PasswordEditField("Password:","",8,EditField.FILTER_DEFAULT);

    ButtonField submit = new ButtonField ("Submit");

    ButtonField cancel = new ButtonField ("Cancel");

    BitmapField bitmapfield;

    Bitmap flag;

    LabelField label = new LabelField("",)

    LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);

    public login())

    {

    Super();

    for listener btn

    LabelField title = new LabelField ("HelloWorld example",

    LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);

    setTitle (title);

    Flag = bitmap.getBitmapResource ("TLI.png");

    bitmapfield = new BitmapField();

    bitmapfield.setBitmap (flag);

    Add (_fieldManagerTop);

    Add (new SeparatorField());

    Add (_fieldManagerMiddle);

    Add (new SeparatorField());

    Add (label);

    Add (new SeparatorField());

    Add (new SeparatorField());

    Add (_fieldManagerBottom);

    _fieldManagerTop.Add (bitmapfield);

    _fieldManagerMiddle.Add (username);

    _fieldManagerMiddle.Add (Password);

    submit.setChangeListener (this);

    cancel.setChangeListener (this);

    Add (new SeparatorField());

    _fieldManagerBottom.Add (Submit);

    _fieldManagerBottom.Add (cancel);

    }

    ' Public Sub fieldChanged (field f, int context)

    {

    if(f==Submit)

    {

    System.out.println("username:\n"+username. GetText () + "\npassword:" + password. GetText());

    System.out.println ("Submit");

    If (username. Equals("Abhi") & password.equals ("abhi"))

    {

    _displayList = new DisplayList();

    UiApplication.getUiApplication () .pushScreen (_displayList);

    }

    on the other

    {

    System.out.println ("invalid entries");

    Dialog.Alert ("Invalid username and password");

    }

    _displayList = new displayList();

    UiApplication.getUiApplication () .pushScreen (_displayList);

    }

    Another yew (f is cancel)

    {

    System.out.println ("Cancel");

    username.setText("");

    password.setText("");

    }

    }

    SerializableAttribute public class screen extends DisplayList

    {

    RichTextField username, password;

    public DisplayList()

    {

    Super();

    The screen of sc = new FullScreen();

    userName = new RichTextField (username.getText ());

    password = new RichTextField (password.getText ());

    TCI Add (username);

    TCI Add (Password);

    UiApplication.getUiApplication () .pushScreen (sc);

    }

    }

    }

    Have you tried this one in the if loop?

    If (username. GetText () .equalsIgnoreCase ("Abhi") & {password.getText (.equalsIgnoreCase ("abhi")))}

    }

  • validation does not

    Hi I'm doing validation by calling the procedure that it is wht I did

    <af:inputText value="#{bindings.SignId.inputValue}"
                                    label="Sign-on ID:"                           
                                    columns="#{bindings.SignId.hints.displayWidth}"
                                    maximumLength="#{bindings.SignId.hints.precision}"
                                    shortDesc="#{bindings.SignId.hints.tooltip}"
                                    id="it2"
                                    autoSubmit="true"
                                    styleClass="inputTextRequired" required="true"
                                    validator="#{Pswdbean.validUsr1}"/>
    
    

    
        public void validUsr1(FacesContext facesContext, UIComponent uIComponent,
                              Object object) {
            String inputString = object.toString().toUpperCase();
    
        OperationBinding oBindings = getOperationBinding("signOnId");
    
            oBindings.execute();
            FacesContext.getCurrentInstance().renderResponse();
        }
    
    

    It does not validate using the code above

    but when use the method below is ok

    public  void signId(ValueChangeEvent valueChangeEvent){
            UIComponent c = valueChangeEvent.getComponent();
            c.processUpdates(FacesContext.getCurrentInstance());
            // Below is the code snippet to invoke above method
            
            
            OperationBinding oBindings = getOperationBinding("signOnId");
                                   
            oBindings.execute();
            FacesContext.getCurrentInstance().renderResponse();
    
        }
    
    

    Hello

    You changed the signOnId public void (String signid) ' public void signOnId (String signid, String err_msa)

    and have not updated the method data binding. You should do something like this...

    public String signOnId (String signid) {}

    ViewObject svo = this.findViewObject("CalMain1");

    String err_msa = null;

    Line = svo.first ();

    SignID = getSignid();

    {if(Row!=null)}

    {if (Row.getAttributeIndexOf ("SignId")! =-1)}

    int index = row.getAttributeIndexOf ("SignId");

    Object [] values is row.getAttributeValues ();.

    {if(values[index]!=null)}

    SignID = (String) row.getAttribute ("SignId");

    callPerformSdmsLogon "(calmain. SignId(?,?) (", new Object [] {signid.toUpperCase (), err_msa});

    }

    }

    }

    Return err_msa;

    }

    ' Public Sub SignIdValidator (FacesContext facesContext, UIComponent uIComponent,

    The object) {}

    String msg = null;

    OperationBinding oBindings = getOperationBinding ("signOnId");

    oBindings.getParamsMap () .put ("signid", object);

    oBindings.execute ();

    String msg = oBindings.getResult (m:System.NET.SocketAddress.ToString ());

    If (msg! = null) {}

    FacesMessage fm = new FacesMessage (msg);

    throw new ValidatorException (fm);

    }

    Delete the current method of signOnId from your customer interface of AM and replace it with the given.

    Then,

    You will have to redo the binding of the method in the page. Then it should work.

    Thank you

    Aman J

  • The PL/SQL call before validation

    Hello

    JDev 11.1.2.4

    I have an EO/VO. I created a few lines, and then I need to commit the changes. The problem is that I have to call a PL/SQL 'after' the line is inserted, but before POSTING.

    In SQL, it would be:

    Several INSERT statement transformed into doDML of the EO

    Call the PL/SQL

    validation of DBTransactionImpl

    Where should I place the call to the PL/SQL?

    Thank you

    For your use case, you can call DBTransaction.postChanges (), and then call your PLSQL code and then call DBTransaction.commit () (or simply call Commit liaison)

    Just make sure that you do it in a "demand".

    BTW, beforeCommit isn't good place for it and same end, not only because of its 'global' behavior, but also because this method is called in some cases, even if you do not call commit.

    Dario

Maybe you are looking for

  • Question about Toshiba Flash Cards

    Hi all Just a quick question. Is it possible that I can have the animation at the top of my screen turned off and STILL have functional function keys? When I run several programs or on battery, it takes forever for the animation to come out and it's

  • How to get to the settings, DATA from the old HARD drive to new Tecra A10

    My 'old' TECRA A2"refused to fly (fell on the desk)... Screen and grapfic external duty!But the HARD drive is still OK and works via an external USB HD adapter to my other PC. Can read all the files in the root directory,* can NOT read only password

  • Target FPGA. help with sbrio 9631

    I am trying to connect to the analog I/o of my sbrio 9631. I'm trying to follow this video http://www.youtube.com/watch?v=q3-WGrnVnxM 37 seconds, his project menu has two folders under the fpga target call anolg input and output analog. When I look a

  • HP 2311xi garbled text

    When you view the text, the text often becomes blurred.  If I highlight the text it becomes clear.  It doesn't happen on any other monitor.  GeForce drivers are up to date and I can't find the settings that prevent that from happening. Any suggestion

  • Reformatting my HDD with my versions of OEM XP PRO & Office

    I have Windows XP PRO and Office OEM versions and I need to reformat my hard drive, I'm not changing all the components of my computer, will it get new product keys.