ms-access


Selecting data from the start of every hour


I have an MS Access database table that populates every minute, and I need to write a query to select the data at the start of every hour. Does anyone how I would go about writing such a query?
BOF_TOTAL EAF_TOTAL EAF BOF TO_CHAR(DATETIME,'MM/DD/YYYYHH24:MI:SS')
.
.
.
.
315499 38756 5.6 12 7/1/2011 16:00
315511 38762 5.6 12 7/1/2011 16:01
315523 38771 5.6 12 7/1/2011 16:02
315535 38779 8.4 12 7/1/2011 16:03
315547 38787 8.4 12 7/1/2011 16:04
315559 38787 8.4 12 7/1/2011 16:05
315571 38797 8.4 12 7/1/2011 16:06
315583 38805 8.4 12 7/1/2011 16:07
.
.
.
316219 39596 6.7 12 7/1/2011 17:00
.
.
.
316939 40436 6.9 12 7/1/2011 18:00
I would like a query that will that grab only the data at 16:00, 17:00, 18:00, etc.
So the output of the query is:
315499 38756 5.6 12 7/1/2011 16:00
316219 39596 6.7 12 7/1/2011 17:00
316939 40436 6.9 12 7/1/2011 18:00
I hope that this helps to better clarify my question.
Getting the date from the elapsed hour ?
WHERE MyTime between int(Now())-1/24 And int(Now())
should do it. Change Now() into Now if you're in VBA.

Related Links

Build VBA Sql statement using 3 multi-select Listboxes and a date range in MS Access 2016 32 bit
ms-access remove fails on the same date from the same person when there is a pass
Access 2016 vba to send email based on query results and record date email sent back to same table
Count unique values in Access
If ComboBox on Form is blank, Then
Trying to do a calculation with data from a date and the data from the day before
MS Access Front-end: Does each user need their own copy?
trying to filter subform based on contents of field on main form
How to use MS access on a server where MS Office is not installed
How do i import and eliminate first two row of website in msaccess while importing html pages
Multi criteria dlookup issue
Count all checkboxes in ms-access form…what am I doing wrong?
How do I set a default selection to a Listbox in MS Access
Microsoft Access not overwriting when exporting a query to excel
Using ms-access command-line tag /x but database opens read-only
Criteria with TempVars - but prompt user if tempvars is null

Categories

HOME
ms-access
multithreading
client
bluetooth
proxy
amazon-ec2
pycharm
kde
comparison
react-redux
yarn
electronics
fsm
android-youtube-api
synchronization
gorm
offline
resize
n-gram
vb.net-2010
zebra-printers
dosgi
clojurescript
opentracing
graphlab
jtextfield
opencover
ehcache
kudan
telerik-reporting
language-agnostic
h2db
libuv
kendo-datasource
gsoap
lightswitch-2013
fabric8
preg-match-all
create-table
winrt-xaml-toolkit
catch-all
repo
io-redirection
libraries
service-discovery
hilbert-curve
streamreader
dism
ensembles
sql-server-agent
glew
ibpy
no-www
convertapi
websphere-mq-fte
angular-resource
avconv
capacity
imanage
objective-c-swift-bridge
pickadate
dlna
ptrace
pyke
cloudbees
kendonumerictextbox
maven-tomcat-plugin
lemon
intellij-14
kcachegrind
rgeo
varargs
riak-cs
arcanist
ami
device-orientation
npapi
nsmutabledictionary
java-metro-framework
markers
internet-connection
terminfo
eol
resty-gwt
xsockets.net
runtime.exec
sharp-repository
drools-planner
robotics-studio
ocx
wse3.0
work-stealing
fireworks
mercurial-server
gnu-prolog
zpt
coredump
jquery-ui-droppable
private-members
w3wp
grid-system

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App