Check the repetition of a number

Hello experts

I have 9 digits attribute in a table and I need to check that figures entered/filled in the attribute should not be sequential or stretchy. like all the 1 or all 3 s or 1To 9

* 111111111,
333333333,
123456789 *.

A body can help me please, or if this question has been asked more high someone can give me the link.

Thanks in advance

RB

Published by: user532468 on October 2, 2008 16:30

A regular expression solution that solves the two reuqirements:

WITH t AS (SELECT '111111111' col1
             FROM dual
            UNION
           SELECT '123456789'
            FROM dual
            UNION
           SELECT '333333333'
            FROM dual
            UNION
           SELECT '123456780'
            FROM dual
            UNION
           SELECT '987654321'
            FROM dual
            UNION
           SELECT '135246807'
            FROM dual
           )
SELECT t.col1
     , CASE WHEN REGEXP_SUBSTR(t.col1, '([[:digit:]])\1') IS NOT NULL
            THEN 'x'
            END  repeating
     , CASE WHEN REGEXP_SUBSTR(t.col1, '(01|12|23|34|45|56|67|78|89|90|09|98|87|76|65|54|43|32|21|10)') IS NOT NULL
            THEN 'x'
            END  seq
  FROM t
;  

COL1      REPEATING  SEQ
--------- ---------- ----------
111111111 x
123456780            x
123456789            x
135246807
333333333 x
987654321            x

C.

Tags: Database

Similar Questions

  • What is "Error of Privoxy" Privoxy (oooooobo) fatal error: could not check the configuration file ':(error number 2) Config.Txt

    What is "Error of Privoxy" Privoxy (oooooobo) fatal error: could not check the configuration file ':(error number 2) Config.Txt.

    I always get this message in a long horizontal area on my desk top once I restart and turn on my computer.

    Thank you

    "Privoxy" is a 3rd party is no program not part of Windows XP.  You can go to
    Panel-> Add/Remove programs
    and remove this program.  If you still think that you need this program, try reinstalling it on Sourceforge
       <>http://sourceforge.NET/projects/ijbswa >

    HTH,
    JW

  • HP50g: HP50g - hot to check if the object of the stack is a number?

    How to check if an object on the stack is a number or another type of data? There seems to be no any function to check on 50g.

    50 g advanced users to see, page 1-13:

    "The order TYPE ([left SHIFT] PRG-> TEST-> NXT-> TYPE) accepts any object as argument and returns the number that identifies the type of this object." For example, 'HELLO' TYPE returns 2, the value of a string object. See table of object types in Chapter 3, in the command TYPE, to find objects of calculator and corresponding type numbers.

    Generally want to DUP the object to the level of the stack 1 first of all, because likely you want to do something with it, after checking his type.  The following RPL program checks the type of the object in level 1 of the pile and adds a string to the stack indicating its type.  Only some of the possible types are checked and a generic "something else" translates to others:

    «
    TYPE OF DUP
    CASE
    DUP 0 == THEN DROP 'real number' END
    DUP 1 == THEN DROP "complex number" END
    DUP 2 == THEN DROP 'chain' END
    DUP 3 == THEN DROP "real array" END
    DUP 5 is THEN DROP 'list' END
    DROP "something else"
    END
    »

  • I have 22 SPSS for Mac.  Since I upgraded to El Capitan, I have a number of problems.  I checked the Web sites of IBM, but they only mention fixes for SPSS 23.  Any thoughts would be greatly appreciated.  Thank you.

    I have 22 SPSS for Mac.  Since I upgraded to El Capitan, I have a number of problems.  I checked the Web sites of IBM, but they only mention fixes for SPSS 23.  Any thoughts would be greatly appreciated.  Thank you.

    I am running SPSS 23.0

    You can upgrade to 23.0?

    Also, have you looked here

    http://www-933.IBM.com/support/fixcentral/SWG/selectFixes?parent=SPSS & Product = IB m / + Information Management / SPSS + statistical...

  • Currently, I buy iphone 5 s. I checked the imei number. Number IMEI says this iphone 5s is bought in 1978. Why is this?

    I buy iphone 5s currently and I checked the imei number. The IMEI says this iphone was purchese in 1978. Why is this?

    Check here:

    https://checkcoverage.Apple.com

  • How to check the number of items available in RT FIFO?

    Hello

    Is there a way to check the number of items in RT FIFO without using READ FIFO function? I'm looking for a function like the function of status get queue VI.

    Thank you very much!

    Kind regards

    Tom

    See this KB article

    http://digital.NI.com/public.nsf/allkb/42E85A333767918B862570D800667FD8?OpenDocument

  • Please give me the number of hash MD5 to check the file .iso from win7

    Please give me the number of hash MD5 to check the file in win7 because when I try to install win7 (after dload web) its saying some files are missing if please check the files and restart the installation process. so I need to check the file I downloaded is full or not

    Please send me the file md5 hash as soon as possible

    Windows 7 RC Build 7100 x 86
    File name: 7100.0.090421 - 1700_x86fre_client_en-us_Retail_Ultimate - GRC1CULFRER_EN_DVD.iso
    Size: 2.35 GB
    MD5 Hash: 8867C13330F56A93944BCD46DCD73590

    Windows 7 RC Build 7100 x 64
    File name: 7100.0.090421 - 1700_x64fre_client_en-us_Retail_Ultimate - GRC1CULFRER_EN_DVD.iso
    Size: 3.04 GB
    MD5 Hash: 98341AF35655137966E382C4FEAA282D

  • How to check the version of windows and the number of bits?

    Dear Sir

    As I could not download and watch a video show, I was told to check the version of windows and the number of bits. I remembered the upgrade to version 10 of Windows when you are prompted before. However, when I clicked on 'This PC' to check the C:\ drive, it shows Windows8_OS (C :).  It is quite misleading.  Can I know how to check & confirm the correct version of Windows and where to find the number of bits as well?

    Thank you.

    Looks like you're on windows 10, but after the upgrade is not changed the label of the hard drive.

    Type winver in the run box-press windows key + R box simultaneously.

    If the Windows 10 Build 10XXX State, you're on windows 10.

    Simply right click C: / and select Rename and rename the drive in Windows10OS or what you want.

    As far as the pieces is concerned, the PC this right click > properties and see the following line:

  • How to check the number of servers, a unique summer migrated database?

    Is it possible to check the information of the previous server where the database has been migrated.

    Ajay Vijayan wrote:

    The binaries have been transferred from the old server and grid has been installed in the new ASM migration server.

    Alert log is purged according to police.

    Ajay

    1. logically, it can not be followed from the point of view of database. Since when we migrated to new server we can just copy the data files and take the help of rman and migrate (hope you are aware)

    2. If we are not reset all the newspapers during the process, if we do it due to a problem we knew that the level of incarnation (date/time)

    3 database does not take care of these information

    4. perhaps there is an alternative, you can get it from 'DBA_HIST_DATABASE_INSTANCE '.

    that keeps INSTANCE_NAME and HOST_NAME... .When you database runs from host A for 6 months and then you moved to server 'B '.

    5 to start and next stop he will track this new server (provided during migration if you have made a rebound at this time, then you can have alteast moving day)

    6. IF you are looking for server then in the course of the interview you can bounce while patching so separate hostname is able to follow

    -Note - rest depends on the number of records that he takes for his life

    It may be useful

    -Pavan Kumar N

  • How to check the number of "empty" field

    Hello world

    I describe the situation as a first step:

    • I work with WCC 11.1.1.5
    • I have workflows 5 steps.
    • Users can change the values of the attributes of document at each stage.
    • I managed the attribute is required in each step by rules. The attributes are not defined as ' required value: required ' by attribute definition. It is done by the definition of the rule.


    What I do:

    Check that one attribute (called xInv_SAP_document_line) has been filled in by the user in the third step of the workflow. This attribute is of type 'Integer '.


    What is my problem:

    Whenever the system performs the update of sending it automatically fills the number 0 for all integer attributes.

    When the user fills out a "xDepartment" attribute in the first stage, the system to insert a value of 0 for the attribute 'xInv_SAP_document_line '.

    I'm not able to verify if the user filled in the "xInv_SAP_document_line" attribute in the third step, because the value 0 is already there from the first step. It has no effect if the attribute is 'Required' - it has value = it's OK. But I need a control that the user fills out. Not the system.


    What I tried:

    'Use the default' check the box help doesn´t rule field. It only works for empty values.

    I can change the value of "derived field" checkbox in the second stage. But I'm not able to erase the value - what is the behavior I need.


    Is it possible to remedy this situation?


    Thanks for any advice,

    Mike




    Integer fields, once submitted, will be filled with 0 when the element is submitted and the field is empty.  It's the way integer fields work in Content Server - I've not seen a way to change this behavior.

    If 0 is never going to be a valid value, in the article "side effects" of the rule, add the following code and see if it solves your problem.

    <$if #active.xinv_sap_document_line="=" 0$="">

    <$dpPromote("xInv_SAP_document_line","")$>

    <$endif$>

  • I need to know how to check the serial number of the product on the installed machine?

    I need to know how to check the serial number of the product on the installed machine?

    You can go to Adobe.com and connect to the Adobe ID used to register the program.

    The serial number would be listed under Manage account > Products & Plans

  • How can I check the number of pixels in my image of the camera? [was: Pixels]

    How can I check the number of pixels in my image of the camera?

    Open a file

    Select > all

    Choose the histogram and click in the upper right

    Choose expanded view

    The number of pixels note

  • Our office has 10 licenses for Adobe Acrobat Pro.  One of our computers crashed so we want to deactivate the license and reinstall on a new computer.  How can we check the serial number on Acrobat Pro installed on each computer to determine which series

    Our office has 10 licenses for Adobe Acrobat Pro.  One of our computers crashed so we want to deactivate the license and reinstall on a new computer.  How can we check the serial number on Acrobat Pro installed on each computer to determine what serial number is now unused?  I don't want to die with the computer software

    Hi John,.

    It is not possible to disable the license from one computer crashed or possible to check which serial number has been used on computer because they are encrypted.

    A retail license is good to be installed on 2 machines. I checked your account and found 4 different serial numbers of Acrobat registered for your account.

    It is always suggested to buy a volume license, if you have more than 2 machines instead of buy 4 different serial numbers.

    I checked all the serial numbers entered and you have sufficient activation count remaining to cover all your machines.

    Kind regards

    Rave

  • I ordered the creative cloud Sunday and received a number control but still cannot open any programs. When I check the status of my order online, he says that he can't find it. Is this normal after 3 days?

    I ordered the creative cloud Sunday and received a number control but still cannot open any programs. When I check the status of my order online, he says that he can't find it. Is this normal after 3 days? I tried to ask in a chat instead of the forum window, but no one answered and after 10 minutes, my screen restarted and closed window cat. It seems a bit frustrating not knowing what happened to my order and not being able to communicate with anyone. This habit with Adobe or are they just of technical problems this week?

    Your subscription to cloud appears on your account page?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

    -or by phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Check the number of days in the free trial is left

    Where can I go to see exactly how much Adobe Creative Cloud is remaining days of a free trial of any software?  It is in the creative cloud?  It is somewhere in the software that I have installed the trial of?  Where can I see the number of remaining days?

    Check the installation of your executable file for the program of the trial date.

Maybe you are looking for

  • Wallet not synchronization of credit cards?

    Just got a new iPhone and Apple Watch. The Watch has been synced my iPhone when I added my credit cards. I got the notification on my phone to add the cards to my Apple Watch; However when I clicked it I that said ' year error occurred setting up app

  • iPhone not found in iTunes help...

    Hi everyone so I use iTunes on windows 10.  My computer recognizes my phone but iTunes does not work.  When I ran iTunes Diagnostics it says the following: Connectivity device tests *. iPodService 12.4.0.119 (x 64) is running. iTunesHelper 12.4.0.119

  • FaceTime has no "iPhone case appeal.

    OS X ElCapitan V10.11.3, iMac (end of 2012), iOS iPhone 6s V9.2.1. FaceTime V3.0 (2600). My wife responds to calls from his iPhone on his iMac (end of 2013), almost every day. This feature used to work for me, but I turned off if there is some time b

  • Satellite L300D - how to connect to the WLan?

    I'm not very good with this stuff. I bought this laptop yesterday with Vista & went about it today, but when I went off the wireless switch to, he went to orange, meaning wireless is disabled?And when I click 'connect to' no networks wouldn't come. I

  • HP laptop - 15-af002ur: HP upgrade memory 15-af002ur

    Hello. Impossible to find info on the upgrade of memory for this product HP - 15 - af002ur (memory size cap) and number of locations DDR.