Advertisement

04.25.2008 at 07:30AM PDT, ID: 23353624
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.9

SQL statement group by date but time is also included

Asked by PIER117 in Microsoft Access Database, Databases Miscellaneous, SQL Query Syntax

Tags: , ,

Ok, I'm trying to run a SQL statement in Access that looks like this:

SELECT location.locationName, Count(job.jobId) AS total, job.jobStartDtTm
FROM (job INNER JOIN jobdetail ON job.jobId = jobdetail.jobId) INNER JOIN location ON jobdetail.locationId = location.locationId
WHERE (((job.jobStatus)<>6) AND ((job.fillStatus) Not In (3,7,8,9,11,12,16)))
GROUP BY location.locationName, job.jobStartDtTm
HAVING (((job.jobStartDtTm) Between #4/14/2008# And #4/25/2008#));

The problem is the date field also includes time.  So my output is grouped by location and date with the time.  So some of my output looks like this:

locationName      total      jobStartDtTm
ARCOLA ELEMENTARY      3      4/16/2008 7:30:00 AM
ARCOLA ELEMENTARY      2      4/16/2008 11:10:00 AM
ARCOLA ELEMENTARY      5      4/17/2008 7:30:00 AM
ARCOLA ELEMENTARY      1      4/17/2008 11:00:00 AM

I need the output to show the entire day.Start Free Trial
[+][-]04.25.2008 at 07:39AM PDT, ID: 21439992

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, Databases Miscellaneous, SQL Query Syntax
Tags: microsoft, access, 2000
Sign Up Now!
Solution Provided By: peter57r
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628