Query Problem - Group data by time

I have statistic data that record by time such as
Time Data
19-MAR-06 10:01 100
19-MAR-06 10:02 100
19-MAR-06 10:03 100
19-MAR-06 10:04 100
19-MAR-06 10:05 100
19-MAR-06 10:06 100
I would like to group data every five minute start from 00:00 to 23:59 for example the result should be
Time Sum(Data)
19-MAR-06 00:00 0
19-MAR-06 00:05 0
19-MAR-06 10:00 400
19-MAR-06 10:05 200
Any suggest?

SELECT times.all_time, NVL(real.sum,0)
FROM
   (SELECT  mintim + (level * (1/12/24)) - 1/12/24 AS all_time
    FROM    ( SELECT trunc(MIN(time),'DD') mintim
                   , trunc(MAX(time),'DD') + 1 maxtim
              FROM   testtab
    CONNECT BY mintim + (level * (1/12/24)) - 1/12/24 <= maxtim
    ) times,
   (SELECT TRUNC(time,'HH24') +
          (TRUNC(TO_CHAR(time,'MI')/5)*5)/24/60 real_time, sum(data) sum 
    FROM testtab                      
    GROUP BY  TRUNC(time,'HH24') + (TRUNC(TO_CHAR(time,'MI')/5)*5)/24/60) real
WHERE times.all_time = real.real_time(+)  
ORDER BY times.all_time
19-Mrz-2006     0
19-Mrz-2006 0:05:00     0
19-Mrz-2006 0:10:00     0
19-Mrz-2006 0:15:00     0
19-Mrz-2006 9:45:00     0
19-Mrz-2006 9:50:00     0
19-Mrz-2006 9:55:00     0
19-Mrz-2006 10:00:00     400
19-Mrz-2006 10:05:00     200
19-Mrz-2006 10:10:00     0
19-Mrz-2006 23:45:00     0
19-Mrz-2006 23:50:00     0
19-Mrz-2006 23:55:00     0
20-Mrz-2006     0

Similar Messages

  • Problem with date and time preference

    hi there,
    i set my date and time and the time support yesterday and then i click the lock button to prevent further chance and last night i shut down my iMac, open it again in the morning the lock open back up and the timezone support change.
    i redo that again and restart my iMac the same thing happen. is this a problem with my software or everyone have this problem?
    any idea what should i do?
    thanks in advance
    regards AL

    Having the same problem, & am running Parallels (which I haven't used for some time) not boot camp. I tick the box labeled "Set time automatically" & lock the "click the lock to make changes". When I reboot, the Lock is unlocked and the "set time...." is unticked. Any ideas. Cheers.

  • Problem with date and time syncing itouch to macbook

    i have a problem with the date and time on ical when i sync my itouch4 w my macbookair. whatever i entered into my calendar in itouch will appear different in my ical( with a 6 hrs advance difference) and the alarm i set on my itouch in the calendar doesnt ring at the right time as set even though it is shown the time that i wanted.
    Both my macbook n itouch are set to the same time zone and i have checked this many many times n the time is the same on both machine. but i just dont understand why is there a time difference when synced and my alarm just dont sound at the time it was supposedly set. it rings hours later n showing a different time that it was set but in the parenthesis the right time that i had set it.
    One time my computer ran out of battery n went into sleep mode and when i open it again, the time n date setting was all off. which im surprised why it had gone off. So did this create the problem i have now with the date n time sync or something else?
    please help!!!!

    Having the same problem, & am running Parallels (which I haven't used for some time) not boot camp. I tick the box labeled "Set time automatically" & lock the "click the lock to make changes". When I reboot, the Lock is unlocked and the "set time...." is unticked. Any ideas. Cheers.

  • Problem grouping data in xml file

    Hello All,
    Following is the sample xml file used as input source into my BIP stand alone report:
    <ROWSET>
    <SAMPLE_ROW>
    <ID>1234</ID>
    <CODE>A1</CODE>
    <TEXT>FIRST GRADE</TEXT>
    <CODE>B1</CODE>
    <TEXT>SECOND GRADE</TEXT>
    </SAMPLE_ROW>
    <SAMPLE_ROW>
    <ID>6789</ID>
    <CODE>C1</CODE>
    <TEXT>THIRD GRADE</TEXT>
    <CODE>B1</CODE>
    <TEXT>SECOND GRADE</TEXT>
    </SAMPLE_ROW>
    </ROWSET>
    The expected output should be:
    ID# 1234
    Grades: A1
    FIRST GRADE
    B1
    SECOND GRADE
    ID# 6789
    Grades: C1
    THIRD GRADE
    B1
    SECOND GRADE
    And the design i've created is:
    <?for-each-group:SAMPLE_ROW;./ID?>
    ID#<?ID?>
    Grades:<?CODE?>
    <?TEXT?>
    <?end for-each-group?>
    I could only display partial result but not able to achieve my desired output. Please guide.
    Thanks.

    Thanks Jorge,
    This structure can be arranged by my third party and the output came out as required.
    But we also have another report which would use the same xml file as one data source and a sql query as another data source. The total xml generated would look like:
    <DATA>
    <DT>
    <CLASS>
    <ID>1234</ID>
    <NAME>Rich Walker</NAME>
    <Dept>IT</Dept>
    </CLASS>
    <CLASS>
    <ID>6789</ID>
    <NAME>Steve Round</NAME>
    <Dept>Arts</Dept>
    </CLASS>
    <CLASS>
    <ID>1873</ID>
    <NAME>Mary Joyce</NAME>
    <Dept>Arts</Dept>
    </CLASS>
    </DT>
    <Main_XML>
    <ROWSET>
    <SAMPLE_ROW>
    <ID>1234</ID>
    <CODEROW>
    <CODE>A1</CODE>
    <TEXT>FIRST GRADE</TEXT>
    </CODEROW>
    <CODEROW>
    <CODE>B1</CODE>
    <TEXT>SECOND GRADE</TEXT>
    </CODEROW>
    </SAMPLE_ROW>
    <SAMPLE_ROW>
    <ID>6789</ID>
    <CODEROW>
    <CODE>C1</CODE>
    <TEXT>THIRD GRADE</TEXT>
    </CODEROW>
    <CODEROW>
    <CODE>B1</CODE>
    <TEXT>SECOND GRADE</TEXT>
    </CODEROW>
    </SAMPLE_ROW>
    </ROWSET>
    </Main_XML>
    </DATA>
    And the rtf template i've designed(which is not working):
    <?for-each-group:CLASS;./ID?>
    ID# <?ID?>
    <?variable@incontext:v_id;ID?>
    Name: <?NAME?>
    Dept: <?Dept?>
    <?for-each-group:current-group();./ID[../ID=$v_id]?>
    Grades: <?/DATA/Main_XML/ROWSET/SAMPLE_ROW/CODEROW/CODE?>
    <?/DATA/Main_XML/ROWSET/SAMPLE_ROW/CODEROW/TEXT?>
    <?end for-each-group?>
    <?end for-each-group?>
    The ideal output should be:
    ID# 1234
    Name: Rich Walker
    Dept: IT
    Grades: A1
    FIRST GRADE
    B1
    SECOND GRADE
    ID# 6789
    Name: Steve Round
    Dept: Arts
    Grades: C1
    THIRD GRADE
    B1
    SECOND GRADE
    Please assist me in getting the desired output.

  • Crosstab Query re Grouping Data into Value Ranges

    Hi
    I am trying to analyse some data in a Crosstab & have a query re grouping.
    The data contains sales transaction info such as selling price, quantity etc. I would like to create a grouping in the Crosstab based on a sale price range (eg £0 - £10, £10 - £20 etc) so that I can show the total quantity sold in each price range.
    To date my method has been to create a formula with Select Case which identifies each transaction into a price range. I would then use this formula in my Crosstab. The main issue with this method is that there will be a large number of Cases & the possibility this will need to be added to / modified going forward.
    Whilst I think this will work I am hoping there is better method to follow?
    Thanks
    Jon

    Hi Jamie,
    Thank you for your help.
    I'm looking to group in increments of 10 so it looks like the Floor function will do the trick, thank you.
    I'll probably use an If statement to do a "block" of prices at either end of the scale (ie < 100 then 100, > 1000 then 1000+ else Floor ({Sales Field},10). Hopefully this way I'll reduce the overall no of rows.
    Thanks again for your help.
    Jon

  • Query problem, no data exist

    Dear Experts,
    My user would like to combine data from FBl3N (field BUDAT, amount in document currency, amount in local currency , reference document) with data taken from Billing (VF03- FKDAT, BUDAT, VBELN, CHARG, MATNR, ARKTX).
    I have created a query with the following join table:
    1. VBRP (FKIMG, MATNR, WERKS, CHARG, PRCTR)
    2. VBRK (FKDAT, VBELN, BUDAT).
    3. BSIS (XBLNR, WRBTR, DMBTR)
    Join condition : BSIK&VBRP (BUKRS, GJAHR), VBRP & VBRK (VBELN).
    While executed the query ( SQ01), u2018no data existu2019 message is appear.
    Did I made a wrong join table and condition?
    Kindly advice me.
    Thank you.

    HI
    Please check the joining conditions
    Thanks & Regards
    Phaneendra

  • How to Select in a query considering key date of time-dependent characteris

    Hi, Everybody
    I have a Infoobject called CONTROL. It can be tested during the year once, twice, three times,six times  or can be not Tested.
    The Characteristic that contain the number of  test that the Control will be tested is time dependent.
    For example, one control can have the charcteristic to test twice in a year. Then 31/10/2007 it can turn "not test".
    I can have these records:
    CONTROL   VALID INIT       VALID END     TEST  
       XYZ         01/01/2007       31/01/2007       TWICE
       XYZ         01/02/2007       28/02/2007       TWICE
       XYZ         01/03/2007       31/03/2007       TWICE
       XYZ         01/04/2007       31/10/2007       TWICE
       XYZ         01/11/2007       31/12/9999       NO TEST
    I have a query that I should select the number of controls different of  "NO TEST" During the time selected.
    For example, if I select Interval Time = 01/01/2007 to 31/10/2007, This record should be Counted, because it was to be tested during this period.
    If I have selected Interval time = 01/11/2007 to 31/12/2007, it should not be selected because in this period, this control doesn´t able to be tested.
    If I put filter restricting NO TEST, the query should check the time of validity, but when I do that, BW doesn´t accept that because I can´t restrict by Validate Date.
    Anybody already had a problem like that?
    I´d like suggestions to solve that or comments that could explain that.
    Thanks a lot,
    Elisabeth
    Edited by: Elisabeth Umebara on Feb 2, 2008 12:21 AM

    Hi, everybody.
    I already solved this problem. Thanks a lot.
    For this I selected the controls in a exit variable that should be selected in from table time-dependent  from infoobject. This solution ran just for BWD and BWQ, because there was a lot of data in BWP.
    Then I made a first query that has selected the controls. After that, in the original query I defined the substitution path relating with the first query.
    Thanks again,
    Elisabeth

  • SQL query to group data by Code and dates

    Hi There,
    I have the following table structure
    col1 col2 col3
    code1 21-jan-2012 tested
    code1 20-jan-2012 tested
    code1 01-jun-2012 tested
    code2 01-jun-2012 tested
    code3 04-jun-2012 tested
    so on
    The output should be some thing like
    code Week1 week2 week 3 week4 week5 till about last 14 weeks from the date we are running
    code1 1 0 0 0 0
    code2 1 0 0 0 0
    code 3 0 1 0 0 0
    where 1, 0 is actually the counts and not sum and the week in this case, should have maybe been since we are in the second week it should have been
    code .....................week3 may week4 may week1 jun week2june
    Was looking for suggestions on how to get this done.
    I am assuming this would require some sort of a pivot query?
    Thanks,
    Sun

    Hi, Sun,
    sun1977 wrote:
    Thanks EKH,
    Yes, in lines of the output of this query. Is it possible to,
    1. In the query, if condition is met, the it simply displays 1 else 0. Basically, we need to get the count of the number of the codes in that week. So if code 1 happened 5 times, it should show 5.Sure; use COUNT instead of MAX.
    2. Provide the output between two dates. Lets say, I have to do it for the last 14 weeks from sysdate. Then will the logic of week1 = 1 work?Use date arithmetic to get the number of days between the starting date and col2, then divide by 7 to get the number of weeks. Use that number instead of the value returned by TO_CHAR.
    3. any suggestions if the counts have to be changed to percentages. How can we have the percentage value showingYou can do that. Exactly how depends on exactly what you want. It may involve using the analytic RATIO_TO_REPORT function in a sub-query. Post the exact results you want from the sample data that Ekh posted (or new sample data that you post), and explain how you get those results from that data.
    4. Would we also be able to add a date bind value. Lets say, if the user selects start date as may, 1st, 2012 and end date as jun5th. It sort of shows the same data but in weekly format for the weeks between the period selected?Sure, just use those values in a WHERE clause. The output needs to have a fixed number of columns, however. Say that number is 14. You can give a range that only covers 5 weeks, but the output will have 9 0's at the end of every row. You can give a range that covers 15 or more weeks, but the weeks after 14 will not be shown. To get around that requires dynamic SQL (if you want each week in a real column) or string aggregation. See {message:id=3527823}
    Point 3 is different from point 1 as in, the first one would be maybe using your logic but hardcoding for 14 weeks. Point three would be a little more dynamic.
    Thanks for your time.
    Sun
    Edited by: sun1977 on Jun 7, 2012 2:28 AM
    EXEC  :start_dt_txt := '01-May-2012';
    EXEC  :end_dt_txt   := '05-Jun-2012';
    WITH  got_week_num  AS
         SELECT  col1, col2
         ,     1 + FLOOR ( (col2 - TO_DATE (:start_dt_txt, 'DD-Mon-YYYY'))
                         / 7
                     )     AS week_num
         FROM    t
         WHERE     col2     >= TO_DATE (:start_dt_txt, ':DD-Mon-YYYY')
         AND     col2     <  TO_DATE (:end_dt_txt,   ':DD-Mon-YYYY') + 1
    SELECT       col1
    ,       COUNT (CASE WHEN week_num =  1 THEN 1 END)     AS week_1
    ,       COUNT (CASE WHEN week_num =  2 THEN 1 END)     AS week_2
    ,       COUNT (CASE WHEN week_num =  3 THEN 1 END)     AS week_3
    ,       COUNT (CASE WHEN week_num =  4 THEN 1 END)     AS week_4
    ,       COUNT (CASE WHEN week_num =  5 THEN 1 END)     AS week_5
    ,       COUNT (CASE WHEN week_num =  6 THEN 1 END)     AS week_6
    ,       COUNT (CASE WHEN week_num = 14 THEN 1 END)     AS week_14
    FROM       got_week_num
    GROUP BY  col1
    ORDER BY  col1
    ;Edited by: Frank Kulash on Jun 7, 2012 5:53 AM

  • Newbie query problem: function data missing in dropdown

    I am a student using 10g express provided with our textbook. The installation to WinXp SP3 went flawlessly and I can execute all required queries from the command line, no problem. The publisher provides SQL scripts related to the chapter material that creates the users and data for the chapter exercises. When I switch to the database home page and attempt to execute a query, I can change the aliases, insert conditions and do any thing else with the record but when I hit the dropdown arrow for function there is nothing there, no list. I have been back over the chapters dealing with installation thinking I have missed some setup parameter but I am coming up empty. Ay help would be appreciated.
    Regards,
    Dave

    Ljuba,
    This may be the issue as I ran the script as 'system' but logged in the database as 'handsonxe03'. I may have missed the required login from the text. I will look closer or I may have to modify the script for required user.
    I will let you know....Thanks!

  • Query to group dates based on days of week

    Hi,
    I have a table containing the following format:
    Create table testtable(dates date, day_identifier number);
    The day_identifier column data contains the corresponding dates columns' day of week equivalent i.e.
    to_char(dates, 'd')
    The table contains following sample data:
    Dates
    Day_identifier
    01-Oct-2013
    3
    02-Oct-2013
    4
    04-Oct-2013
    6
    06-Oct-2013
    1
    08-Oct-2013
    3
    09-Oct-2013
    4
    11-Oct-2013
    6
    18-Oct-2013
    6
    21-Oct-2013
    2
    23-Oct-2013
    4
    I am looking for a query that will group the above data based on the day_identifier column data into the following format:
    01-Oct-2013 11-Oct-2013 1346
    18-Oct-2013 23-Oct-2013 246
    The above data if expanded i.e.
    all dates between 01-Oct-2013 and 11-Oct-2013 and having day of week value in 1,3,4,6
    and
    all dates between 18-Oct-2013 and 23-Oct-2013 and having day of week value in 2,4,6
    will give me the above table's resultset.
    Please help me in resolving the issue.
    Thanks.

    with
    groups as
    (select 'one' grp,
            to_date('01-Oct-2013','dd-Mon-yyyy') low_date,
            to_date('06-Oct-2013','dd-Mon-yyyy') high_date,
            '3,5,7' day_identifiers from dual union all
    select 'two',to_date('10-Oct-2013','dd-Mon-yyyy'),to_date('16-Oct-2013','dd-Mon-yyyy'),'1,2' from dual union all
    select 'six',to_date('20-Oct-2013','dd-Mon-yyyy'),to_date('26-Oct-2013','dd-Mon-yyyy'),'4,5,6' from dual
    dates as
    (select trunc(sysdate,'mm') + level - 1 the_date,to_char(trunc(sysdate,'mm') - level - 1,'d') day_identifier
       from dual
    connect by level <= to_number(to_char(last_day(sysdate),'dd'))
    select d.the_date,d.day_identifier,g.grp,g.low_date,g.high_date,g.day_identifiers
      from dates d,
           groups g
    where d.the_date between g.low_date(+) and g.high_date(+)
       and instr(','||g.day_identifiers(+)||',',','||d.day_identifier||',') > 0
    THE_DATE
    DAY_IDENTIFIER
    GRP
    LOW_DATE
    HIGH_DATE
    DAY_IDENTIFIERS
    10/01/2013
    1
    10/02/2013
    7
    one
    10/01/2013
    10/06/2013
    3,5,7
    10/03/2013
    6
    10/04/2013
    5
    one
    10/01/2013
    10/06/2013
    3,5,7
    10/05/2013
    4
    10/06/2013
    3
    one
    10/01/2013
    10/06/2013
    3,5,7
    10/07/2013
    2
    10/08/2013
    1
    10/09/2013
    7
    10/10/2013
    6
    10/11/2013
    5
    10/12/2013
    4
    10/13/2013
    3
    10/14/2013
    2
    two
    10/10/2013
    10/16/2013
    1,2
    10/15/2013
    1
    two
    10/10/2013
    10/16/2013
    1,2
    10/16/2013
    7
    10/17/2013
    6
    10/18/2013
    5
    10/19/2013
    4
    10/20/2013
    3
    10/21/2013
    2
    10/22/2013
    1
    10/23/2013
    7
    10/24/2013
    6
    six
    10/20/2013
    10/26/2013
    4,5,6
    10/25/2013
    5
    six
    10/20/2013
    10/26/2013
    4,5,6
    10/26/2013
    4
    six
    10/20/2013
    10/26/2013
    4,5,6
    10/27/2013
    3
    10/28/2013
    2
    10/29/2013
    1
    10/30/2013
    7
    10/31/2013
    6
    Regards
    Etbin

  • Query problem with date range

    I have a query that needs to pull data between a date range.
    I've tried several things and nothing seems to work.
    Any help would be greatly appreciated.
    Here's the code:
    <cftransaction>
    <cfquery name="QryFollowUp"
    datasource="NBProdReports">
    SELECT TblContractInfo_SubMenuTable.User_ID,
    TblContractInfo_SubMenuTable.Contract_Number,
    TblContractInfo_SubMenuTable.Transaction_Type,
    TblContractInfo_SubMenuTable.Notes,
    TblContractInfo_SubMenuTable.Num_Checks_Trans,
    TblMasterTrans.Date_Opened
    from TblContractInfo_SubMenuTable ,tblMasterTrans
    WHERE Transaction_Type = 'FollowUp'
    And TblContractInfo_SubMenuTable.Task_Number =
    tblMasterTrans.Task_Number
    And TblMasterTrans.Date_Opened BETWEEN #form.StartDate# AND
    #form.EndDate#
    ORDER BY TblMasterTrans.Date_Opened ASC,
    TblContractInfo_SubMenuTable.User_id ASC
    </cfquery>
    </cftransaction>

    Any help would be greatly appreciated.
    Ok, why are you using a <cftransaction...> around a
    single select query?
    It should be unnecessary.
    This is probably not helpful to your original question. There
    is
    nothing obviously wrong with your query at least to my glance
    through.
    Thus this important question, the one without which you are
    unlikely to
    get any helpful advice, "How does this not work?" Error
    Messages? No
    Data? Wrong Data? Serves you coffee instead of tea?
    It would also probably be helpful to know how your date data
    is
    represented in the database and the form controls, depending
    on what
    your difficulties are.

  • Handling DATE and TIME in SELECT Statment

    Hey pros,
    I have this problem where I want to execute a select query based on date and time, but I want it to be handled in such a way which is better explained with this example:
    User enters a date range of Apr. 10 and Apr. 12
    User enters a time range of 9:00am - 10:00am
    The results I want would be from April 10 9:00am to Apr. 12 10am.
    The way I have it working today is that it shows me all data from Apr. 10-12 from 9am-10am on all days.
    Is there an easy way to do this?
    Here is my code (see the 3rd last and 2nd last line)  Thanks!
    SELECT vepowerks vepolgort vepo~matnr
              mara~mtart
              vepovenum vepovepos
              vekperdat vekperuhr vekpstatus vekpexidv
              "gc_bwart as bwart
              vepovemng vepovemeh
              vepo/cwm/vemng vepo/cwm/vemeh
        INTO CORRESPONDING FIELDS OF TABLE gt_tran
    INTO CORRESPONDING FIELDS OF TABLE itab
        FROM vepo
          INNER JOIN vekp ON
              vepovenum = vekpvenum
          INNER JOIN mara ON
              vepomatnr = maramatnr
        WHERE
              vepo~werks = p_werks    AND
              vepo~lgort IN s_lgort   AND
              vepo~matnr IN s_matnr   AND
              vepo~bestq = gc_bestq   AND
              NOT ( vepovemng = 0 AND vepo/cwm/vemng = 0 ) AND
              vekp~status = gc_status AND
              vekp~erdat IN s_erdat   AND
              vekp~eruhr IN s_eruhr   AND
              mara~mtart IN s_mtart.

    I think you might just have to select the date range, then do a loop and read table.
    select xx where date in date_range from x into table y.
    loop at y into wa_y.
      if wa_y-date = lower_date_limit. "this day has the 9am limit
        "only pick those records that have wa_y-time GE 9am.
        <your logic here>
      elseif wa_y-date = upper_date_limit. "this day has teh 12pm limit
        "only pick those records that have wa_y-time LE 12pm.
        <your logic here>
      else. "every day in between the dates
        "get all data no matter what the time is
        <your logic here>
      endif.
    I honestly don't know if there is a select-where clause that will do this automatically, but the above solution should work..hope this helps.
    --Juan
    Edited by: takeabyte on Apr 29, 2010 8:36 PM

  • OVS date and time

    Hi all,
    I am facing problem with date and time sync in Oracle VM server.
    Problem is that after the guest power off the guest time is getting old (16-jul-2009) . OVM server time is synced with NTP server and time is actual but guest time is not matched with OVS time even after I did ntp update in guest after reboot I see same old time.
    Seems like guest syncs with some old time but whence he found this old time ?
    If any one knows please help.
    ./thanks

    >
    what 6 hour offset. Where did you saw ?Sorry, I got confused with another post I was replying to somewhere else. Please ignore the 6 hour remark.
    Follow-up question: if you start this guest on a different server, does it get the right time, i.e. does it only have the wrong time on a particular server? Or is it one particular guest that always has the wrong time when it starts, regardless of which server it starts on?OK, everything is clear , thanks for help I will check all.

  • Date and time not showing correct whe imported to Power query

    Hi,
    I have an Excel list that I imported to another Excel file via Power query. A few of the imported columns contains date and time, for example 2013-11-09 20:19. When imported to Power query this will show as 41587.84652777778 and only dates/times with zero
    hours and minutes will show correctly. When trying to change the data type to Date/Time it returns an error for all cells containing hours and minutes.
    I use a Swedish version of Excel that uses a different time format compared to standard excel and also uses a , as a delimiter between date and time compared to the . used as delimiter in standard excel. Don't know if that can explain
    this problem?
    Brgds,
    C

    I updated Power query earlier this week, so it should be the latest version. When I created the sample file now the problem appears, so if it is a bug it has not been solved.
    You find the sample file on the link below. 4 sheets with some info on the problem, the data, the query result and one sheet with the data and query result as pictures as it shows in my version of Excel, I guess it will look somewhat different when you open
    the file due to local date/time settings.
    Appreciate feedback on what you find!
    //Caj
    https://skydrive.live.com/redir?resid=94DF9214E3A6D4!107&authkey=!AEuAXX_kPC7yKaI&ithint=file%2c.xlsx

  • SQL Toolkit -- problem searching Date/Time field in Access

    I have got an application where I need to query a database (Access) between
    two dates (usually the same date, a couple of hours apart). I have set up
    the date field within Access as a 'General Date' but can't seem to get the
    right format on the SQL query. I am always getting some error. I enclose
    the date with {}, '', [], and () (and anything else I can think of) and I
    still get a problem. It is now to the point where I think it might be a
    problem with SQL Toolkit and Access working together.
    I tried making the Date field into a string field (instead of a Date field),
    but I can't search between time (I can search between dates, but not date
    and time i.e. MM/DD/YY 00:00:00).
    Any ideas?

    Sorry, the database type is Access.
    I just tried the following query SELECT * FROM ValveMeritData WHERE MeritTestDateTime >= '2006/05/01 13:24:28'
    and SELECT * FROM ValveMeritData WHERE MeritTestDateTime >= '2006/05/01'  (which gave a data mismatch error).
    I am going to try the query in access now.  I had pretty good success with other types of queries, just writing them in
    Labview and testing.
    Any other suggestions?

Maybe you are looking for

  • Dunning run - missing documents

    Hello all I am running the dunning wizard and I have several documents, from several BP, that are not extracted from the wizard (are missing). Same documents are between other's and never have been in any dunning run. The configuration has 12 levels

  • How do I search for apps that work on my iPod Touch Generation 1 (Version 3.1)?

    I have the original iPod Touch and I want to give it to my toddler to play with... so I can have my phone back!  The problem is I cannot find apps that work on the older operating system 3.1.3.  Is there a way to search for them? Thanks!

  • Satellite A210-15Y - How to install Windows XP?

    I had Windows Vista and I upgrade it with Windows 7. Now I really want to install Windows XP. When I put Windows XP CD in after a while I get an blue screen whit an error . pls tell how to install Windows XP on my notebook and if I need some drivers

  • Head Phone

    my laptop model no.,isavilin dm4 2week before i got this  the problem is When i connect the head phone in the jack its automaticaly not working  i go to volume control panel and change some setings then it will work properly this problem is first tim

  • Studio Server Portlet page content change

    Where do I change the content of default page created by STUDIO PORTLET WIZARD? How do I access that page? Any tips or hints would be greatly appreciated.ThanksSnehal