custom change data format

Hello

Can we change the format of data in the table.

Data from the orginal:

Akamai Technologies, Inc.
AllConnect.com Inc.
Allegis Group, Inc..
Alloy Ventures, Inc.
etc...

I want to this format:

Akamai Technologies *.
AllConnect *.
Allegis Group *.
Alloy Ventures *.
etc...

could u please give me a good solution.
SYS@orcl> select substr(col1,1,
  2  DECODE(instr(col1,','),0,length(col1),instr(col1,',')-1))||'*'
  3  from demo;

SUBSTR(COL1,1,DECODE(INSTR(COL1,','),0,LENGTH(COL1),INSTR(COL1,',')-1))||'*'
--------------------------------------------------------------------------------
Akamai Technologies*
AllConnect.com*
Allegis Group*
Recall Corporation*

Enrique

PS. If all the names end in 'Inc', but some of them contain ',' and others not, then:

SYS@orcl> select substr(col1,1,
  2  DECODE(instr(col1,','),0,length(col1)-4,instr(col1,',')-1))||'*'
  3  from demo;

SUBSTR(COL1,1,DECODE(INSTR(COL1,','),0,LENGTH(COL1)-4,INSTR(COL1,',')-1))||'*'
--------------------------------------------------------------------------------
Akamai Technologies*
AllConnect.com*
Allegis Group*
Health Research*

Tags: Database

Similar Questions

  • BlackBerry Smartphones changing date format

    Is it possible to change the date format that is displayed in mmmdd to DDMMYYYY? I can change the time from 12 hours to 24 hours, so it seems that this should be possible.

    Hi and welcome to the forums!

    I worked with a user of the Netherlands who wanted the same option as it was good for his country.

    There isn't a way to do it. We tried the calendar, time, even time zones.

    Sorry,

    Don't forget to adjust your thread. Put the check mark in the green box containing your answer! Thank you 

  • Change date format...?

    Hya, I have a Java Swing application with which I work with an Oracle DB using SELECT (s, s) INSERT...
    The problem is that at some point, the application automatically inserts in the comic book a date field that is 14/03/2009 (dd-mm-yyyy), but in the comic book, the default date format: DD-MON-RR (15 January 09)

    Please inform me how can I change the default DB date format... or in the INSERT command, what should I put...

    Thank you!

    Insert into x values (TO_DATE (January 15, 2010 ',' DD-MM-RR'));?

    SQL > select to_date (sysdate, 'DD-MM-RR') of double;

    TO_DATE (S
    ---------
    JANUARY 15, 10

    SQL >

  • ThinApp change date format

    Hello

    I have a strange problem, he's looking for a few days now.

    I install the software accounting and after installation, I see that the current date in the program is DD/MM/YY in the bottom of the program, the current date is displayed 04/10/14.

    When I run my thinapp (do not clean to do the test) on the same generation (just uninstall based provider version) date format is DD/MM/YY.

    I have no idea where to look, someone at - it an idea?

    He finds...

    the localidentifier had a setting wrong in my package.ini... duhhh

  • Change date format is displayed in the email

    I use the following script to customize the layout of a form e-mail:

    var oDoc = event.target;

    oDoc.mailDoc ({}

    bUI: true,

    cTo : " [email protected] ", "

    bassujetti: "new form of CCR presented on ' + CurrentDate.rawValue + 'by' + teamLead.rawValue,.

    CMSG: teamLead.rawValue + "has submitted a new form of application for review of a change." + "" \nPlease review and complete section of the assessment of the Impact and if it is approved, submit to the Manager more approval.\n\nREQID: "+ REQID.rawValue +" \nDue Date: "" + dueDate.rawValue + "\nPriority:"+ priority.rawValue

    });

    It works very well and formats the email as expected, the only problem I have, it's how the date is displayed in the email. The CurrentDate.rawValue in the subject line shows how I want that he, for example, 02/17/15, but the dueDate.rawValue displays in 2015-02-17, even if the parameter of model in the mm/dd/yy paper and appears correctly in the form itself. No idea why the date changes its display model during the generation of the e-mail and how to fix it?

    Hello

    I dunno if that could cause a problem, but the two fields have a display and change the model?

    Sometimes, an error is caused because there is no reason to alter date fields...

    Otherwise, you might also have the view model you want to view in the mail for the two fields and have the formattedValue instead of the rawValue

    Hope this helps

  • How to change the date format in OBIEE

    Hello

    I have a need to change the column to a column of varchar by OBIEE...

    The date column stores the data in the format "YYYY/MM/DD", I need to change that for a column of varchar with this format "YYYYMM"...

    Since I'm pointing directly to the transactional database, I can't make changes to the database level, so I have to do in OBIEE layer, of the ideas of how this could be done?

    Thanks in advance!

    Hi user,

    Reference: http://varanasisaichand.blogspot.com/2010/01/how-to-change-data-format-to-our-custom.html

    http://varanasisaichand.blogspot.com/2010/05/evaluate-function.html

    Thank you
    Saichand.v

  • How to change the date format in the United States to the United Kingdom

    my laptop date format changed to English WE that is dd/mm/yyyy. I tried to change it to English UK that is DD/MM/YYYY, but it does not change.

    I would appreciate if I could help out the English American date format and change date format English UK as all my accounts work stayed in waiting for the last week.

    1. Right click on the clock in the task bar, then choose "Adjust Date/time".
    2. Click Change Date and time...
    3. Click on change the calendar settings

  • Change the format of the OPA Web determination effective date

    Hi all

    We tried to change the format of the date of entry in the user Web interface of OPA determination. Currently, with installation by default the format of the date is DD/MM/YYYY. We want to change this entry to YYYY-MM-DD format.

    Can we specify our format of the custom with the locale entry date?
    Please let us know if you have any suggestions how this can be configured using the OPM.


    Thank you and best regards,
    Suchitta

    Edited by: Suchitta Bhattacharya on June 30, 2011 02:58

    Hello.

    You can change the format of date of entry by adding the property "entry-date-formats" in the application.properties file in the Configuration section of the web analyses.

    If you need to change the input format to support multiple locales, you can create multiple .. Properties files

    For more information, see the section Files of Configuration Web determinations in the Oracle Developer Guide political Atuomation (online at http://download.oracle.com/docs/html/E20841_01/toc.htm). It would be simple search 'record - date formats.

  • How to advocate for regional change of short date format

    This is something relatively trivial but annoying all the same, but I don't know where to go to advocate for change.

    Have just updated for Sierra and one of the first things I notice is the addition of a point at the end of the month in short date format, i.e. 'September 19, 2016'.

    "In Australia, as in the United Kingdom, the standard must not use this period - it should be just'19 Sep 2016", and in the past, that's how it appeared in OSX for the Australia. Don't know why the change.

    This abbreviation is not replaceable by the user, so where can I go to provide appropriate feedback and I hope to have this problem on the track?

    A solution is to make my default language and region of the United Kingdom, but do not know if there is a price to pay for it.

    You can provide feedback to Apple asking them to change it:

    www.Apple.com/Feedback

  • How do I change the date format in the section of the United States to the United Kingdom

    As in the question.

    Hello

    I had a glance in this and have found that Thunderbird uses the date format of your computer system. If you change it, it should be reflected in Thunderbird.

    I hope this helps, but if not, please come back here and we can look at another solution for you.

  • Can I change the date format day/United States (month day year) in the United Kingdom (date month year)?

    When I consult databases via Firefox, the format of date/day is set at: day, month, year (AMERICAN style), while I need, day, month, year, I work in the United Kingdom and the 'bad' format is VERY confusing and could lead to errors and mistakes. IE has that format, but I don't want to return to using that.

    You use the English (United States) version of Firefox ESR 24.3.0. You can download the English version of (British) below:

    1. under Options - content - language, make sure that English/United Kingdom [en-us] is located at the top of the list.

    2. in the Windows Control Panel category, region and language, make sure that the short Date is set at your convenience.

    You can check the date and time at the library of Firefox, bookmarks category format. Press Ctrl + Shift + B to open it, and then note the dates in the added to the right column.

  • Change date yyyy-mm-dd format

    I have a few dates currently shaped like "2016 on 20 may, Friday. I would like to change the date format '2016-05-20. How can I do this for 200 cells at once? I tried to select cells and going Inspector-> cell-> data-> Date and time Format, but after choosing my date format, nothing changes. Help?

    I would also like the bar command from menu Insert-> Date & time to use the yyyy-mm-dd format by default, so I don't have to reformat the date every time I insert it.

    ffiti wrote:

    I have a few dates currently shaped like "2016 on 20 may, Friday. I would like to change the date format '2016-05-20.

    The dates are in format "2016 on 20 may, Friday" left-aligned or aligned right in the cells?

    Aligned to the right would mean that numbers are grateful as the true date-time.  Left-aligned, it would mean that they are text.

    If they are for the most part lined up right with some left-aligned, then try returning those aligned to the left.

    If they are all aligned to the left, then a script can be an effective way to convert them to '2016-05-20.

    SG

  • I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not display in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not appear in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    You must save the spreadsheet containing the new date as a model format and use this custom template for each new spreadsheet where you want that this date format personalized at your disposal.

  • change the date format

    I want to change the format of the date in the top bar of the screen.

    The current format is:

    Wed 11:53

    I want to change it to:

    Saturday, December 5, 2015 11:53

    In other words, I want to register the date, including the year.

    Any suggestions?

    Go to System Preferences / Date & Time; then on the clock tab. There are 2 checkboxes for only the Date and day. Check both.

  • How can I change the data format of the digital display of the digital meter?

    I created a screen that uses digital counters to display data.  Each meter has its visible digital display so that the user can see the level accurately.  I have changed the format of the data from the meter to 2 digits of precision and want to display to have the same format, but there seems to be no way to do it.  The digital display is locked to 6 significant figures, which will be confusing for my users.  I know that this was possible in previous versions of LabVIEW, but was somehow lost to 8.6.1 and 2009.

    I am aware that I could do some "work-arounds" with channels or replacing the digital screens with digital indicators, but it is not acceptable.  How can I change the properties of digital signage?

    Hi AEI_JR,

    on the Properties dialog box, when you set the display format of the counter, you will find a switch to choose between 'Digital' (the default) and "digital display"...

Maybe you are looking for