How to get the timestamp per minute for the given interval
Hello
I have a table with a date of beginning and end of time columns. I need to divide the date given in one minute interval and post the results.
create table min_data(objectid varchar2(20),starttime timestamp,endtime timestamp,duration number); SET DEFINE OFF; Insert into MIN_DATA Values ('U1_B011_P006_InvA', TO_DATE('06/23/2015 02:42:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('06/23/2015 02:46:00', 'MM/DD/YYYY HH24:MI:SS'), 5); Insert into MIN_DATA Values ('U1_B011_P006_InvA', TO_DATE('06/23/2015 12:43:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('06/23/2015 12:44:00', 'MM/DD/YYYY HH24:MI:SS'), 2); COMMIT;
My expected output should be something like this. INT_TIMESTAMP is the timestamp calculated for the given interval (time of start and end times)
INT_TIMESTAMP | OBJECTID | STARTTIME | END TIME |
23/06/2015-02:42 | U1_B011_P006_InvA | 23/06/2015-02:42 | 23/06/2015-02:46 |
23/06/2015-02:43 | U1_B011_P006_InvA | 23/06/2015-02:42 | 23/06/2015-02:46 |
23/06/2015-02:44 | U1_B011_P006_InvA | 23/06/2015-02:42 | 23/06/2015-02:46 |
23/06/2015-02:45 | U1_B011_P006_InvA | 23/06/2015-02:42 | 23/06/2015-02:46 |
23/06/2015-02:46 | U1_B011_P006_InvA | 23/06/2015-02:42 | 23/06/2015-02:46 |
23/06/2015 12:43 | U1_B011_P006_InvA | 23/06/2015 12:43 | 23/06/2015 12:44 |
23/06/2015 12:44 | U1_B011_P006_InvA | 23/06/2015 12:43 | 23/06/2015 12:44 |
I wrote a query that works for one set of intervals.
With get_data AS( SELECT a.*, starttime -1/1440 v_s_date, endtime v_e_date FROM min_data a where duration=5) SELECT v_s_date + ((1 / 1440) * DECODE(LEVEL, 1, 1, LEVEL)) int_timestamp, objectid,starttime,endtime FROM get_data d WHERE MOD(LEVEL, 1) = 0 OR LEVEL = 1 CONNECT BY LEVEL <= (v_e_date - v_s_date) * 1440;
Please send me a SQL query that gives me the timestamps of minutes between intervals.
Hello
The following query works for any number of intervals
SELECT STARTTIME + ((LVL-1) / 1440) INT_TIMESTAMP, OBJECTID, STARTTIME, ENDTIME
Of
(SELECT LEVEL LVL FROM DUAL CONNECT BY LEVEL< 10)="">
(SELECT * FROM MIN_DATA)
WHERE STARTTIME + ((LVL-1) / 1440) BETWEEN STARTTIME AND ENDTIME ORDER BY, STARTTIME, ENDTIME LVL;
Concerning
Salim
Tags: Database
Similar Questions
-
How to get the timestamp of data DAQmx Read
Hello
I have to read 4 analog channels using DAQmx AI read in LabVIEW 2012. I am using screws DAQmx.
Acquisition rate is 4000 samples per second, and the number of samples per channel is 200.
I use only one task DAQmx to read the data. I get 4 data tables for 4 channels each table length is 200, every time, DAQmx Read happens.
But I want to get the seal of these 200 samples per channel. How to get the seal of these samples, made me know.
Thank you
You have not indicated your code. If you choose to read the waveform data, the cluster includes t0 and dt. That's all the information you need.
-
How to get the current timestamp in C++ to the BB10 project
Please help me how to get the current timestamp in C++. Thanks for your help!
Following your suggestion,
QTime is only for a day. http://developer.BlackBerry.com/Cascades/reference/QTime.html#details
I found "QDateTime" of references of the API: http://developer.blackberry.com/cascades/reference/qdatetime.html#toTime_t
QDateTime = now QDateTime::currentDateTime();
timestamp long = now.toTime_t ();But I got an error. I searched but no results are clear:
-variable 'QDateTime now' initializer has but
incomplete type
-type incomplete "QDateTime" used in the nested name
specifier ofI am a newbie. So thank you for your help
-
How to get the manual for Satellite Pro 4200?
How to get the manual for Pro 4200. I have download olm_up and setup.exe (72 kt) of http://eu.computers-toshiba-europe.com?.
Hello
Please visit this link:
http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/download_manuals.jspI m you will find a good manual of your device.
Good bye
-
How to get the items on a loop at the same time during the execution of the loop for
Hello
I am a student. I would like to know how to get the outside loop counter values For in parallel so that the loop runs rather than obtaining the value finally outside the loop for future prospects for the answers.
Thank you
Frederick
You already said yes, and you have said some of the different ways (registrants, locals, reference, queue, etc.). Since the information was provided to your request, the thread can be considered closed? If you want details about how to implement something, you must provide the details on what you are doing.
-
I have a single open for Exchange 2007 Standard how license get the product key
I have a single open for Exchange 2007 Standard how license get the product key
For assistance, please contact the administrator of your Open License program.
-
How to get the code produced for my Windows XP disc if I have the drive?
Acquisition of Product Code Windows XP
How to get the code produced for my Windows XP disc if I have the drive? I signed the BONE when I bought it all first, but have no way of knowing if this is the way to receive a copy of the product key.Here are some utilities, which will display your product keys:
Belarc Advisor: http://www.belarc.com/free_download.html
(He did a good job of providing a wealth of information.
However may not detect a key to office, then try one of the other two below)Also: http://www.nirsoft.net/utils/product_cd_key_viewer.html
and: http://www.magicaljellybean.com/keyfinder.shtmlPaid (free demo is available): Recover Keys: http://recover-keys.com/
"quickly scans your system for more than 3000 + software '.
and produces a list of software activation keys.13 keyfinder programs:
http://pcsupport.about.com/od/productkeysactivation/TP/topkeyfinder.htmJ W Stuart: http://www.pagestart.com
-
How to get the source to windows vista Home premium recovery is not from the recovery partition and gives me an error message
Hello
Contact the computer manufacturer and ask them to send you to vista recovery disks to reinstall the operating system back as it was when you bought it
they do it for a nominal cost of $
or borrow a vista microsoft dvd; not a HP, Acer recovery disk etc
Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer
they contain all versions of vista
This is the product key that determines which version of vista is installed
http://www.theeldergeek.com/Vista/vista_clean_installation.html
How to replace Microsoft software or hardware, order service packs and replace product manuals
-
How to get the new update for the help and support
OT:how to get the new update of the abd support help
How to get help and support update
Hello rickstemberger,
Please click the number of the KB article for more information on how to add Windows Vista Help files.
KB Article ID: 917607 -I can not open Help files that require the Windows Help program (WinHlp32.exe)Microsoft stopped including the 32-bit help files viewer in versions of Windows starting with Windows Vista and Windows Server 2008.
However, with article 917607, you can download the appropriate version of the Windows Help program (WinHlp32.exe) and add them
the operating system.Sincerely,
Marilyn
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
original title: admin password.
I forgot my password for my admin user account, but I have a secondary account how to get the password for the admin
Hello
Microsoft technical support engineers cannot help you recover the passwords of the files and Microsoft who are lost or forgotten product features. For more information about this policy, please refer to the sticky below.http://social.answers.Microsoft.com/forums/en-us/vistasecurity/thread/3eba3150-8742-4264-be9f-0daaad2282cd Lisa
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
Hello
I built a windows c# application that accesses OS, printer information using WMI query, monitor keyboard strokes overall Win32 API and calls others our executables too.
Whenever I try to deploy it to computers to our customers, it is getting blocked by antivirus applications.
If I want to make my request as being approved, we mean that it shouldn't be blocked by antivirus applications.
How to get the certificate of trustee for my application? Even I am ready to make my request as registered product.
Kindly let me know the procedures, solutions.
Thank you
Senthilkumar AK
This issue is beyond the scope of this site and must be placed on Technet or MSDN -
Passport for BlackBerry blackBerry Passport Silver Edition - how to get the language pack
Hello
I'll buy the SIlver Edition of uk.blackberry.com Passport and would like to know how to get the language pack (Hungarian).
Thanks a lot for your help.
Klaudia
the language of your choice in the value parameters
-
How to get the installed Application timestamp programmatically
How to get the installed Application timestamp programmatically
Can you please help me.
I'm sure you could find yourself by reading the API.
-
How to get the device model, for example app works on PlayBoook or BlackBerry 10?
How to get the device model, for example app works on PlayBoook or BlackBerry 10?
You can use this class: http://goo.gl/GtMLP for information on devices
something like this:
String myDeviceModel = android.os.Build.MODEL; String myDeviceBrand = android.os.Build.BRAND; String myDeviceDevice = android.os.Build.DEVICE;
-
How to get the password for my blackberry BlackBerry Smartphones?
Hello everyone,
I would like to know how to get the password for the purpose of activation. My phone is blackberry bold 9700...
Thank you
You must call your network and they will advise you the plans they have. There is usually a monthly for the BIS service, which includes the internet aswell.
Once this is done, your phone will be automatically the personal e-mail address of installation option.
I hope this helps.
Maybe you are looking for
-
I can't access iCloud parameters. The icon is there, but when I click on it nothing happens. I went into general settings to ensure that no restrictions were on. Also recently noticed that the personal hotspot service is no longer available on my pho
-
Satellite A200: VRAM 64 GB or 256 GB Ati Mobility Radeon HD 2400 graphics card
Hello, (I have poor speak English; p) I have problem with my Toshiba A200 (PSAE6E). My graphics card Ati MR HD 2400 in Win XP screen 256 MB of Ram, but the Pro Evolution Soccer 2009 parameters only 64 MB of Ram! Toshiba a200 - 1 QTCPU Core2Duo T55502
-
HP G71-340us: my laptop monitor G71-340us
My laptop works fine with an external monitor, but laptop screen is dead. I replaced the cable of the monitor and the video. Any help?
-
RL80, boot problem, the fan turns on, beeps continuously
My RL80 turns on, the fan turns on, but issues continually and won't place. I can't say if the HD is rotating upward. Date of the meeting 1/13. RAM 4 GB, 500 G HD. Tried unplugging the battery and moving that the clear bios jumper. Always do the s
-
my computer does not work properly and very slow
Dear Sir. my pc does not work properly and very slow Can you help me