Can't get same results on query using dynamic time frame versus static time frame

I am trying to run a query on a Lookout database using MS Access. If I use static dates as criteria in the "LocalTime" field I get results that are marked on the hour, eg. 1:00 pm. If I try to use dynamic dates as criteria I get results that are marked on the half hour, eg. 1:30 pm. The results are for each hour but the difference in the queries causes the dynamic query to come up with different results than a spreadsheet generated by Lookout that the client relies on for backup. Does anybody know a way I can get the dynamic date query to act like the static query? I can't use static queries because this is for a daily report and the client will not pay for me to make 365 new queries each y
ear. I tried NI's tech support but they pointed me to the same SQL examples that are in the Developer's Manual which are all static queries. Tech Support also told me they can't help me figure out dynamic queries.

Yes I am using an interval clause that says "interval=1:00". I create the localtime clause dynamically and this seems to be where my problem lies. No matter what I have the dynamic function create the date/time as, i.e., 07/01/2002 or 07/01/2002 12:00 AM or 07/01/2002 00:00, the time the query returns for each record is 32 minutes after the hour. From this I assume it is averaging each hour interval from one half hour mark to the next, eg. from 12:30 am to 1:30 am. This is born out because the hourly averages do not match the averages for the same time frame that Lookout exports to an Excel spreadsheet. Thanks for your suggestion though.

Similar Messages

  • Can't get the result if I use SUBSTR From the resultSet

    Hi,
    I have a request that make some changes on a String data.
    This modification is an extraction of a sub string with SUBSTR function of oracle.
    The problem is that I can to get the result on my java code
                   pst = connect.prepareStatement(GET_PATH);
                   rset = pst.executeQuery();
              while (rset.next()) {
                   String chemin = rset.getString("IMG_PATH"); // rset.getString(2);
                   system.out.println("Le chemin récuperé de la base est : " + chemin);
                   chemins.add(chemin);
              }this is the request :
    SELECT DISTINCT nl.img_id, SUBSTR(ni.img_chemin, 1, INSTR(ni.img_chemin, '\', -1)) IMG_CHEMIN from images nlThe oracle documentation say the SUBSTR function return a STRING type.
    Thnaks for your help. (And sorry for my little english)
    Technical Information :
    DB : ORACLE
    DRIVER VERSION : ojdbc14-10.2.0.3.0.jar (tested with version 9 same thing)
    Java 6 update 3
    Edited by: Aberghouss on 29 août 2008 17:11

    Aberghouss wrote:
    Hi,
    I change the INSTR(ni.img_chemin, '\', -1) by number 20 and the program get correctelly the value
    SELECT DISTINCT nl.img_id, SUBSTR(ni.img_chemin, 1, 20) IMG_CHEMIN from images nlNow have you any idea how can I resolve this problem with INSTRLittle confusing what you are actually doing.
    You need to post code that actually has the problem.
    Given that you are using names, rather than indexes, usually the problem is that the name doesn't match what is actually in the meta data. Try printing the meta data. And try using indexes just to verify that there is in fact a result (which would be another reason for not getting it.)

  • Every time I open photoshop elements 11, it uninstalls. I have tried reinstalling 3 times, but get same result

    Every time I open photoshop elements 11, it uninstalls. I have tried reinstalling 3 times, but get same result.
    Can anyone help with this issue? Please!

    Hi 49balf,
    Thanks for visiting Apple Support Communities.
    I recommend removing and reinstalling iTunes using these steps:
    Check for .dll files
    Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
    If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
    Reboot your computer.
    Note: Depending on your operating system, you may only have one of the listed paths.
    Uninstall and reinstall iTunes
    Uninstall iTunes and all of its related components.
    Reboot your computer. If you can't uninstall a piece of Apple software, try using the Microsoft Program Install and Uninstall Utility.
    Re-download and reinstall iTunes 11.1.4.
    You can find the article with these steps and more information here:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Best,
    Jeremy

  • How can we get requester's user id using java code

    Hi,
    How can we get requester's user id using java code?
    eg: If i had logged in as xelsysadm and request a resource for user uid101 on the userid field it should display uid101 and not xelsysadm.
    also,
    I have a resoure "A" which on revoking should also revoke resources B and C. How can it be done. Resource A, B, and C are 3 different resource objects.
    ==Thanks,
    doki

    Ok, so there is a way, but it's not available during submission. You can use the findRequests api. From the result set, get the "Requests.Consolidated Data Value" value. In this information, you will get an xml formatted data. It provides the list of users on the request on the left side after submission. After the request is completed, this value is available. Upon completion, you could get the request information, get this value, and parse the information for user ids.
    In the same adapter, use the following API:
    formIntf.setObjectFormData(objInstanceKey, formHash)
    The formHash is a hashtable containing the field name on your object form, and the values you wish to populate it with. You could create a textarea box on your object form and populate the userids for who the request is for.
    However, this makes absolutely 0 sense. When you get a request, the list of userids are listed right there on the request.
    -Kevin

  • Nas on airport extreme not recognized by time machine. same nas was previously used as time machine backup on different airport extreme. are there any configuration files that i can delete to fix this problem ?

    nas on airport extreme not recognized by time machine. same nas was previously used as time machine backup on different airport extreme. are there any configuration files that i can delete to fix this problem ?

    Time Machine has been working just fine, but in the last week or two it has given up the ghost. I reset the connections to the drive, and it will basically save a few bytes of data and then hang.
    Although Apple originally announced, prior to the release of the first 802.11n AirPort Extreme Base Stations (AEBSn), that it would support Time Machine backups to AirPort Disks, they removed that option before they did finally release the base station for sale.
    Since then, Apple has posted (as you have noted) that they DO NOT support Time Machine backups to AirPort Disks. As far as I know, they have not changed from that position and those who do these backups find that they become corrupted over time. Sorry, but it sounds like you just confirmed that for yourself.
    1) Has one of the recent updates either on the AE (firmware) or OSX disabled this function?
    No. Again, this feature has never been supported by Apple for every generation of AEBSn released.
    2) Are there any changes I can make to get this working again?
    If your data backups are critical to you, then you will want to use a different solution for your Time Machine backup destination drive strategy. I would suggest that you connect your WD My Book directly to your Mac in the mean time.
    Your other options would be to either use a Time Capsule (which interestingly does support TM backups to AirPort Disks) or a non-Apple solution like the Drobo FS or HP MediaSmart server.

  • I have a satellite m55-s331 and I can't get my modem to "Query".

    I have a satellite m55-s331 and I can't get my modem to "Query".My modem is a Toshiba V.92.I think I need another driver even though it shows OK in my device manager.
        The error I get when I try to go on-line is "Modem (or other connecting device)is already in use or is not configureed."

    Satellite M55-S331
    See these Microsoft articles.
       Error Message: Error 633 Modem Is Already in Use
       Resources for troubleshooting modem problems in Windows XP
    -Jerry

  • I can't get my ipad3 to backup using iCloud.. It times out right at the end of backup

    I can't get my ipad3 to backup using iCloud.. It times out right at the end of backup. The blue bar nearly fills up and right at the end a message pops up saying the backup could not be completed.

    Tried that.. No joy. Just tried to synch again with iCloud . The bar gets nearly to the end and then stops. Says below it - estimated time remaining.... I'm confused. If I synch to my computer is this the same as synching to iCloud. It's shame it's doesn't work!

  • If i used the same apple id and email to set up both my ipad and ipod what can i do to be able to use face time to call from one device to the other

    if i used the same apple id and email to set up both my ipad and ipod what can i do to be able to use face time to call from one device to the other

    They can share an Apple ID, but each device must use a different email address when setting up FaceTime.  Create a gmail email (or hotmail, or ...) address and use that on one of the devices when you setup FaceTime.
    You don't actually have to use the 'new' email address, it is probably just used as an index to reference the correct device when initiating a call via the FaceTime server.

  • I have a photo album in my apple tv but can't get the apple tv to use it as a screen saver. it is using older photos

    I have a photo album in my apple tv but can't get the apple tv to use it as a screen saver. it is using older photos

    Is this a software or hardware issue? 

  • How can we get  tag of XML file using SAX

    Hi ,
    I'm parsing one SAX parser , I'have almost done this parsing. i have faced problem for one case, i'e how can we get tag from XML file using SAX parser?
    XML file is
    <DFProperties>
    <AccessType>
    <Get/>
    </AccessType> <Description>
    gdhhd
    </Description>
    <DFFormat>
    <chr/>
    </DFFormat>
    <Scope>
    <Permanent/>
    </Scope>
    <DFTitle>gsgd</DFTitle>
    <DFType>
    <MIME>text/plain</MIME>
    </DFType>
    </DFProperties>
    I want out like GET and Permanent... means this one tag which is present inside of another tag.
    Handler class like
    public void startElement(String namespaceURI, String localName,
                   String qName, Attributes atts) throws SAXException {
    if(_ACCESSTYPE.equals(localName)){
                   accessTypeElement=ACCESSTYPE;
    public void characters(char[] ch, int start, int length)
                   throws SAXException {
    if (_ACCESSTYPE.equals(_accessTypeElement)) {
                   String strValue = new String(ch, start, length);
                   System.out.println("Accestype-----------------------------> " + strValue);
                   //System.out.println(" " + strValue);
    public void endElement(String namespaceURI, String localName, String qName)
                   throws SAXException {
    if (_ACCESSTYPE.equals(localName)) {
                   _accessTypeElement = "";
    . please any body help me

    Hi ,
    I have one problem,Please help me.
    1. How can I'll identify where exactly my Node is ended,means how how can we find corresponding nodename? in partcular place
    <Node> .............starttag1
    <NodeName>Test</NodeName>
    <Node>................starttag2
    <nodeName>test1</NodeName>
    </Node>..................endtag2
    <Node>.....................starttag3
    <NodeName><NodeName>
    <Node> .........................starttag4
    <NodeName>test4</NodeName>
    </Node>.......enddtag4
    </Node>...........end tag3
    </Node>............endtag1
    my code is below
    private final String _NODENAME = "NodeName";
    private final String _NODE = "Node";
    private String _nodeElement = "";
         private String _NodeNameElement = "";
    public void startElement(String namespaceURI, String localName,
                   String qName, Attributes atts) throws SAXException {
    if (_NODENAME.equals(localName)) {
                   NodeNameElement = NODENAME;
    if(_NODE.equals(localName)){
         System.out.println("start");
         if (_NODENAME.equals(localName)) {
                   NodeNameElement = NODENAME;
    public void characters(char[] ch, int start, int length)
                   throws SAXException {
    if (_NODENAME.equals(_NodeNameElement)) {
                   String strValue = new String(ch, start, length);
                   String sttt=strValue;
                   System.out.println("NODENAME: ************* " + strValue);
    if(_NODE.equals(_nodeElement)){
                   if (_NODENAME.equals(_NodeNameElement)) {
                        String strValue = new String(ch, start, length);
                        String sttt=strValue;
                        System.out.println("nodevalue********** " + strValue);
    public void endElement(String namespaceURI, String localName, String qName)
                   throws SAXException {
    if (_NODENAME.equals(localName)) {
                   _NodeNameElement = "";
    if(_NODE.equals(localName)){
                   System.out.println("NODENAME: %%%%%%%%%");
    please help me. How can I figure node ending for particular nodename

  • Can I get audio through iPhone when using apple tv?

    Can I get audio through iPhone when using apple tv?

    What do you mean exactly? Are you wanting to output the audio to your iPhone while say watching a video on your Apple TV?  If so, I'm afraid it's not possible.  However, you should post this in the Apple TV forums for a better confirmation on then.  There are some prettty knowledgable people who hang out there.
    https://discussions.apple.com/community/appletv
    B-rock

  • How can I get the App store to use money in my account rather than a credit card when I want to buy something?

    How can I get the App store to use money in my account rather than a credit card when I want to buy something?

    The iTunes/Mac App Stores use credit on an account first. You are asked to supply an additional payment method when the cash credit doesn't cover the complete cost of the purchase.

  • I can't get my Ipad to airprint using my brother MFC-J625DW

    I can't get my Ipad to airprint using my brother MFC-J625DW. Can someone please help?

    Your printer is not on the list of approved Airprint printers.
    http://support.apple.com/kb/ht4356
    Try using Print Central or Print n Share.

  • [SQL] how can i get this result....??(accumulation distinct count)

    [SQL] how can i get this result....??(accumulation distinct count)
    Hi everybody,
    pls tell me how can it possible to get result?
    ### sample data
    date visitor
    10-01 A
    10-01 A
    10-01 B
    10-01 B
    10-01 C
    10-01 C
    10-02 A
    10-02 C
    10-02 C
    10-02 D
    10-02 D
    10-03 B
    10-03 B
    10-03 B
    10-03 A
    10-03 A
    10-03 F
    10-04 A
    10-04 A
    10-04 F
    result that i want...like this.
    date date_unqiue_visitors acc_date_unique_visitors
    10-01 3 3
    10-02 3 4
    10-03 3 5
    10-04 2 5
    date distinct visitors : count(distinct visitor)
    but how can i get accumulation distinct visitor count???
    Thanks to every body..

    SQL> select dt,cnt,sum(cnt1) over(order by dt) cnt1
      2  from(
      3  select dt,count(distinct visitor) cnt,sum(flg) cnt1
      4  from
      5   (select dt,visitor,(select decode(count(*),0,1,0)
      6                           from test
      7                           where rowid < t.rowid
      8                           and visitor = t.visitor) flg
      9   from test t)
    10  group by dt);
    DT                CNT       CNT1
    10-01               3          3
    10-02               3          4
    10-03               3          5
    10-04               2          5
    Message was edited by:
            jeneesh
    Wrong...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How can I get required result

    How can I get bellow result...
    For row 1 in Table X: There should be one row in result table.
    For row 2 in Table X: These should be 2 rows one for each package code
    For rows 3 and 4: The X table should be joined with Table Y and create the # of rows depending on the # of Section codes that are in the range of B01M-U01M and B04F-U04F. These are just some sample rows, they code be several rows with the above scenarios in those tables.
    Table X
    Grp_#
    Grp_Name
    Package num
    Product #
    111
    aaa
    123
    PPO
    222
    bbb
    002, 007
    EPO
    333
    ccc
    108-B01M-U01M
    CMM
    444
    ddd
    008, 128-B04F-U04F
    PPO
    Table Y
    ID
    Grp_#
    Pkg_cd
    Section_num
    1
    333
    108
    B01M
    2
    333
    108
    E01M
    3
    333
    108
    U01M
    4
    444
    008
    B04F
    5
    444
    008
    D04F
    6
    444
    008
    M04F
    7
    444
    008
    U04F
    8
    444
    128
    B04F
    9
    444
    128
    C04F
    10
    444
    128
    U04F
    11
    111
    123
    B01E
    12
    222
    002
    B01G
    13
    222
    007
    M04G
    Result Table
    Grp_#
    Grp_Name
    Package num
    111
    aaa
    123
    222
    bbb
    002
    222
    bbb
    007
    333
    ccc
    108-B01M
    333
    ccc
    108-E01M
    333
    ccc
    108-U01M
    444
    ddd
    008-B04F
    444
    ddd
    008-D04F
    444
    ddd
    008-M04F
    444
    ddd
    128-B04F
    444
    ddd
    128-C04F
    444
    ddd
    128-C04F
    444
    ddd
    128-U04F
    Thanks in advance.
    Thanks
    Pathan

    I am very sorry, please ignore this mail..... I have pasted more thread. I am unable to paste table format over here.
    Thanks
    Pathan

Maybe you are looking for

  • Casting in ABAP Objects

    Why the cast error generates only in Widening cast?

  • My iTunes doesn't start since the last update

    I am using mac os x 10.7.4 and itunes 1.6.3. since this update itunes does not start anymore. What can I do ?

  • Web site that doesn't work

    Been trying to look at upgrading service on-line for a week now!  Can't get website to provide information, or get an email to send question to.  Don't want to spend hours on phone trying to get an answer.  Beginning to regret that I only have 1 opti

  • What's a good video cature device?

    So I was wondering, what is a good media capture device for streaming? I'm thinking an external for portability purposes. Also when I buy one, whats a good software to get along with it? Adobe Premiere Elements, Sony Vegas+DVD Production Suite? I'm s

  • This phone is terrible!!!

    In July I purchased the Droid Incredible 2. It worked for about 2 weeks and ever since then i've been having issues. With every issue i had i called into Verizon, and every representative sent me a refurbished phone. Since July i've had 5 phones sent