PC Review


Reply
Thread Tools Rate Thread

Complex query

 
 
New Member
Join Date: Jun 2010
Posts: 1
 
      7th Jun 2010
Hello everyone,

I am new to access and I need to find a query that returns a count of a field grouped by the difference between two dates.
So I have a calculated date that tells me how many days elapsed between opening a request and closing the request, for every unique datediff value I want to know how many requests there are.
My query looks like this:
SELECT DISTINCT DateDiff("d",GRS_Chiuse.RICH_DATE,GRS_Chiuse.DATA_CHIUSURA) AS Espr1
FROM GRS_Chiuse ;

The above query tells me all the distinct values there are between two dates, now I want to know how many services there are for each unique date difference.
So my query should tell me how many requests were closed within 2 days etc..
How do I do it?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
when i run my query an error message that says "query too complex jam dorado Microsoft Access 2 1st Apr 2008 07:02 PM
Query is too Complex error message when trying to run query. =?Utf-8?B?SmVhbi1GcmFuY29pcyBHYXV0aGllcg==?= Microsoft Access Queries 3 28th Oct 2007 10:24 AM
Complex query with Union Query in process runs for ever Stapes Microsoft Access 2 10th Oct 2007 02:36 PM
help ... similiar to parameter query; complex query =?Utf-8?B?bWFyZ2FyZXQ=?= Microsoft Access Queries 4 26th Sep 2007 12:14 AM
Using toggle buttons in a complex query (complex for me, at least) =?Utf-8?B?QmlsbHk=?= Microsoft Access Forms 4 23rd Jun 2005 02:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:17 PM.