How to calculate the time difference in the two date columns time.
Hi Obiee Experts,I came back new requirement on obiee 10g.
I have two date columns in my table time, data as below.
StartDate: 18/03/2012-04:40:51
Closing date: 18/03/2012-04:50:55
I want to the output as below (Jet lag).
output
04:40:51 (less)-04:50:55 = 00:10:04
I hope you understand my requirement in OBIEE.
Note: I want to show above the output values in another State for OBIEE10g column.
Please share me your valuable contributions. Urgent appeals.
Thank you
Satya
Hi Satya,
Here's another solution. You can try the formula below as it is:
Cast (floor (TIMESTAMPDIFF (sql_tsi_second, '-SNP_SESSION '.))) SESS_BEG, '-SNP_SESSION '. SESS_END) / 3600) as char). ':' ||
Cast (floor (mod (TIMESTAMPDIFF (sql_tsi_second, '-SNP_SESSION '.)))) SESS_BEG, '-SNP_SESSION '. ((SESS_END), 3600) / 60) as char). ':' ||
Cast (mod (TIMESTAMPDIFF (sql_tsi_second, '-SNP_SESSION '.))) SESS_BEG, '-SNP_SESSION '. SESS_END), 60) as char)
I would like to know if that's what you're looking for.
Thank you
Tags: Business Intelligence
Similar Questions
-
by comparing the two date columns
I want to compare two values of the column of the same table. Both the date and time part. but I would like to compare with only the date portion. I want these files where two dates are not same. but it includes a part of the time in the comparison with the following query.
any suggestionselect * from reporttransactions a, reporttransactions b where trunc ( to_date(a.TRANSACTION_DATE, 'DD/MM/YYYY' )) <> trunc (to_date(b.TRANSACTION_CREATION_DATE,'DD/MM/YYYY' ))
I think it's true,
When: WHERE TRUNC (A.TRANSACTION_DATE) = TRUNC (B.TRANSACTION_CREATION_DATE)
223605062 3247 0 0 - 215 1 215 8 8 0 215PKI 01/09/2012 01/09/2012 223605056 5733 0 0 - 131 1 131 9 9 0 131RAS 01/09/2012 01/09/2012 223605050 4568 0 0 - 132 1 132 5 5 0 132FSH 01/09/2012 01/09/2012 223604993 1623 0 0 - 176 1 176 8 8 0 176TCL 01/09/2012 01/09/2012
When: WHERE TRUNC (A.TRANSACTION_DATE)! = TRUNC (B.TRANSACTION_CREATION_DATE);
225833757 9113 0 0 - 161 1 161 3 3 0 161CBE 16/09/2012 16/09/2012 225833757 9113 0 0 - 161 1 161 3 3 0 161CBE 16/09/2012 16/09/2012 225833757 9113 0 0 - 161 1 161 3 3 0 161CBE 16/09/2012 16/09/2012 225833757 9113 0 0 - 161 1 161 3 3 0 161CBE 16/09/2012 16/09/2012 225833757 9113 0 0 - 161 1 161 3 3 0 161CBE 16/09/2012 16/09/2012 225833757 9113 0 0 - 161 1 161 3 3 0 161CBE 16/09/2012 16/09/2012 225833757 9113 0 0 - 161 1 161 3 3 0 161CBE 16/09/2012 16/09/2012 225833757 9113 0 0 - 161 1 161 3 3 0 161CBE 16/09/2012 16/09/2012 225833757 9113 0 0 - 161 1 161 3 3 0 161CBE 16/09/2012 16/09/2012 225833757 9113 0 0 - 161 1 161 3 3 0 161CBE 16/09/2012 16/09/2012 225833757 9113 0 0 - 161 1 161 3 3 0 161CBE 16/09/2012 16/09/2012 225833757 9113 0 0 - 161 1 161 3 3 0 161CBE 16/09/2012 16/09/2012 225833757 9113 0 0 - 161 1 161 3 3 0 161CBE 16/09/2012 16/09/2012
What's wrong?
-
How to calculate the execution time of a SCTL in FPGA VI?
Hello
Can someone guide me that how to calculate the execution time of a SCTL for an iteration in the FPGA VI?
Thank you and best regards,
Rashid
Hello r,.
A SCTL will always run in a beat the clock it has been linked to. So, if you use a 40 MHz clock, this loop will run in 25 ns. If the code cannot complete in that, or if it requires two graduations of the watch to do the calculation, your code does not compile, then you have the guarantee that this will always be how long it takes this piece of code to run.
-
How to calculate the execution time of a loop?
Hello
Can someone guide me that how to calculate the execution time of a loop to iterate?
Thank you and best regards,
Rashid
I hope I have your question! See attached screenshot
-
How to calculate the time to SELECT
I want to know how to calculate the time taken by the SELECT query.
For example: I run a select statement in TOAD (oracle version 9i) who takes 40 seconds to run, but in the output window, it displays few records. It says "list 1 of 500 records, more records exist". This table has total 20 million records.
Now my question is: have you my SELECT query took 40 seconds? or it took 40 seconds to SELECT 500 records.
If it took 40 seconds to SELECT 500 records then how to calculate the total amount?
Any help would be much appreciated.To avoid the exit which is probably not really need you can make
begin for c in (select * from xy /*your query */) loop null; end loop; end; /
This gives an estimate of the time to recover all the lines.
-
How to calculate the loading time of BDB startup
Hi all
I understand that Berkeley DB at startup it will read a few pages from the disk in the memory cache, but I don't know the exact number of pages that will load. I think that BDB will load default pages as much as possible in the cache until the cache is full. Is this good?
And how to calculate the cost of time on the loading process? Can it be verified using db_stat?
Thank you very muchHello.
There is a discussion on how proceed (preload the cache) in this thread:
Re: a question about read file or cacheBen Schmeckpeper
-
To build the waveform.vi function how to calculate the value of dt
Dear all
Please guide me How to calculate the value of dt according to waveform.vi of construction
My sampling rate is 25000 and I take 200000 samples.
Kind regards
Muhammad Irfan
It's all simple arithmetic. The inverse of the sampling frequency power of samples is then the dt or the time between samples the number of samples is not relevant.
-
How to calculate the number of days/weeks/months between 2 dates?
Hello
I would like to know how to calculate the number of days/weeks/months between 2 dates in OBIEE 11 g, for example, I have 26/05/2013 and 19/05/2013, then I want to get 7 days.
Thank you!
JamieHi Jamie,
Through this links...
http://www.bravesoft.com/blog/?p=682
http://twobiee.blogspot.in/2012/01/working-with-date-differences.htmlMark as correct it allows u...
Thank you... -
How to calculate the length of the video format (seconds)
Hello
I use the ActionScript 3.0 CookBook book and it shows how to calculate the length of a video (and also playing the video in progress) in seconds using the property at the time of the NetStream class.
So, for example, the length of my video is 1070 seconds.
But I want to be able to convert a format such as ' 00 (hours): 00 (mins): 00 (dry) ", '1070 seconds' how can I get this?
Any help is appreciated!
TA :)
Kind regards
M.Hi, thanks for the reply :) you have helped me understand the following code which I just found (and that seemed to work the way I needed it).
Quote:
If (_duration > 0 & _stream.time > 0)
{
_playbackTime.text = generateTime (_stream.time);
}function generateTime(nCurrentTime:Number):String
{
var nMinutes:String = (Math.floor(nCurrentTime / 60)< 10="" "0"="" :="" "")="" +="" math.floor(ncurrenttime="">
var nSeconds:String = (Math.floor (nCurrentTime % 60)< 10="" "0"="" :="" "")="" +="" math.floor(ncurrenttime="" %="">Result set
var sResult:String = nMinutes + ":" + nSecondes;Return value
return sResultat;
} -
How to calculate the second and minisecond for audio landmark
I'm doing a sound synchronization for the clip audio and video in Flash. I found a tutorial on the web, and it seems to work. However, I do not know how to calculate the second and the mini (deuxieme from mp3 file. The first frame has the following lines to set the duration for each animation:
Import class
Import net.quip.sound.SoundSync;
Stop the main timeline
Stop();
Create an instance of SoundSync
var ss:SoundSync = new SoundSync();
ss.addCuePoint ("IT", 20100);
ss.addCuePoint ("admin", 20000);
ss.addCuePoint ("maintenance", 19800);
ss.addCuePoint ("treatment", 16479);
ss.addCuePoint ("engineering", 14598);
as.addCuePoint ("logo_epa_npdes", 12356);
ss.addCuePoint ("construction", 8967);
ss.addCuePoint ("370 mg/j", 7896);
ss.addCuePoint ("mc_650, 000 ', 5439);
ss.addCuePoint ("130 mg/j", 3254);
ss.addCuePoint ("1938", 2439);
ss.addCuePoint ("vintage_mc", 0);
Use the instance of loading external MP3
ss.loadSound ("Scn04 - 05.mp3", true);
Create a listener object for the
cuePoint and onSoundComplete events
var listener: Object = new Object();
listener.cuePoint = function (): Void {}
Play();
}
listener.onSoundComplete = function (): Void {}
Play();
}
ss.addEventListener ("cuePoint", listener);
ss.addEventListener ("onSoundComplete", listener);
and the soundsync.as file as follows:
Import mx.events.EventDispatcher;
Import mx.utils.Delegate;
class net.quip.sound.SoundSync extends its {}
PROPERTIES
private var _cuePoints:Array;
private var _currentCuePoint:Number;
private var _interval:Number;
private var _intervalDuration:Number;
private var _secondOffset:Number;
Event dispatcher
public var dispatchEvent:Function;
public var addEventListener:Function;
private var removeEventListener:Function;
CONSTRUCTOR
public void SoundSync(target:MovieClip) {}
Super (target);
init();
}
METHODS
private function init (): Void {}
Initialize properties
_cuePoints = new Array();
_currentCuePoint = 0;
_intervalDuration = 200;
_secondOffset = 0;
Initialize the instance of the class as the valid event broadcaster
EventDispatcher.initialize (this);
}
Add Cue Point
public void addCuePoint(cuePointName:String,_cuePointTime:Number):Void {}
() _cuePoints.push
{
type: "cuePoint",.
name: cuePointName,.
time: cuePointTime,.
target: this
}
);
_cuePoints.sortOn ("time", Array.NUMERIC);
}
Get cue point
public void getCuePoint(nameOrTime:Object):Object {}
var counter: Number = 0;
While (counter < _cuePoints.length) {}
If (typeof (nameOrTime) == 'string') {}
If (_cuePoints [meter] .name == nameOrTime) {}
return _cuePoints [counter];
}
} Else if (typeof (nameOrTime) == 'number') {}
If (_cuePoints [meter] .time == nameOrTime) {}
return _cuePoints [counter];
}
}
counter ++;
}
Returns a null value.
}
Get the Index of the current Cue Point
private void getCurrentCuePointIndex(cuePoint:Object):Number {}
var counter: Number = 0;
While (counter < _cuePoints.length) {}
If (_cuePoints [meter] .name == cuePoint.name) {}
return the meter;
}
counter ++;
}
Returns a null value.
}
Get the next Cue Point index
private void getNextCuePointIndex(seconds:Number):Number {}
seconds (seconds) =? seconds: 0;
var counter: Number = 0;
While (counter < _cuePoints.length) {}
If (_cuePoints [meter] .time > = seconds * 1000) {}
return the meter;
}
counter ++;
}
Returns a null value.
}
Benchmark deleted
public void removeCuePoint(cuePoint:Object):Void {}
_cuePoints.splice (getCurrentCuePointIndex (cuePoint), 1);
}
Remove all Cue Points
public function removeAll_cuePoints (): Void {}
_cuePoints = new Array();
}
Beginning
public void start(secondOffset:Number,_loops:Number):Void {}
Super.Start (secondOffset, loops);
dispatchEvent ({type: "onStart", target: this});
Reset benchmark
_secondOffset = secondOffset;
_currentCuePoint = getNextCuePointIndex (secondOffset);
Poll for cue points
clearInterval (_interval);
_interval = setInterval (Delegate.create (this, pollCuePoints), _intervalDuration);
}
Load sound
public void loadSound(url:String,_isStreaming:Boolean):Void {}
super.loadSound (url, isStreaming);
clearInterval (_interval);
_interval = setInterval (Delegate.create (this, pollCuePoints), _intervalDuration);
}
Stop
public void stop(linkageID:String):Void {}
If {(linkageID)
Super.Stop (linkageID);
} else {}
Super.Stop ();
}
dispatchEvent ({type: "onStop", target: this});
Kill the ballot
clearInterval (_interval);
}
Survey benchmarks
private function pollCuePoints (): Void {}
If the current position is close to the cue point.
var time: Number = _cuePoints [_currentCuePoint] .time;
var span: Number = (_cuePoints [_currentCuePoint + 1] .time)? _cuePoints [_currentCuePoint + 1] .time: time + _intervalDuration * 2;
If (position > = time & & position < = span) {}
Send event
dispatchEvent (_cuePoints [_currentCuePoint]);
Advance to the next landmark...
If (_currentCuePoint < _cuePoints.length) {}
_currentCuePoint ++;
} else {}
_currentCuePoint = getNextCuePointIndex (_secondOffset);
}
}
}
EVENT HANDLERS
onSoundComplete
public function onSoundComplete (): Void {}
Kill the ballot
clearInterval (_interval);
Reset benchmark
_currentCuePoint = 0;
Send event
dispatchEvent ({type: "onSoundComplete", target: this});
}
}
any help will be greatly appreciated.Wuzhishan,
> Hi Dave, your tutorial is very cute and it is very useful.
Thank you! My daughter is cute. She inherited all of
me, so I have not left. ;)> I'm sorry that I don't have my question clearly.
No worries. :)
> I have listen mp3 in Windows Media Player and try to
> get both for the tail, I found it on the bottom of the
> player time indicates 00:26.I'm with you.
> How can I writer this number in the code? Is it 0026 or 26?
The code expects milliseconds, then 26 seconds would be written as
this:26000
If he said 01:22 (one minute and 22 seconds), you must write it like this:
82000
... which is 60 seconds for now, 22 seconds
side, then multiplied by 1,000 to get milliseconds.David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design." -
How to calculate the ckptLogVolume?
Hello:
I have a question about control, our policy of ckeckpoint is 10 minutes or volume of data has come up to 1 G, but from the ckpthistory, we can see sometimes it does not respond to volume 10 minitues or 1 G. How to calculate the ckptLogVolume? If we see the result ckpthistory? If possible, which column? Thank you...
call ttCkptConfig;
< 600, 1024, 0 >
call ttckpthistory;
< 15:26:50.539519 2009-05-15, 2009-05-15 15:26:55.524454, fuzzy, completed, Checkpointer, < NULL >, 1, 99, 247909568, 82508, 4294967296, 81197, 1750236928, 15457, 301826504, 327339272, < NULL > >
< 15:17:20.577626 2009-05-15, 2009-05-15 15:17:20.857039, static, final, Subdaemon, < NULL >, 0, 97, 242211472, 81004, 4294967296, 79563, 1686897608, 20, 1573232, 1618112, < NULL > >
< 15:16:49.203124 2009-05-15, 2009-05-15 15:16:55.300502, static, final, Subdaemon, < NULL >, 1, 97, 242211320, 81004, 4294967296, 79563, 1686897608, 13070, 280099880, 239440672, < NULL > >
< 15:16:21.659487 2009-05-15, 2009-05-15 15:16:28.507656, static, final, Subdaemon, < NULL >, 0, 97, 242211168, 81004, 4294967296, 79563, 1686897608, 14441, 307440952, 265360008, < NULL > >
< 15:11:38.139007 2009-05-15, 2009-05-15 15:11:43.322764, fuzzy, completed, Checkpointer, < NULL >, 1, 96, 80730544, 81450, 4294967296, 80193, 1726321176, 14842, 308879240, 321674504, < NULL > >
< 15:08:18.118181 2009-05-15, 2009-05-15 15:08:23.100922, fuzzy, completed, Checkpointer, < NULL >, 0, 94, 79302232, 81558, 4294967296, 80382, 1737702968, 15017, 311253288, 334736648, < NULL > >
< 15:05:00.002139 2009-05-15, 2009-05-15 15:05:05.081461, fuzzy, completed, Checkpointer, < NULL >, 1, 92, 76043440, 81559, 4294967296, 80386, 1737962016, 15053, 311957568, 335301896, < NULL > >
< 15:01:41.882166 2009-05-15, 2009-05-15 15:01:46.959502, fuzzy, completed, Checkpointer, < NULL >, 0, 90, 74032552, 81594, 4294967296, 80425, 1740156304, 15008, 311831160, 337583368, < NULL > >Checkpopint operations which are drivern by the volume of interval and log checkpoint are those that are 'Checkpointer' in the output of ttCkptHistory. Control points can also occur for other reasons, for example when the data store is stopped, when it is loaded in memory and recovery is necessary. These kinds of control point are marked as "Static" and "Subdaemon". You can see three of those in the output.
The output, it seems you're checkpointing about every 4 minutes. Assuming the target settings (interval 600 seconds, Journal volume of 1 GB) were already in place at the time of these control points has occurred then it seems that all of these were led by the volume of the journal rather than the checkpoint interval (that you generate ~ 1 GB of log about every 4 minutes).
Chris
-
How to calculate the polynomial graphic adjustment of waveform
Hi all
I am new to lab - view so would need a little assistance in one of the problem I have right now.
My problem is: how to calculate the polynomial graph of waveform data adjustment? I need to convert the waveform to XY graph data, and then use the polynomial vi made integrated to calculate the fitting?
Detail: My problem is that I have waveform graph, I calculate the vertices and the Valley, but because of the noise, my peaks and Valley detection is sometimes not exact, so to smooth the chart that I must apply the polynomial fit.
If anyone can help me in this, I'll be very grateful.
Thanks in advance
Hi Omar,.
have you seen the suggestion of Lynn above?
You already have the values of Y (your table). Now, you need build the table of X as indicated, only to replace the value of dt with your spacing from point to point. Somewhere in your code, you know that the value that you have an x-axis indicated in milliseconds...
-
How to calculate the CPU Ready on Cluster DRS via Powercli?
Hi all!
I have a DRS Vsphere cluster. I want to know what is the value of the loan of CPU I have in my group.
For example, I get 20% of powercli value, it is normal for the cluster, but if I have 100% or more, I have a problem.
How to achieve via Powercli? And how to calculate the percentage values correctly?
I know, I can get all values of CPU Ready of VMs cluster, but IT is not the same thing, I need overall value of CPU Ready.
Thanks in advance!
As far as I know you can get the cpu.ready.summation for ESXi nodes or VMs.
For a cluster, you will need to get the value of each node in the cluster ESXi and then take the average.
The metric cpu.radey.summation is expressed in milliseconds.
To get a percentage, you need to calculate the percentage of loan period during the interval during which it was measured.
Something like this (this will give the loan current %)
$clusterName = "mycluster.
$stat = "cpu.ready.summation".
$esx = get-Cluster-name $clusterName | Get-VMHost
$stats = get-Stat-entity $esx - Stat $stat - Realtime - MaxSamples 1 - forum «»
$readyAvg = $stats | Measure-object-property - average value. Select - ExpandProperty average
$readyPerc = $readyAvg / ($stats [0].) IntervalSecs * 1000)
Write-Output "Cluster $($clusterName) - CPU % loan $(' {0:p}'-f $readyPerc).
-
How to calculate the cpu in the resource pool
How to calculate the cpu in the resource pool
and don't forget that shares in pools of resources are not inherited by the virtual machines in the pools. the action is related to the pool itself.
-
How to calculate the sum of two digital form fields based on the selection of the checkbox.
I have a form in Acrobat Pro who needs a custom calculation. How to calculate the sum of two digital form fields based on a selection of the checkbox. I have three number fields. Field-A and B are simple one or two digits. Field-C is the sum, or the total field. I want to field-C have a control box which, when turned on and off, just gives a. gives the sum of A + B
_ Field - 2
_ Field - A 4
[check] _ _ field - 6 C
[disabled] _ _ field - 2 C
Thank you
The custom field C calculation script could be:
(function () { // Get the values of the text fields, as numbers var v1 = +getField("A").value; var v2 = +getField("B").value; // Set this field's value based on the state of the check box named "CB" if (getField("CB").value !== "Off") { event.value = v1 + v2; } else { event.value = v1; } })();
Replace 'A', 'B', and 'CB' with the real names of the fields.
Maybe you are looking for
-
external HARD drive - backward compatible?
Some hard drives indicate that they will be compatible with 10.4 / 10.6 etc. but it is not always clear whether it is a limiting factor or just the minimum required. Since I am still trying on el capitan and am undecided until I get a HARD drive to r
-
HP psc 1210 all-in-one: my hp pc is not reconizing my printer hp after a year and a half
Just for the last month, my printer does not appear as a device on my pc. I checked the connections, tried to detach from the pc and then reinstall it. I tried again today after a reboot. I don't know where he might be my software to attempt to re
-
I can't get access to hotmail to work computer? Please help, thank you Sir or Madam.
-
recovery resulted in a loss of SP2 and SP3
Could not update because don't have SP2 installed but had only and SP3 before the recovery...
-
Cascades of Horizontal ListView - is not Possible?
Hi, I would like to have a horizontal list, but cannot figure out how to use the libraries of stunts. I can see how it's done using the regular QT libraries, there is an orientation property but it does not exist in the Cascades ListView. Does anyon