Advertisement

04.21.2008 at 07:01AM PDT, ID: 23339533
[x]
Attachment Details

sql select between date range

Asked by aldhubaib33 in Oracle Database, Microsoft Access Database

Tags: Microst, Access, 2007, Selct query old and new date

hi
well i have a table that store the date of selling, price,area, State Name,city Name ... , I have created a query which is Called QMain and i have created a calculated field which is M2:[Price]/[Area].
Now i wan to find the M2 from old date - New Date and grouped by state name
for example :

Colorado  [New M2]- [Old M2]  = Diff
Utah         [New M2]- [Old M2]  = Diff

The date range is inputed from a form  which is set a a criteria of the query As Following:
Between [Forms]![FSalesStock]![ReportDateStart] and [Forms]![FSalesStock]![ReportDateEnd]

So, what is the best way off doing it .. is it by using sql statement or by creating two Query's one for the new date and on for the old date ..
I am open for any suggestion
thanks  Start Free Trial
[+][-]04.21.2008 at 07:44AM PDT, ID: 21402334

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 08:09AM PDT, ID: 21402663

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 08:19AM PDT, ID: 21402763

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: Oracle Database, Microsoft Access Database
Tags: Microst, Access, 2007, Selct query old and new date
Sign Up Now!
Solution Provided By: mbizup
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628