How to remove the. (points) if they exist using sql

Hi friends,
I have a string where I want to cut it and take only the value before. (DOT)... If the point is not here, I have to take the whole string

to ex accountant. matches the string then I should get that as an accountant and also check that he should only examine the last point in the chain and give the
string before the.
should give me as Senior.Accountant as Senior.Accountant.
If the string ends on a point, it does not matter


Help, please
Thank you

Perhaps this.

SQL> with t
  2  as
  3  (
  4   select 'Accountant.' string from dual union all
  5   select 'Senior.Accountant.' from dual
  6  )
  7  select string, rtrim(string,'.') from t;

STRING             RTRIM(STRING,'.')
------------------ ------------------
Accountant.        Accountant
Senior.Accountant. Senior.Accountant

Concerning

REDA

Tags: Database

Similar Questions

  • How to remove the support contact at screenshot using the "home" button

    guys, please help, how to remove the support contact at screenshot using the "home" button? I use 6 s ios 9.2, but when I take screenshot with the menu help key, the help key disappear on my photo, but the problem is, I want to take screenshot with my home button, please help... Thank you

    What turned the problem into a screen with the home button? Quickly, you press the power off button and home together and release - if the sounds are enabled - you should hear the camera shutter sound and have the capture in your app screen shots. The help key is not displayed

  • How to remove the Tables of HFM Application in SQL

    Hi gurus

    1. how to remove the HFM Application Tables in SQL?
    Its manual removal but each application having 120-150 tables? How to do this in one fell swoop?

    I deleted some applications using the workspace / shared services, but still its display under HFM under the Tables of SQL Server.

    Please help me

    concerning
    Smilee

    Hi Smilee,

    1. If the application opens in the web management interface, go to Taskflows management module and make sure that no taskflows exist yet for this application. Remove any existing taskflows.

    2. If demand exists in Shared Services, right-click on the demand for Shared Services and try to remove the application from here

    3. stop Hyperion Shared Services and all the Windows of financial management processes and backups of the relational database of the two patterns.

    4. check the relational database of Hyperion Shared Services repository, in the "ces_apps" table and make sure that there are no lines containing the appname "EXAMPLE." If the line still exists you should enlist the help of Oracle Global Support software to clean Hyperion Shared Services before proceeding.

    5. it is possible to remove all content removed from the relational database of financial management application. Must be very careful when handling manually tables database that permanent damage can be done at the application and other applications if the wrong content is removed.

    (a) first remove all tables, indexes, sequences, and the package objects that begin with the name of the application
    (b) remove all tables starting HSV_appname_xxxxxx
    (c) remove all rows in tables referring to demand HSX_CLUSTER_xxxxx.
    (d) delete all the HSV_ACTIVITY_KILL_USERS, HSV_ACTIVITY_NO_ACCESS, HSV_ACTIVITY_SESSIONS and HSV_ACTIVITY_USERS and HSV_USERS_ON_SYSTEM lines that refer to the name of the application.
    (d) remove the line containing the name of the application from the HSX_DATASOURCES table.

    6. the next time that all Hyperion services are restarted, the application must be removed safely from Windows client.

    You can contact your DBA to write a query on how to remove it.

    Hope this helps,

    Thank you
    Charles Babu J

  • How to remove the meeting via API to use Adobe Connect 8 Web Services

    Support using Adobe Connect 8 Web Services API 'Meetings to create' to create an Acrobat Connect Pro meeting.

    But I don't find not "Delete meeting" API similar to delete the meeting, could you tell me how to remove the meeting via API.

    Thank you!

    You must have used sco - create to create the meeting. To remove a meeting, use sco - remove API call.

    Find its documentation here.

  • How to treat the points when they are just above the other?

    I was fiddling around with the trace function and create outlines of text. For some reason any sometimes I'll end with two points that overlap each other and no way to get rid of one or the other. How the hell can I clean this up? I know I can do something like simplify to reduce points on an object, but it goes beyond the necessary adjustment to remove one troubling point.

    Even when you zoom in as far as possible I can't to select one point on the other because they are in the same place.

    Also if you want to do this manually the negative of anchor point tool, which is part of the toolset of feather pen icon with the sign less will allow you to remove the top. Also, if you click on the anchor point with the direct Selection tool, and then press DELETE it should remove just an anchor.

    But Concatenate could do this as a difficulty.

    you will find it useful.

  • How to remove the label of xml data in sql

    with a as
    (select '<?xml version="1.0"?>
    <ROWSET>
      <DEPT>
        <DEPTNO>10</DEPTNO>
        <DNAME>ACCOUNTING</DNAME>
        <LOC>NEW YORK</LOC>
        <EMP_LIST>
          <EMP_ROW>
            <EMPNO>7782</EMPNO>
            <ENAME>CLARK</ENAME>
            <JOB>MANAGER</JOB>
            <MGR>7839</MGR>
            <HIREDATE>09-JUN-1981 00:00:00</HIREDATE>
            <SAL>2450</SAL>
          </EMP_ROW>
        </EMP_LIST>
      </DEPT>
    </ROWSET>' from dual)
    select * from a;
    


    I want the output after removing the same < HIREDATE > tag

    <?xml version="1.0"?>
    <ROWSET>
      <DEPT>
        <DEPTNO>10</DEPTNO>
        <DNAME>ACCOUNTING</DNAME>
        <LOC>NEW YORK</LOC>
        <EMP_LIST>
          <EMP_ROW>
            <EMPNO>7782</EMPNO>
            <ENAME>CLARK</ENAME>
            <JOB>MANAGER</JOB>
            <MGR>7839</MGR>       
            <SAL>2450</SAL>
          </EMP_ROW>
        </EMP_LIST>
      </DEPT>
    </ROWSET>
    

    Please help me

    SQL> with a as (
      2  select '
      3  
      4    
      5      10
      6      ACCOUNTING
      7      NEW YORK
      8      
      9        
     10          7782
     11          CLARK
     12          MANAGER
     13          7839
     14          09-JUN-1981 00:00:00
     15          2450
     16        
     17      
     18    
     19  ' xmlcontent
     20  from dual
     21  )
     22  select xmlserialize(document
     23           xmlquery(
     24             'copy $d := .
     25              modify delete node $d/ROWSET/DEPT/EMP_LIST/EMP_ROW/HIREDATE
     26              return $d'
     27             passing xmlparse(document a.xmlcontent)
     28             returning content
     29           )
     30           indent
     31         ) as xmlcontent
     32  from a ;
    
    XMLCONTENT
    --------------------------------------------------------------------------------
    
    
      
        10
        ACCOUNTING
        NEW YORK
        
          
            7782
            CLARK
            MANAGER
            7839
            2450
          
        
      
    
    
  • How to remove the automatic result of Tuning of SQL

    Hello

    I recreated with index organized tables and dropped and added several indexes on the database tests. I am running performance tests, but I want to drop the "automatic SQL Tuning result" so that the results are not be confused with the old structure. How can I do this in Enterprise Manager or SQL?

    Best regards and thank you.

    Published by: kamilp on Sep 19, 2012 22:42

    You can use:

    exec DBMS_SQLTUNE.drop_tuning_task (TaskName-online "Name");

    Also read this useful Document:

    http://docs.Oracle.com/CD/B19306_01/server.102/b14211/sql_tune.htm
    http://www.Oracle-base.com/articles/10G/automatic-SQL-Tuning-10G.php

  • How to remove the point of my array

    Hi, I have a table with the elements. now, I want to remove all elements in the array. How can it be possible?

    It depends on what you mean by compensation. The delete operator sets an array to undefined element, the length of the array remains unchanged.

    for (var i: int = 0; i<=  yourarray.length();="">

    {

    delete [i] yourArray;

    }

  • How to remove the message "... now uses the full screen"?

    When you switch to full-screen playing a video, the message appears that the site now uses the full screen, which is often boring because it blocks the part of the screen for a few seconds. How this message can be deleted?

    In Firefox 40 and 41, you can probably remove this notification by setting full-screen - api .approval-required to false.

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

  • How to remove the lid of the scanner on the Photosmart 5520?

    Manual to insist that the lid of the scanner of the Photosmart 5520 (model #CX042A) can be removed.

    When I try however, it does seem it Peel, as if a force is applied over it feels like it will break.

    I contacted HP technical support per session chat, and after about half an hour the technician finally dropped and referred me to the store where I bought it.  I went to Office Max, where I bought and asked them.  They were also puzzled with a right to the camera in front of us, they could not figure out how to remove the cover.  They were also afraid to break if they tried to remove it.

    Are there instructions indicating how to remove it so that the lid or the hinge is not destroyed in the process?

    The manual is not wrong.  You can remove the cover on a 5110.  I was just trying to do the right way the first time.  This post told me how to do it.  As far as I know, the only things that have changed since the 5510-5520 are the firmware and internal control.  The shell of the printer must be roughly the same.

  • I lost some of the folders in the library.  They exist in the Explorer solutions, but somehow got removed from the library.  I can bring them back in but I'm afraid it will happen again in LR.  Please help me understand what happened and how can I prevent

    I lost some of the folders in the library.  They exist in the Explorer solutions, but somehow got removed from the library.  I can bring them back in but I'm afraid it will happen again in LR.  Please help me understand what happened and how can I prevent the recurrence. I use Win7.

    A few possibilities:

    1 > you click with the right button on the files and chose to remove them from Lightroom.

    2 > you have created a new catalog, and records that are not part of another catalog.

    Each of these scenarios seem like they could be a possibility?

  • In trying to move the photos to the key, I've accidentally moved into my office - they kept sort of duplication and there is 7 000 or them - how to remove the easily?

    Mac Pro 10.11.4 17 "

    In trying to move photos to the key, accidentlaly I moved into my office - they kept sort of duplication and there is 7 000 or them - how to remove the easily? I've been

    Open your desktop folder in the Finder, then type 'image' in the search field in the Finder window toolbar and value of the research for "kind: Image".

    Define the scope of the search for "Desktop".

    Now, you can select all items in the window by entering ⌘A, then drag the photos in your Inbox.

    Check a second time, that the scope of the research really is 'Office' and not 'this computer '.

  • How to remove the anchor points of drop shadow?

    When I tried to align with another object, it always aligns in the shade.

    Please me on this on how to do to remove the point/transformation of the anchor points.

    IMG_1728.JPG

    In preferences, uncheck "use Preview limits".

  • How to remove the existing PDF file password?

    I use Acrobat 6.0 and would like to know how to remove the password for existing PDF file.

    When I try to open the PDF file and save under a different name, it wouldn't work.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    File > properties. Then under security change security None method; Enter the password when you are prompted. Then save under.

  • How to remove the network profile

    Original title: Double Internet access

    I have reproduced the internet access points. My network is one, it is not named or protected, and the other is called another network without any protection. Other users in households show only one when they go to access, but it's the bad access. They show only internet access. There are seven in our region, but only 3 see the same info and signal excellent. How can I remove the 2 bad ones?  Don't know what Internet number I use.

    Hello

    This problem can occur if the wireless network is available in your particular range or coverage area.

    Please see the following link on how to remove the network not searched profile:

    To remove a wireless network connection

    http://TechNet.Microsoft.com/en-us/library/gg252588 (v = ws.10) .aspx

    You can also check the suggestions provided in the following link:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-networking/how-can-i-remove-old-network-connections/679baf9b-0303-4B2C-AF51-92981477a43a

    Important: the above article contains steps that tell you how to change the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.

    For more information about how to back up and restore the registry, follow these steps from the following link: http://support.microsoft.com/kb/322756/en-us

    Please answer us on the State of the question to help you further.

Maybe you are looking for

  • Validation ERROR: C:\Program Files (x 86) \Mozilla Firefox\AccessibleMarshal.dll and do not install

    I downloaded and extracted the latest ESR (Version 10.0.7) file this morning. Run the SETUP program. EXE with no command line switch fails to install Firefox. SAT Setup log indicates that the installation took a second full run. In the Setup log, I s

  • Tecra A6 does not start with battery only

    Hi allI'm having a strange problem with a Tecra A6 I picked up recently at the refurb because it does not start with a battery only: it starts only when / sector is also connected, but eventually DΘmarrer on battery alone (and works fine) with the po

  • How can I connect my Satellite L510 (no HDMI) to SMART TV

    Hi all I'm not very tech savy and have recently bought a smart tv. I'm trying to connect my computer to the tv. However, I don't seem to have a port hdmi on my computer. After reading the manual, I seem to have a vga port. Counsel on how to connect t

  • Expansion - ISO, ISO 50, good or bad?

    I am relatively new to DSLRs, with a little more than 2 years under my belt, but not SLR photography.  I'm still learning the nuances that digital photography brings to the table, compared to my world of film 30 years ago.  Let's say I took a year of

  • Where can I find my IP address?

    Where should I go on my computer to find the I.P. address?