You can search a pattern and format the result.
HelloI seek a function that search sequences and formats the output 1-way.
I tried to do this with regular expressions, but could not succeed.
My look of entry (projects codes) like this: EL10000, E10010RR, E10020ER.
Project codes get a different format in the new year:
EL10000 becomes 10000L 009 or EL patternwise ~ becomes ~ L009 where ~ is a number (10)
E ~ RR becomes ~ R009 where ~ is a number (10)
E ~ ER becomes ~ SBC9 where ~ is a number (10)
Is this possible with regexp_replace in 1 statement or just need I build a function?
Thanks in advance
Auke Quist
There is probably a better way...
with x as
(select 'EL10000' proj from dual union all
select 'E10010RR' from dual union all
select 'E10020ER' from dual
)
-- End of Sample data
select proj
, case
when proj like 'EL%'
then substr (proj, 3)||'L009'
when proj like 'E%RR'
then regexp_substr (proj, '[[:digit:]]+')||'R009'
when proj like 'E%ER'
then regexp_substr (proj, '[[:digit:]]+')||'SBC9'
end new_proj
from x
Tags: Database
Similar Questions
-
You can use 7 Captivate to send the results of the quiz managers?
I create several trivia MC very basic for a small training audience. Their managers would like to be notified by e-mail, if the students passes/a failed the test. Is this possible with Captivate 7?
Welcome to the forum,
E-mail is no longer included because it was not reliable at all.
You can take a look at this widget by Jim Leichliter: http://captivatedev.com/2012/11/12/adobe-captivate-6-x-widget-google-lms-with-email-report ing-2 /
It is also possible if you are familiar with JavaScript to create such a solution.
Lilybiri
-
Date arithmetic: how to format the result to hh24:mi:ss then subtract 2 dates
Hello
I need to subtract two dates and formatting the result in the hh24:mi:ss format.
for example
Select to_number (to_date ('03.08.2009 08:10:30 ',' JJ.)) MM YYYY HH24:MI:SS')-to_date ('03.08.2009 08:06:52 ',' JJ.) MM YYYY HH24:MI:SS')) * 1440 as DiffDate
of the double
DiffDate
------------------------------------------------------------------------
3,63333333333333333333333333333333333312
Multiplication with 1440 returns the result in a few minutes. But I want to format the result (3,63333) in the hh24:mi:ss format. Is there an easy way to convert
the result of number in the date format?
Any help will be appreciated...
Rgds
JHHello
Subtracting two DATEs always results in a NUMBER.
You can use the NUMTODSINTERVAL function to convert the NUMBER into a string more or less like the results you want:NUMTODSINTERVAL (to_date('03.08.2009 08:10:30', 'DD.MM.YYYY HH24:MI:SS') - to_date('03.08.2009 08:06:52', 'DD.MM.YYYY HH24:MI:SS') , 'DAY' )
Using SUBSTR and perhaps other string manipulation functions, turn this into exacltly what you want:
SELECT LTRIM ( SUBSTR ( NUMTODSINTERVAL ( TO_DATE ( '03.08.2009 08:10:30' , 'DD.MM.YYYY HH24:MI:SS' ) - TO_DATE ( '03.08.2009 08:06:52' , 'DD.MM.YYYY HH24:MI:SS' ) , 'DAY' ) , 2 , 18 ) , '0' ) AS hms_dif FROM dual;
Results:
HMS_DIF --------- 00:03:38
-
You can search for your personal library with Siri on the Apple TV and if so, how?
You can search for your personal library with Siri on the Apple TV and if so, how?
No, and it's a real shame...
-
original title: history of Windows
In an earlier version of windows, there was a file, you can click on that and it will tell you the recent history of files, by doc, etc. that have been read on your computer. Does anyone know if the window Vista had a folder\file that you can click on show the most recent programs, files, doc, etc. to which it acceded on your computer? Thanks in advance!
You can see in the start menu, but if it of NOT there right click on menu start-> go to temptation and check the option to retrieve.
-
on the main drive for the computer, how did you partion and format the rest of the hard drive
My main drive in the computer is 250 GB, I have a primary partition as 104 GB. How to partition and format the remaining storage space? Thank you very much
In disk management, IMO, however, the drive is too small for multiple partitions, better single gain, the C: drive, of the maximum size available
-
Original title: temporary profile
I was wondering if anyone can help... I have a compaq laptop, windows 8 and the last few times ive turned on n signed in its took much longer than usual and connect to a temporary profile where it seems that everything I had there before such as files and photos have already disappeared. But it then opens with a message saying something along the lines of. . "You have been logged on with a temporary profile, in this profile, you can access saved files and any new tjing created or added to this profile will not be saved" does anyone know how solve this...
Hi Lucie,.
Activation of the built-in Administrator account can help get the problem solved.
Perform the steps suggested by Pinaki displayed from the link below and see if it helps.
Answer please if you have any questions.
-
Will never be an update where you can erase a background object of an image without clear photo behind the object and have the result as if the object was not always on the picture in the first place.
I guess this feature without doubt not will be part of Lightroom because of the non-destructive nature publishing. Is that programs like Photoshop are for. But I don't speak for Adobe, because I do not work for them, and I did not all understand what are their plans for the future.
-
Muse is ridiculed among web developers. all the forum questions and answers you can point me to further explore the question/answer away?
Try it for yourself and decide!
-
method to launch FxV search and display the results in the dashboard FMS?
Hello
is there a way to interact with the SGF FxV? What I would do, it is to be able to click on a button in a FMS dashboard and have this trigger a search specific in the FxV and show the results here? For example, if you have the results for purchases in the FMS but then wanted to show the details of the session for the last 4 hours, showed the results of the session in the lower part of the dashboard FMS?
It may take much, but it would be sweet. What is shown below could be in the lower part of the dashboard FMS...
If I remember correctly, the GEO cartridge has the functionality you're looking for. Its been a while but I me remember we would sometimes change the parameters of the url. You can conduct a search hit or per session in an iframe.
David Mendoza
Foglight Consultant
-
I would like to build a drag 'n drop interface and have the results sent to my email in PDF format. Is this possible?
Captivate is not really designed to do what you want in this forum. It is more targeted to allow a user to perform an assessment and then follow whether or not they were here. So it has really set up to send information in a format that the LMS will understand and interpret as Pass/CNET and what the score was.
You really need something more flexible than that. So I think you would need to involve a programmer and have the solution custom made. From my experience, whenever you try to dismiss what Captivate, it was designed to do and you need to involve the other professionals, you can kiss thousands of dollars goodbye before you have a viable solution.
-
Once an unapproved site is added as an exception, how can I go back and delete the exception later?
Thank you, Jefferson. You addressed the issue beautifully and delightfully complete.
I found and deleted the server where I got the exception.
"In the future, I suggest, by making an Exception, uncheck the box that adds a permanent exception. In this way, when you exit Firefox, the exception is removed automatically. »
AHA. It's very good to know. I missed it when granting the exception today.
The exception I gave (and now deleted) today wasn't really a risky site. I know the owner. Just a little problem in their relationship.
Thanks again. And thanks Toddy... I did not say clearly what type of exception.
-
my laptop is 93.1% full so its quite slow work... I was on a website and I tried to click right (I needed to copy something) and the computer was slow, it didn't work. (already happened). so I tried a few times right click and before I new it this line where you can see your bookmarks (and other stuff) had disappeared. ! I tried right click again to see if I could get back, but it did not work. then I tried to turn off the computer and it still does not work. How can I get that back? and if I get it back, all my favorites will be gone?
Versions of Firefox 3.6 + have a feature to allow the user to hide the Menu bar.
Press the Alt key to temporarily show the Menu bar, then open view > toolbars and select menu bar, so it has a check mark.
The F10 can also be used on most PCs to temporarily reveal the menu bar. -
You can access your itunes library on the apple tv?
You can access your itunes library on the apple tv? If so, what generation?
Second generation and later the Apple TV can access iTunes libraries that exist on a computer on the same network, they are through home sharing.
Use home sharing to share content with other devices - Apple Support iTunes
However, this is not related to music from Apple.
If you want to access music from Apple's music subscription service, you need a 4th generation Apple Tv.
-
PLEASE ANSWER MY QUESTION? IS IT POSSIBLE TO PLAY ANOTHER GAME OF CHECKERS WITH THE SAME PERSON AFTER YOU HAVE PLAYED AGAINST THEM ONCE?
Hi charles andrasko,.If you're talking about Internet ladies, yes you can.When a game is over, you can replay the same person, or you can play someone else by clicking the game menu, and then clicking on find a new opponent.Reference:Ladies of the Internet: how to playKind regards
Shinmila H - Microsoft Support
Visit our Microsoft answers feedback Forum and let us know what you think.
Maybe you are looking for
-
Contacts/Mac OS x Server Push Notifications and macOS strange behavior Sierra Server
I have Sierra macOS Server 5.2 and the same "user01" account configured in Contacts.app on two computers of macOS Sierra 10.12 and a device unique 10.0.2 iOS (iPad). My expectation is that change on a device (for example to add a new contact) is in a
-
Intro | Hello I am new to this support Web site for fire fox, never thought I already needed to sign up because most of the time things are going well and if I run into a problem, I can take care of it most of the time by myself. If I need a hand I a
-
EliteBook 8560p: card video elitebook 8560p update
Hi... I just got a hp elitebook 8560p and I changed my old laptop to it because of the graphics card... now, I discovered that the amd radeon 6400 m seeies that comes with itsnt naoual as loud as I want though... I want to know if I can completely ch
-
Space cadet problems Can I download a new 3d works and where do I get it?
original title: space cadet problems Space cadet problems Can I download a new 3d works and where do I get it? Any suggestions
-
HP Pavilion dv7 won't play videos on you tube
When I get e-mail or message to watch a video on you tube and clik on the link, the video says an error has occered, try again. At first view, it was the YouTube site, but it happens all the time.