get the ora-01830, but cannot say what I'm doing wrong
Hi, Oracle 11g R2.
Could someone help me understand what I'm doing wrong in following select clause? I'm trying to convert the difference in seconds to hh.
ISN.snapshot_ts and iobd.bd_handshake_ts are TIMESTAMP (6) WITH ZONE SCHEDULE
Select to_date ((to_date (to_char (isn. )))) snapshot_ts , 'HH24:MI:SS DD/MM/YYYY'), ' MM/DD/YYYY HH24:MI:SS')
- to_date (to_char (iobd. )) bd_handshake_ts , 'MM/DD/YYYY HH24:MI:SS'), 'MM/DD/YYYY HH24:MI:SS'))*60*60*24, 'sssss')
Hello
Back-and-forth conversion as
TO_DATE (to_char)
are almost never necessary in Oracle. There are a lot of built-in functions and features that make everything you need more simply.
If you subtract one TIMESTAMP on the other, the result is an INTERVAL DAY TO SECOND.
If you view an INTERVAL DAY TO SECOND, it is formatted as
+ 00:01:10.879000 000000000
which is what you want. In fact, it's what you want and then some others, which can be a problem for you. If you are certain that the difference will be less than 24 hours, you can display the number of days in the beginning, and you're neither to display fractions of a second at the end. In this case, you can convert the INTERVAL DAY TO SECOND string and then use SUBSTR (or similar) to get exactly the parts you want.
Try something like:
SELECT isn.snapshot_ts - iobd.bd.handshake_ts AS diff
...
If this isn't what you want (or close enough) then after a small example of data (CREATE TABLE and INSERT statements) and the accurate results you want from these sample data.
Check out the Forum FAQ: Re: 2. How can I ask a question on the forums?
Tags: Database
Similar Questions
-
I can't get the system restore to work. What I am doing wrong?
"The response from the computer is always: cannot restore to this date.
Maybe a conflict with your antivirus application. See http://bertk.mvps.org/html/healthy.html (the server has a problem with several of the most relevant pages 1645 EDT Fri Sept 23. If the pages do not load when you visit it, wait a bit and try again).
-
I closed the unnecessary processes without result. I removed all non-essential programs to start. No virus.
Once when this happened, I went to start > connect to > show all connections and the wireless, then activated and fixed network connection disabled and stopped freezing. When it happened again, I tried the same (x 2) and computer shuts down. When the error report is returned that it took me to a page that says problem with a driver. I reinstalled wireless (x 3). I know very little material. Can someone point me in the right direction?
LaDonna3,
You can take a look at this article which deals to restore the performance of your PC. Also, you should make sure your system is up-to-date with the Windows updates and then check with the PC manufacturer for drivers that are updated for your system. Mike - Engineer Support Microsoft Answers
Visit our Microsoft answers feedback Forum and let us know what you think. -
I'm trying to export multi-channel audio as apple pro res 422 HQ, but the tracks are all coming full joint rather than separately. I've implemented the multi Channel sequence already. What I am doing wrong?
All 4 titles are coming as complete blends not divisions. I guess that's a problem with the entrenchment of the channels, but can't see how to fix. Andy
Is what would you say to my quick thought without following through all the processes after the fact, the sequence settings? My thought is that the sequence settings must be multichannel as you show, but each Adaptive track, so this channel map is routed at your leisure. If this is not the case, already, it would create a new sequence with these settings.
I try to upload the photo
-
Why my preview and preview in the browser looks so small? What I am doing wrong?
Seem to duplicate to your other thread: why my preview and preview in the browser looks so small? What am I doing wrong? Please check as suggested and let me know if this helps.
-
I took pictures of a Picasa folder and created a "slideshow" with audio in Windows Movie Maker. It's over, but when I try and save it to a dvd using windows DVD create, change the order of my photos are randomly. Am I missing a setting? What I am doing wrong?
It may be interesting to try to publish (Save) project in the. Film WMV
format in a folder on your hard drive. Then import them. WMV file in
Creating Windows DVD.Windows Vista - publish a movie in Windows Movie Maker
http://Windows.Microsoft.com/en-us/Windows-Vista/publish-a-movie-in-Windows-Movie-MakerMovie Maker Vista - Edition
http://www.Papajohn.org/Vista-publishing.html -
I have Photoshop CS6 Extended. When I create a new layer, I get the following message. Could not complete the command because the selected area is empty.
What I am doing wrong?
Thanks for any help
Bob.
How do you create the new layer? Looks like you have a selection and use ctrl/cmd-J. If you have a choice and it is empty, you will get this error.
-
Edition to the FTP host... What I am doing wrong?
Hi I publish the FTP host option with my domain name registered by the Excellence of the host, and it worked, except when I type in my address of web site / page name of the page Muse Plan, it does not appear.
What I am doing wrong? I created 4 pages of landing pages separately. I don't want not related with a menu. I assumed that the web address for the pages would be the domain of the web site / Page name, but I think I made a wrong assumption.
Please notify.
Thank you!
Gregg
Hi Gregg,
It is not the name of the Page, but the name of the file that you need to place after http://mydomain.com/ - that you would actually get good page.
You can check the name of the file in the Options section of the Properties Page for the pages of your site from Muse. In the screenshot below, the file name is index.html
Hope that clarifies the behavior.
See you soon,.
Vikas
-
Is it possible to cut the video in Encore CS4? What I am doing wrong?
Hello:
In the manual, I read that it is possible to cut the beginning of a clip (Encore CS4). In an
, it seems that it is only possible to cut the time for still images and audio. I did as described in the manual, dragged from the beginning, but in the preview, 6 seconds I want to cut are still there. While dragging in the video part of the timeline, it changes Source in so many points. Nothing changes in the preview. I put Source in zero, the duration is reduced to what it should be, but still nothing changes in the preview. What I am doing wrong?I enclose some screenshots to illustrate better what I'm doing.
I'd appreciate any suspicion.
Alejandro
Slide the clip cut to the left until the new point timeline timecode 00; 00; 00; 00.
-Jeff
-
In the form of cascading select lists - what am I doing wrong?
Friends,
Hope you can help, I'm trying to figure out how to build a tabular presentation that contains the cascading select list.
What I do is to reproduce the excellent example Denes Kubicek has developed here: http://apex.oracle.com/pls/otn/f?p=31517:176 in my own work space.
While I can see it working on the environment hosted by Denis, I can't make it work in my area. I must be missing a step (or several!) After trying in vain to operate for several hours, now I'm hoping you can help.
That's what I did:
Created a sql report using the exact same sql provided.
Created a process page (rendered page side) using the same code.
Added javascript code to my html page header section
Created a process of application, called tab_casc_sel_list which runs on request
When I run the following page occurs:
The select deptno list shows 'Research' while the employee select shows 'Ford '.
However, when I change the selection dept list I get the following results:
Use Internet Explorer: The list of selection used now becomes empty and shows no entries
The use of Firefox: the employee entries are still posted, but they are not restricted by Department.
What did I miss?
Thanks in advance for any help you can provide.
IanFixed.
'Re missing you the application TAB_CASCADING_ITEM element
See you soon
Ben
-
Why the software partially installs on drive c so much f even if I put specific installation on the f drive?
You can move some of them being installed on the C drive. It is necessary to do so.
-
I desperately need help! I've been trying to use Lightroom 5, what's new with Nikon d810 also new camera and I'm not able to import photos from the card.
Someone help me please get it going, I'm so frustrated.
Not necessarily. the images on the card could still be corrupted and the jpeg preview is visible in other programs other than LR. Have you noticed the same behavior on multiple cards? If so, it suggests that LR is the culprit. I suggest you save and optimize your LR catalog, and then stop and restart your computer and see if the behavior persists.
-
The poster image is not rendered, what am I doing wrong?
That's what I use:
< pageItemPosterHTML >
<! [CDATA]
" < img src = ' http://i62.Tinypic.com/ka0ia1.jpg "alt ="My Logo"> "
[]] >
< / pageItemPosterHTML >
I don't get a picture of the poster in muse. Any help is greatly appreciated
That's how it's done. This answer has been provided by Nthsecret
(1) I create a preview of my widget (e.g. with photoshop) image.
(2) insert an image in a server or ftp;
(3) I add the image in the .mucow file in this mode:
]]>
]]>
-
It keeps telling me update could not be installed, but now doesn't say why.
See if it works and report.
http://support.Microsoft.com/kb/910336 -
any simple procedural error off... What am I doing wrong?
I created a very simple procedure like below to collect statistics of schema for 3 schema diff...
its getting created but with compilation errors...
ATTENTION: updated, but with compilation errorsCREATE OR REPLACE PROCEDURE SCOTT.ANALYZE AS BEGIN execute immediate dbms_stats.gather_schema_stats(ownname=>'ABC_OWNER', cascade=> TRUE, estimate_percent=> NULL); execute immediate dbms_stats.gather_schema_stats(ownname=>'QWE_OWNER', cascade=> TRUE, estimate_percent=> NULL); execute immediate dbms_stats.gather_schema_stats(ownname=>'ZXC_OWNER', cascade=> TRUE, estimate_percent=> NULL); END; /
AND WHEN I DEBUG THIS PROCDEU I GET THE INFORMATION BELOW... WHAT AM I DOING WRONG HERE?
SCOTT OF THE PROCEDURE. ANALYZE
Online: 4
PLS-00306: wrong number or types of arguments in the call to 'GATHER_SCHEMA_STATS '.You may not execute immediate.
CREATE OR REPLACE PROCEDURE SCOTT.ANALYZE AS BEGIN dbms_stats.gather_schema_stats(ownname=>'ABC_OWNER', cascade=> TRUE, estimate_percent=> NULL); dbms_stats.gather_schema_stats(ownname=>'QWE_OWNER', cascade=> TRUE, estimate_percent=> NULL); dbms_stats.gather_schema_stats(ownname=>'ZXC_OWNER', cascade=> TRUE, estimate_percent=> NULL); END; /
Maybe you are looking for
-
Satellite M50-PSM53A has the constant fan noise
Hi all A year ago I upgraded my Satellite M50 (PSM53A) from Windows XP to Windows Vista Home Premium SP1. I also downloaded the BIOS update for Vista from my region (Australia) Web site so that the BIOS version is now 5.00. However, Toshiba has not l
-
In XP, when you try to open a file, getting error 216
Dear Sir. every time I open a file, I find runtime error 216. Please help me to remove this error. Best regards
-
Legal installation on the second PC
HelloI recently bought a CD of XP Professional + SP3. He wrote on it, came with a product key, Dell and is described as a "reinstallation CD. It installed and no registered ok on my first pc product key no problem. I had to get some drivers for the m
-
How can I stop Facebook answers on my mobile phone?
Original title: Facebook on my phone... How can I stop replys to facebook on my mobile phone?
-
System fan failed error after the Swap case
Hi, I read a number of similar positions on this issue but has not managed to solve my particular problem and was hoping someone can provide additional guidance I recently moved my HP Pavilion Slimline S5280t with a Cooler Master case, everything is