How to split the PHONE NUMBER in the column of database?

Hello - how to split the telephone within the same column number?

Existing column PHONE data

3711943

8744723

8487928

3349262

I want to split the data in the same

371-1943

874-4723

etc...


Is this possible? I need to do this only through SQL query not PL/SQL.



SUBSTR (your_col, 1, 3). » -'|| SUBSTR(your_col,4)

Tags: Database

Similar Questions

  • How to split the screen of my mac book

    How to split the screen of my Macbook?

    There may be a solution on how to split the screen into two (halves) for independent display

    through the use of third-party software options. I haven't tried everything, but have read of some who can work.

    Such a "solution party' appears in the Mac App Store; See the second link to the manufacturer.

    https://iTunes.Apple.com/us/app/split-screen/id453757310?MT=12

    • Split screen - Mac app for windows (approximately $7 USD) display management

    http://www.splitscreenapp.com/

    There may be others, beware of questionable sources, as they may contain others? content.

    This may work on a Mac, not a portable desktop computer:

    • Apple introduced mode split for the apps full screen on a Mac in OS X El Capitan - 9to5Mac.com:

    http://9to5Mac.com/2015/06/08/Mac-split-screen-multitasking/

    In any case...

    Good luck & happy computing!

    under the direction

  • How we split the screen for different horizontal and vertical divisions

    Hello

    How we split the screen for different horizontal and vertical divisions. I can't use panelSplitter because I need fixed screen and not the division which is movable/sliding. I tried inlineframe, but which fails because you cannot use forms, other trees components... :(

    so I would like to know how to do division without panelSplitter.

    Thanks in advance,
    Jyothi

    Hi Jyothi,

    If you set the panelSplitter attribute disabled to true, the delimiter becomes permanent/mobile no.

    
    

    Kind regards
    Amélie Chan

  • How add you a phone number to your Skype contacts?

    How add you a phone number to your Skype contacts?

    In the program of Skype on Windows right click your contact icon, select 'View profile' then in pop up select 'Add a number' then click the checkmark to save.

    On Android click the icon of your contact, and then click the menu Burger at the top right (three points) and select "Edit contact" then 'add a number '.

  • How to list the columns for a view

    Dear experts

    I know how to list the columns in a table. This easy by querying the data USER_TAB_COLUMNS dictionary.

    But my problem is how to issue a query that returns the columns for a view?

    Thanks in advance

    USER_TAB_COLUMNS stores the metadata for both views.

    Select * from user_tab_columns where table_name = 'YOUR_VIEW_NAME"of order of column_id.    -Replace with your view_name (mandatory course)

    See you soon,.

    Manik.

  • How to check the column updated whereby the package or procedure?

    Hi all

    Can someone help me how to check the column updated by which the package or procedure

    A.Mahesh

    Hello.

    You can check what object is a reference to the table of the column:

    Select *.

    of all_dependencies d

    where d.REFERENCED_NAME = '. '

    And you can find all the links to the object source data column:

    Select *.

    of s all_source

    where s.name = "."

    and s.OWNER = '. '

    and s.TYPE = "."

    and as s.TEXT '%%'

  • How to add the column to Adobe flex mxml or actionsctpt mx:DataGrid?

    I have the simple mxml code

    <mx:DataGrid id="DGG"
                
    editable="true">
       
    <mx:dataProvider>
           
    <mx:Object scheduledDate="4/1/2006"/>
       
    </mx:dataProvider>
    </mx:DataGrid>
    <mx:Button id="SetBut"
              
    label="Set Array as Data Provider"
              
    click="SetDP(); AddBut.visible = true;"
              
    x="100.5"
              
    y="164"
              
    width="211"/>
    <mx:Button id="AddBut"
              
    label="Add a column!"
              
    click="AddCol();"
              
    x="100.5"
              
    y="194"
              
    width="211"
              
    visible="false"/>
    <mx:Script>
        <![CDATA[
            import mx.controls.dataGridClasses.DataGridColumn;
            import mx.collections.ArrayCollection;

            [Bindable]
            public var MyAC:ArrayCollection=new ArrayCollection([{scheduledDate: "4/1/2006", homeTeam: "Chester Bucks"}]);

            public function SetDP():void
            {
                DGG.dataProvider=MyAC
            }

            public function AddCol():void
            {
                MyAC.addItem({scheduledDate: "4/5/2007", homeTeam: "Long Valley Hitters", Umpire: "Amanda Hugenkis"});
                DGG.columns.push(new DataGridColumn("Umpire"));
            }
        ]]>
    </mx:Script>

    I want to add lines to my datagrid table how do such thing?

    How to add the column to Adobe flex mxml or actionsctpt mx:DataGrid?

    (You can place this code in a Flash or AIR application - it compiles without error, but will not add any columns =)

    Change this:

    public void SetDP (): void
    {
    DGG.dataProvider = MyAC
    MyAC.addItem ({scheduledDate: "05/04/2007", homeTeam: "long hitters Valley", umpire: "Amanda Hugenkis"});
    }
               
    public void AddCol (): void
    {
    var dgc:DataGridColumn = new DataGridColumn ("Umpire");
    var ca:Array = DGG.columns;
    CA.push (DGC);
    DGG.columns = ca;
    }

    Dany

  • How to change the column ordering the interactive report?

    How to change the column ordering the interactive report?

    Hello

    Run the report as a developer, click on the "wonder wheel", click "Select columns" and reorder your columns in the box 'report '.
    Then click again on the "wonder wheel", click on save report and save the default state.

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

  • How to split the screen with 2 or more apps

    How do I split the screen when I have 2 or more open applications?

    Here are the instructions for use, two Mac apps side by side in split - view Apple Support

  • How to split the screen on 2 monitors?

    I have 2 screens (monitors) and to split the info on the main screen so that I / 2 if poster on the 1 screen and the other half appears on the other screen. How is that done?

    Keep it keys on your keyboard and type P until the desired option is selected (probably the option to extend my display ).

  • How to get the column number

    Hi all,

    I'm sorry to ask this question because I found 2 different answers, tried without result. So before you go crazy, I prefer to ask!

    Thus given mySelection = app.selection [0], how is possible to get the column's selection?

    I tried app.selection [0] .parentTextFrames [0].characters.itemByRange (0, x)

    with x being app.selection [0] .index.

    but then I'm stuck as if I add ".textColumns", I get an error

    I explored the second way using app.selection [0].textColumns.item (1).insertionPoints.item (1), but once I'm stuck again.

    As a beginner I don't understand why there is no simple built-in function to call in order to obtain such a result of base

    Any help would be appreciated

    Thank you

    Ed

    Okay here goes,

    For and only for the linked text frames.

    // For and only for linked text frames.
    // Warning
    // The Good: This will PROBABLY work for you
    // The Bad :THIS IS A REALLY PRIMITIVE METHOD
    // The Ugly: It could fail in COUNTLESS cases
    // Here goes......
    
    var mySelection, textFrame, parentPage, c;
    mySelection = app.selection[0];
    textFrame = mySelection.parentTextFrames[0];
    parentPage = textFrame.parentPage;
    c = 0;
    while(textFrame && textFrame.parentPage === parentPage){
        textFrame = textFrame.previousTextFrame;
        c++;
    }
    
    alert('Column number: ' + c);
    

    Now with regard to the issue of the image columns bound text compared to the blocks of text with multiple columns of text or span. Depends on what you're trying to achieve with your workflow.

    The scripts are around written by me and others who convert multicolumn text executives to related texts related and vice versa.

    If you want to know which is more appropriate you can use with your workflow, then I suggest the regular ID forum.

    HTH

    Trevor

  • How to split the file by using the utl package in oracle.

    Hi all

    I want ot create several files with utl_file.

    Earlier, I'm writing itng cursor files together in a single file.

    But now we must divide it into several files when the cursor recrds exceeded 10000.

    So the file will become two if it crosses 10000 records Amend now

    If a cursor has 30000 records then I hould create 3 files.

    Here's how I wrote the simple logic to write the entire records from a single table.

    UTL_FILE. PUTF (File1, head);

    UTL_FILE.new_line (file1);

    FOR vcur_torico_fetch IN cur_torico_fetch

    LOOP

    stmt: = "

    || Chr (9) | »

    || Chr (9) | vcur_torico_fetch. Application_classification

    || Chr (9) | »

    || Chr (9) | »

    || Chr (9) | vcur_torico_fetch. MY_COMP_CODE

    || Chr (9) | vcur_torico_fetch. OU_org_code;

    UTL_FILE. PUTF (File1, stmt);

    UTL_FILE.new_line (file1);

    END LOOP;

    UTL_FILE.fclose (file1);

    Kindly let me know the logic to do this.

    Best regards

    Try this. I used object and I write 33333 lines. It will be writern in 4 files with lines of 10000, 10000, 10000 and 3333.

    SQL> declare  2    l_file         utl_file.file_type   default NULL;  3    l_row_per_file integer              default 10000;  4    l_file_name    varchar2(100)        default 'ALL_OBJECT_{FILENO}.CSV';  5    l_file_dir     varchar2(100)        default 'KARDIR';  6    l_file_no      integer              default 0;  7  begin  8    for i in (  9                select object_id 10                     , object_name 11                     , ceil(rownum/l_row_per_file) file_no 12                  from all_objects 13                 where rownum <= 33333 14             ) 15    loop 16        if l_file_no != i.file_no 17        then 18            if utl_file.is_open(l_file) 19            then 20               utl_file.fclose(l_file); 21            end if; 22 23            l_file_no := i.file_no; 24            l_file    := utl_file.fopen 25                         ( 26                              l_file_dir 27                            , replace(l_file_name, '{FILENO}', to_char(l_file_no, 'fm099999')) 28                            , 'w' 29                         ); 30        end if; 31 32        utl_file.put_line(l_file, i.object_id || ',' || i.object_name); 33     end loop; 34 35     if utl_file.is_open(l_file) 36     then 37        utl_file.fclose(l_file); 38     end if; 39  end; 40  /
    
    PL/SQL procedure successfully completed.
    
    SQL>
    

    In the unix box, check the file...

    % ls - lrt ALL_OBJECT knani *. CSV | AWK '{print $9} ' | XARGS wc-l
    10000 ALL_OBJECT_000001.CSV
    10000 ALL_OBJECT_000002.CSV
    10000 ALL_OBJECT_000003.CSV
    3333 ALL_OBJECT_000004.CSV
    33333 total
    knani %

  • How a String get phone number?

    Hi all

    How a phone to get the string numbers. In this "Emp_Details" column, we have

    Phone number, address and Date. How we can get the only phone number.

    Example:

    Select Emp_Details from Table_name.

    Values of Emp_Details:

    8183917972

    13/01/2015

    AAA

    6617144613



    I need to get only the phone numbers. As

    Emp_Details:

    8183917972

    6617144613


    Please help me as soon as possible.

    Hello

    To find the rows where emp_details contains exactly 10 digits (and nothing else), you can use

    SELECT *- or what

    Table_name FROM

    WHERE the TRANSLATION (emp_details

    '123456789 '.

    ', ' 000000000 '.

    ) = "0000000000"

    ;

    I hope that answers your question.

    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.

    Point where the above query is to produce erroneous results, and explain, using specific examples, how you get the right results from data provided in these places.

    If you change the query at all, post your modified version.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    Check out the Forum FAQ: Re: 2. How can I ask a question on the forums?

  • How to validate a phone number?

    I have a TextInput control to contain a phone number.  Unless one of the other controls is filled in, it may be empty.  I thought I have to invoke the validator in this case in Actionscript.  But it doesn't seem to work.

    Control:

    < DHSCntl:rightLabel id = "dtPhone".
    label = "Res. "Prov. Phone:
    labelWidth = "140" >
    < mx:TextInput id = "RECPROVIDERPHONE".
    maxChars = "50".
    tabIndex = "37".
    change = "dtFormUpdated ()" / >
    < / DHSCntl:rightLabel >

    The validator:

    < mx:PhoneNumberValidator id = "dtRecProviderPhoneVal".
    source = "{compDT.RECPROVIDERPHONE}" "
    property = "text".
    required = "false".
    "allowedFormatChars ="(.)"
    invalidCharError = "{phoneCharWarning}".
    wrongLengthError = "{phoneLengthWarning}" / >

    Code:

    If (! compDT.RECPROVIDERPHONE.validateNow ())
    {
    var phoneErr:String = "format phone provider is not valid."
    ERR += "\n";
    ERR += phoneErr;
    ERR += "\n";
    }

    Even with a valid phone number "(217) 555-1212", it returns that it is invalid.

    http://www.Adobe.com/devnet/flex/videotraining.html

    http://www.Adobe.com/devnet/flex/videotraining/_jcr_content/bodycontent1/modal_33.content. HTML

    It said invalid characters? you add the space character to your list of allowed characters.

    http://ns.Adobe.com/MXML/2009.
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" >
       
       
            Import mx.events.ValidationResultEvent;
    protected function clickHandler (): void
    {
    var event: ValidationResultEvent = phoneValidator.validate ();
    If (event.type is ValidationResultEvent.VALID)
    {
                       
    }
    }
    ]]>
       

       
       
           
    source = "{Numerotelephone}".
    allowedFormatChars = "(.)- "
    property = "text".
    required = "false".
    triggerEvent ="" / >
                                    
       

       
       
           
       

       

       
       
       

  • How to hold a phone number in a database

    What is the proper way to hold a phone number in a database and what SQL data type would you use?

    Whenever I had to collect phone numbers, I'd do it:

    (2) create three separate fields for the user to enter the hidden form to take only digital entries using CFINPUT masking function:
    (a) country_code (2 digits max, by default set to '1' for the United States of America)
    (b) city_code (4 digits max, zero stripping any leader before inserting it into the database)
    (c) numero_tel (10 digits max)

    (3) in the database:
    (a) three tables: tel_country_code, tel_city_code, numero_tel
    (b) the numero_tel has a FK to the tel_city_code
    (c) the tel_city_code has a FK to tel_country_code

    I hope this helps.

Maybe you are looking for