How to convert the 24 calendar base hrs
Hi friendsI have a requirement for 12 HR to base 24 timing in my sql script
SELECT Request_id,
To_char (requested_start_date, 'DD-MON-RR HH') AS ' began to. "
CEIL ((SYSDATE-actual_start_date) * 1440) such AS "running for Minutes.
XXX.
here in the above script I've used this for requested_start_date... To_char (requested_start_date, "DD-MON-RR HH24:MI:SS")
But
How can I change that to 24 hours-> CEIL ((SYSDATE-actual_start_date) database * 1440) such AS "running for Minutes.
Thanks in advance
Thiliban
Published by: welcome07 on January 10, 2011 11:36
Sysdate is a date and apparently actual_start is also a date, the date data type have no format (well, they are stored in the internal Oracle date format) and Oracle knows if the time portion is in the morning or in the afternoon.
You need not specify a format of date when using dates in a calculation. If you want to display started at as a period of 24 hours, and then use the format on the to_char hh24 mask.
John
Tags: Database
Similar Questions
-
How to convert the precision extended float to float in C++
Hello
Could someone me please how to convert the extended precision (floatExt) float normal float in C++?
What is the difference in the float between Labview and C++ data type?
When I tried to receive a range of float of a function of the DLL generated by Labview in C++, data are bad.
Thank you
Victor King
You can search for numeric data types in LabVIEW help for more information on the different types of data. Before sending the data to the C++ application, you can use the function of Double precision on digital / range of Conversion to convert number to Double precision.
-
How to convert the date in milliseconds?
Hi all
Can I know how to convert the date in milliseconds?
My current datetime like this Formate
QDateTime::currentDateTime (m:System.NET.SocketAddress.ToString ("MMMM dd, yyyy HH"))
Seconds since January 1, 1970
http://Qt-project.org/doc/Qt-4.8/QDateTime.html#toTime_t
Sinds milliseconds January 1, 1970
http://Qt-project.org/doc/Qt-4.8/QDateTime.html#toMSecsSinceEpoch
-
Please how to convert the photo to the second
Please guys how to convert the kia rio pictures the second perfect like this, and with any program, I know that all steps in details please its very important
That looks just like you would use the tool pen to redraw on the image and create shape layers (black areas). It could be done in Photoshop or Illustrator.
-
Hello, I have a full desktop in Adobe Muse, site and I want to convert it into a version Tablet & phone, then, how would convert the site Office to Tablet & phone to copy the entire office content and site structure? Thanks for any help.
You can not automatically convert. Click on the "tablet" or "Phone" at the top of your plan view to create these versions.
You can then copy and paste on any content you want has more of your office.
-
How to convert the following code in as3?
As the title says... How to convert the following code to as3?... Thanks in advance.
import flash.display.BitmapData;
linkageId = "landscape";
myBitmapData = BitmapData.loadBitmap (linkageId);
MC = this.createEmptyMovieClip ("mc", 1);
mc.attachBitmap (myBitmapData, 1);onMouseMove = function() {}
myNewColor = "0 x" + myBitmapData.getPixel(_xmouse,_ymouse).toString (16);
newColor.setRGB (myNewColor);
selectedColor.colorValue.text = myNewColor;
}
selectedColor.swapDepths (_root.getNextHighestDepth ());
newColor = new Color (selectedColor.sample);:
var myBitmapData:landscape = new landscape (0,0);
var bmp:Bitmap = new Bitmap (myBitmapData);
addChild (bmp);stage.addEventListener (MouseEvent.MOUSE_MOVE, f);
function f(e:MouseEvent):void {}
var myNewColor:String = "0 x" + myBitmapData.getPixel(mouseX,mouseY).toString (16);
newColorTransform.color = uint (myNewColor);
selectedColor.sample.transform.colorTransform = newColorTransform;
selectedColor.colorValue.text = myNewColor;
}
addChild (selectedColor);
var newColorTransform:ColorTransform = selectedColor.sample.transform.colorTransform; -
How to convert the hierarchical query of SQL Server (CTE) to Oracle?
How to convert the hierarchical query of SQL Server (CTE) to Oracle?
WITH cte (col1, col2) AS
(
SELECT col1, col2
FROM dbo. [tb1]
WHERE col1 = 12
UNION ALL
SELECT c.col1, c.col2
FROM dbo. [tb1] AS c INNER JOIN cte AS p ON c.col2 = p.col1
)
DELETE one
FROM dbo. [tb1] AS an INNER JOIN b cte
ON a.col1 = b.col1Hello
Something like this maybe:DELETE FROM dbo.tb1 a WHERE EXISTS ( SELECT 1 FROM dbo.tb1 b WHERE a.co11 = b.col1 AND a.col2 = b.col2 START WITH b.col1 = 12 CONNECT BY b.col2 = PRIOR b.col1)
Although you need to do here is to check that CONNECT it BY SELECT, returns records you wait first, then the DELETION should work too.
-
How to convert the number to SQL?
How can I convert the number in SQL?
The problem is that I use .NET and the Oraclenumber seems to be too big.
Number of database - what I get when I select
-----------'12'--------------------------------------'12'
-12, 1-12, 10' <-this 0 should not be there
-----------'12,12'-----------------------------------'12,12'
-12, 123'---12, 1230' <-this 0 should not be there
-----------'12,1234'-------------------------------- '12,1234'
I don't know why this happens?
Now, I tried to select with to_char (COLUMN1), but when I have values like "' 0,15 ' in the base, I get in select ', 15' when I convert with to_char?"
Anyone know a solution?
Kind regards
Simon
Edited by: user3654758 the 30.09.2010 02:02with mytable as
(select 12 n of all the double union)
Select 12.1 in union double all the
Select 12.12 in union double all the
Select 12.123 in all the double union
Select double 12.1234)
Select case when trunc (n) = n then
TO_CHAR (n, 'FM9999999999999999999')
on the other
TO_CHAR (n, 'FM9999999999999999999D9999999')
end
FROM MyTable;Edited by: hartmutm the 30.09.2010 02:21
I changed it a bit, because you have a problem with the separator decimal escape in the previous code.
-
My sync key was of 12 characters, no dashes (xxxxxxxxxxxx). After uninstalling and reinstalling FF 3.6.13, Sync 1.6.1 refuses my sync key to 12 characters.
I discovered, that the keys of synchronization for all users have been activated to 31 characters including 5 dashes (x-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx). How can I get the new key for synchronization?
I have no PC connected to Firefox Sync more but Firefox Home and 360 browser on my iPhone successfully sync. Unfortunately on the iPhone I can't display the sync currently used key. Is there a way to convert the old key to sync to the new?
I need the bookmarks saved in my sync account.
Thanks for your help!I had the same exact symptoms as you did. Here is my solution:
I installed an older version of firefox sync (1.4.something, I think) and then added my account using my old short firefox sync key. When you try to synchronize, the out of date addon says to do synchronization, it must be updated. After update, I always signed, but now had the additional device to see my new long firefox sync key that was compatible with FF 4 b, etc. Everything works fine now and my computer is properly synchronize. -
How to convert the substring to waveform
Hello
I have an input file with a lot of numbers that need to be converted to a waveform. I used the match model vi to extract the data I need to be traced out. These data can be seen in 'before the substring"but I do not know how to convert these data to waveform. Can anyone help? I have attached the input file and the vi as well. Thank you
Try using the worksheet File.vi reading. It converts a text file delimited by tab characters in a table of numbers in one step.
Lynn
-
How to convert the array of integer to string
Hi, I'm trying to convert the table of 32-bit integers to a string. For ex: If the array contains {1234, 4567, 8, 9} I need string like {00.00, 34,12, 00, 00, 45, 67,...}
How to do this one.
Help, please
Thank you best regards &,.
Harish. G.
Hi Haris,
use the above solution as it seems you really want figures BCD...
Or this slightly improved version:
-
How to convert the timestamp in varchar2
How to convert
-timestamp
TO_TIMESTAMP (' 29.01.2015 08:36:41 ','fmDDfm.fmMMfm.YYYY fmHH24fm:MI:SS') of double
in
-varchar2
20150129083641
Hello
Maybe something like this:
select to_char(to_date(substr(to_char(TO_TIMESTAMP('29.01.2015 08:36:41','fmDDfm.fmMMfm.YYYY fmHH24fm:MI:SS')),1,17), 'dd.mm.yy hh24:mi:ss'), 'yyyymmddhh24miss') from dual;
But the question is: what do you do? Sorting? Or you have a (very) old data model with varchars or numbers to organize the date fields?
concerning
Kay
-
How to convert the B/R channel on near infrared videos?
Hello
Context:
Using a defiltered DSLR equipped with near infrared infrared filter (590 or 665 nm) for example, we can take pictures of the IR. Then by a simple postprocesseing using an image editor, we can swap the red and blue channels to restore the blue color to the sky in the preservation of the color of the ntaure (tree, grass, etc.).
I know that using AE, we can enhance the colors of the individual frames of a movie.
Now, I want to move forward a step: convert R/B channels
Question:
Can we use After Effects to convert the blue and red of this video channels (B becomes R and R become B) to restore the blue color of the sky?
If we can, could list you the menu options AE access to do this?
Thanks in advance
Thierry
I did it. If you use curves to reverse the red and blue in Photoshop using curves in AE. If you want to swap the channels use a set of channels.
AE's Photoshop on steroids. He will do everything and more that you can do in Photoshop and most of the controls in the color is the same.
If you do not know how something use the help search field in the upper right corner of the app, and learn about the resources of the community.
-
How to convert the attribute into a processing instruction in indesign?
Hi all Experts,
How to convert attributes selected in a processing instruction using javascript in indesign.Please suggest me.
Kind regards
Jack
The problem came from namespace 'help '. You must add the namespace to the root element if they do not exist.
Try this...
var doc = app.activeDocument; var _root = doc.xmlElements[0]; if( !_root.xmlAttributes.itemByName("xmlns:aid").isValid ){ _root.xmlAttributes.add( "xmlns:aid", "http://ns.adobe.com/Adobe InDesign/4.0/" ); } var _xmlElements = _root.evaluateXPathExpression("descendant-or-self::*[@*[name()='aid:pstyle']]"); var i = _xmlElements.length; while( i-- ){ _xmlElements[i].xmlInstructions.add('aid:pstyle', _xmlElements[i].xmlAttributes.item('aid:pstyle').value); _xmlElements[i].xmlAttributes.item('aid:pstyle').remove(); }
-
How to convert the FrontPage Web in Muse?
I have an existing Web site that is based on Microsoft FrontPage. From now on, I would use the Muse instead of Dreamweaver among the two candidates that I love. How is - a converts the FrontPage in the Muse?
Hello
Please see the forum below links for the same survey.
https://forums.Adobe.com/message/6048080
https://forums.Adobe.com/message/4319657
https://forums.Adobe.com/message/5310368
Concerning
Vivek
Maybe you are looking for
-
Atrix HDMI to laptop computer Vaio HDMI connection does not
I adapted my Atrix on the multimedia dock, connected power and then connected to the mm HDMI cable anchor on my laptop Vaio HDMI, I have read and understood the firefox browser should be launched directly, but did not, I missed something? By the way,
-
Preserve the original dt during playback PDM
Hi all I have the following situation. We have two VI; the first reads a PDM GB 3 file and allows us to extract the selected channels, which we can then decimate, reducing the size of bit, maybe a few other conversions, etc. We then record these chan
-
I tried to download Service Pack 3, how do I get telephone support?
I tried for two days now without success to download SP3. Help!
-
I want to filter by a certain size of demand, I spend my ResultsList, but I can not filter the entire request.I understand that the best way to do so would make a Manager custom, which extends ResultsListHandler and the substitution of the preprocess
-
12 GB of RAM is "not enough physical memory" for a 2-GB virtual Machine?
I run VMware Player 6.0.3 on Windows 64-bit 8.1. My host has 12 GB of physical memory and my virtual machine uses 2 GB memory. And yet, I can't start my VM because VMware has said "not enough physical memory is available to power on this virtual mach