How can 1 derive / display 3 second interval lines from the existing timestamp values

Hello

I'm trying to produce the number of lines that occur in intervals of 3 seconds and cannot work out how to use the timestamp values existing in the table of products or the display of lines with a second gap 3? The table rows look like this:

NAME (EDT) 1

1111 JANUARY 30, 15 12.29.09.000000000

PPPP JANUARY 30, 15 12.29.10.000000000

PPPP JANUARY 30, 15 12.29.11.000011111

1111 JANUARY 30, 15 12.29.11.000055555

PPPP JANUARY 30, 15 12.29.17.000000000

PPPP JANUARY 30, 15 12.29.18.000000000

1111 JANUARY 30, 15 12.29.29.000000000

PPPP JANUARY 30, 15 12.30.23.000000000

PPPP JANUARY 30, 15 12.30.25.000000000

1111 JANUARY 30, 15 12.30.27.000000000

PPPP JANUARY 30, 15 12.30.29.000000000

PPPP JANUARY 30, 15 12.30.31.000000000

1111 JANUARY 30, 15 12.30.33.000000000

PPPP JANUARY 30, 15 12.30.35.000000000

PPPP JANUARY 30, 15 12.30.37.000000000

1111 JANUARY 30, 15 12.30.39.000000000


And the output that I'm trying to reach/drift (initially) is as follows:


Timestamp1                            Count

30 JANUARY 15 12.29.09 4

JANUARY 30, 15 12.29.12 0

JANUARY 30, 15 12.29.15 1

JANUARY 30, 15 12.29.18 1

JANUARY 30, 15 12.29.21 0

JANUARY 30, 15 12.29.24 0

JANUARY 30, 15 12.29.27 1

JANUARY 30, 15 12.29.30 0

JANUARY 30, 15 12.30.30 1

JANUARY 30, 15 12.30.33 1

JANUARY 30, 15 12.30.36 1

JANUARY 30, 15 12.30.39 1


Thus, the main problem that I see trying to derive the first column of numbers as shown above. If someone could give me help on this I would be very grateful.


Kind regards


Kevin.


with (name, time 1) testdata until)

Select "1111", to_timestamp (January 30, 15 12.29.09.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "PPPP", to_timestamp (January 30, 15 12.29.10.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "PPPP", to_timestamp (January 30, 15 12.29.11.000011111', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "1111", to_timestamp (January 30, 15 12.29.11.000055555', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "PPPP", to_timestamp (January 30, 15 12.29.17.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "PPPP", to_timestamp (January 30, 15 12.29.18.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "1111", to_timestamp (January 30, 15 12.29.29.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "PPPP", to_timestamp (January 30, 15 12.30.23.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "PPPP", to_timestamp (January 30, 15 12.30.25.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "1111", to_timestamp (January 30, 15 12.30.27.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "PPPP", to_timestamp (January 30, 15 12.30.29.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "PPPP", to_timestamp (January 30, 15 12.30.31.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "1111", to_timestamp (January 30, 15 12.30.33.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "PPPP", to_timestamp (January 30, 15 12.30.35.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "PPPP", to_timestamp (January 30, 15 12.30.37.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

Select "1111", to_timestamp (January 30, 15 12.30.39.000000000 ',' dd-mon-yy hh24:mi:ss.ff "") of the double

)

, d (mn, mx, cnt) as)

Select min (time1) - second "3" interval

, max (time1) - interval of second '3'

,      -1

of testdata

Union of all the

Select

MN + interval of second '3'

mx

, (select count (*) in testdata where time1 > = mn + '3' second interval and time 1)< mn="" +="" interval="" '6'="">

d

where mn<=>

)

Select

MN

cnt

d

where NTC! = - 1

Mn, mx, NTC group

Agenda minutes;

Tags: Database

Similar Questions

  • On the right of the adressbox, I always have Yahoo then Google, how can I solve that, I already delete Yahoo from the list in the box search, but every time I start firefox Yahoo is back. Thanks Ron Mijtelen ter, Amsterdam.

    Question
    On the right of the adressbox, I always have Yahoo then Google, how can I solve that, I already delete Yahoo from the list in the box search, but every time I start firefox Yahoo is back. Thanks Ron Mijtelen ter, Amsterdam.

    Hi Ron,

    Have you looked at article in the Knowledge Base using the search in Firefox bar? There are lots of good information in there. You happen to have an installed Yahoo! toolbar? You must disable or delete as well if you do. Try to start Firefox in Mode safe mode by holding down the SHIFT key while starting Firefox. If you have any problems using the safe, it's a matter of add-on or extension.

    Hope this helps!

  • Followed my previous inquiry, my hard drive crashed and lost my copy of Acropbat 9 in installing the new hard drive.  How can I go to re - install Acrobat 9 from the disc, I hold. Thank you, Don Hamilton

    Followed by my previous inquiry, my hard drive crashed and lost my copy of Acrobat 9 in the installation of the new hard drive.  How can I go to re - install Acrobat 9 from the disc, I hold. Thank you, Don Hamilton

    Just reinstall from the disc (or download it from https://helpx.adobe.com/acrobat/kb/acrobat-8-9-product-downloads.html) and activate it with your serial number.

    If your number of activations exceeds max (2), then you will need to contact customer service.

  • Configuration of the AUSST. How can I easily check (Mac) computers are updated from the server AUSST?

    I installed everything according to the recipe. Video Karl Gibson watched this probably five times.

    A server

    Users have AdobeUpdate.Overwrites file in place

    Everyone's updates (couldn't than before by themselves).

    How can I easily see that updates are downloaded from the server AUSST instead of directly from Adobe online?

    I found this on my own.

    The answer lies (on mac) in the/Applications/Utilities/Console

    Look in the sidebar to download Adobe

    DML.log

    Hope this helps someone.

    22/06/14 21:32:13:409 | [INFO] |  |  |  |  |  |  | 2867720 | The download file is http://.local:80/Adobe/updates/oobe/aam20/mac/AdobeExtensionManagerCC-7.0/7.2/setup .dmg

  • How can I get data (txt file with data from the 5 sensors) in a graph?

    I have a txt file that reads

    time, data1, data2, data3, data4, recentes5, yes/no

    example:

    0,450,427,421,480,622,0
    4,561,513,478,466,540,0
    8,547,531,510,492,515,0
    12,528,524,513,495,525,1
    36,531,524,515,505,534,1
    65,537,528,519,511,539,1
    

    Where the last song realates to a buzzer

    I need a chart that shows all 5 data point (so a graph with 5 lines)

    How can I do this?

    Also, is there a way to show the Yes/No part in LanView?

    Here it is:

    It's very simple.

    1. open the text file in a spreadsheet file.  You can connect a control of path or if left blank, it will prompt for a path.

    2. set the comma as separator.

    3. display the values on the graph.

    I just added a digital table indicator so that you can see the values as exactly those of the file.

    To learn more about LabVIEW, I suggest that you try to watch some of these tutorials.

  • IBM Thinkpad with XP Home Edition preinstalled but no XP installation CD. Will need to re - install XP from CD after planned hard drive upgrade. How can I create a CD to install XP from the installed system?

    Hi, I bought an IBM Thinkpad with XP Home Edition pre-loaded in 2005 (the XP key sticker is on the bottom of the laptop), but did not receive an XP installation CD - I understand, it is a common practice. I want to improve the internal hard drive (for a bigger) then you will need to re - install XP from CD. They tell me that there is a way to create the XP (on the CD burner) installation installation CD but have no idea how. I can't imagine I'm the only person to have had this problem. Can you tell me where I can find the instructions how to do this please? Any help is welcome. Thank you very much.

    There are many cloning utilities, but I recommend Acronis True Image. You can clone your hard drive, then use TI to the image of your system and to make incremental backups. MS - MVP - Elephant Boy computers - don't panic!

  • How can I reinstall java if I deleted it from the registry

    I uninstalled Java, but it was still listed under programs in Control Panel. I deleted Java from the registry. Now when I try to reinstall, I get an error message that says that Java is already installed on my computer, but it's not. When I try to check that I have before trying to reinstall, the message says that there is no version of Java on my work computer.

    Try / re How can I cleaning after uninstalling Java registry failed

  • How can I get my [* address email is removed from the privacy *] email and folders back which took me about a month ago?

    About a month there is a Monday morning my email and folders disappeared, some overseas has my contact list send email hooks in my contact list, ask for money to get home, and I did not even leave the House. All my contacts called early this morning to let me know. Well well my email address [* address email is removed from the privacy *] and my password was gone. Important files and photos in folders also disappeared. I tried to get them through windows live help and still cannot get back them. They are lost forever, or I do something wrong? How to make a comeback?

    Hello

    You will need to create a post on www.windowslivehelp.com for any question / help with the Windows Live programs and services.

  • How can APEX 5 you add to a Script of the existing Installation of export?

    When I create a new image or an external file, the APEX 4, I could go to ' manage supporting objects ', 'create from scratch '.  Here, there is an area where I could add my new image/external file to the list of items in the current application in a Setup Script.  This installation Script can be exported in a different workspace such that all the images/external files are loaded only once.  Though awkward, I could use this handy feature.  However, the APEX 5, it seems to have been deleted altogether.  There is only the Scratch options "Create from" or "creating a file.  It is not good that the APEX expects that the file sort of a "MIME" or coded text format she calls the wwv_flow_api.create_or_remove_file () function.  If anyone knows how to convert an image into something accepted by wwv_flow_api.create_or_remove_file ()?

    test.png

    f4ef6fbb-E966-481e-9935-050cb9bb4041 wrote:

    Please update your forum profile with a recognizable username instead of "f4ef6fbb-e966-481e-9935-050cb9bb4041": Video tutorial how to change username available

    When I create a new image or an external file, the APEX 4, I could go to ' manage supporting objects ', 'create from scratch '.  Here, there is an area where I could add my new image/external file to the list of items in the current application in a Setup Script.  This installation Script can be exported in a different workspace such that all the images/external files are loaded only once.  Though awkward, I could use this handy feature.  However the 5 APEX, it seems to have been deleted altogether.  There is only the Scratch options "Create from" or "creating a file.  It is not good that the APEX expects that the file sort of a "MIME" or coded text format she calls the wwv_flow_api.create_or_remove_file () function.  If anyone knows how to convert an image into something accepted by wwv_flow_api.create_or_remove_file ()?

    It is not necessary to create a separate export for static application files in APEX 5.0. They are automatically included in the export of the application. Workspace and static application files can also be imported and exported in bulk as ZIP files.

  • How can I download Adobe Premiere Elements 8.0 from the old system

    I have Elements 8.0 on my old system, and I am trying to download it on my new laptop. I have the serial number, but I can't understand how do. Adobe.com does not seem to offer anything prior to 9.0.

    kglad links in response to #1 here can help https://forums.adobe.com/thread/1986122

  • How can desktop, Inspiron 3252, Windows 10, I boot from the dvd?

    I just bought an Inspiron 3252 with 10 Windows desktop computer.  I want to run a distribution Linux of LiveDVD is only, not to install it.  Then I make an image burning the ISO to a DVD and then try to start just boots in new Windows 10.  I looked in the BIOS but saw nothing on the order of startup, etc...

    Any help to help me start from a DVD in Windows 10 would be greatly appreciated!

    Thank you!

    http://www.howtogeek.com/175641/how-to-boot-and-install-Linux-on-a-UEFI-PC-with-secure-boot/

  • How can I add a watermark via JavaScript which includes the current timestamp?

    Part of my daily work process here is to analyze in a huge stack of incoming mail. I then OCR scans, delete the white pages and add a watermark. I have a batch set up for the first two steps, but I can't make a watermark for the datestamp himself and had to do so via JavaScript, but I a luddite-level understanding of it.

    Right now, these are my settings that I use to add the timestamp:
    datestamp field.jpg

    What I want to do is to run a script to do the same and insert the date of the day I mm-jj-aa currently, but I don't have the first clue of where to start. Any help you could provide would be very appreciated

    You can use the method doc.addWatermarkFromText () as a step in JavaScript in Action.

    for example

    var dt = new Date();

    stoday var = (dt.getMonth () + 1) + '-' + dt.getDate () + '-' + dt.getFullYear ();

    this.addWatermarkFromText({)

    cText: 'Deposit\r' + stoday,.

    nTextAlign: app.constants.align.right,

    nHorizAlign: app.constants.align.right,

    nVertAlign: app.constants.align.top,

    nHorizValue:-72, nVertValue:-72

    });

    See the SDK help files for more information on what do all the settings.

  • How can I restore "I m feeling lucky" search from the url bar of firefox?

    I used to be able to type the name of a Web page in the firefox url bar, and I'd go straight to the Web site. For example, I would seize "rotten tomatoes", press on enter and come up with www.rottentomatoes.com. Now, instead of going directly to the site, need me to a google search page. This used to be listed: keyword.url config, but it no longer works. I have firefox 27 for windows.

    Hello

    keyword. URL Hack!

    Take the keyword. Preference of URL on Firefox 23 and upward.

  • How can I get my iphone free sim purchased from the United States to work in Nigeria

    I got an Iphone 6 s sim free fully released for the United States. I used 2 weeks with T-Mobile sim. I'm back to Nigeria and my phone did not work with my local sim. What should I do it to be functional. Thank you

    http://www.Apple.com/iPhone/LTE/

    I see not supported for any carrier in Nigeria but your more than welcome to check.

  • How can I disable my driver to disconnect me from the internet?

    HP G72 laptop product # XN517UA #ABA

    Windows 7 64 bit

    no error but the difficulty to keep the internet connection. I have T-mobile web connector and went wrong w/t-mobile, and they claimed that my driver is disconnect the internet connection.

    I made no changes to my laptop and all udaptes are up to date.

    deeR504 wrote:

    When I use a LAN connection I don't waste connection. It is only when I use my web connector that I lose the connection online. I just need to know if it's my web connector or the drivers. As I've mentioned before that I called T-monbile and they say this isn't the web connector because it has no problem connecting to the internet, it's the fact that he cannot keep a bc driver connection disables the web connector.

    I have the T-mobile 4 g rocket

    I have Windows 7 Home Premium version 6.1 (64-bit)

    If there is no connectivity problem with the connection to the local network, then the problem is most likely to be the firmware / software driver and/or web interface provided by T-Mobile with their dongle.

    Have you been to the T-Mobile forums to see if others are having problems?

    I found that other people know the firmware problems and connectivity. You are not alone. If your normal edge wireless works very well and the local network connection (wired) has no problems T-Mobile dongle is the problem. The dongle come with a warranty.

Maybe you are looking for