SQL: records by years between two date 
Author Message
 SQL: records by years between two date

I need to return all result records from a swimmer's result database that
are within a date range by year.  The results are achieved on a specific
date stored in a meet database.  For example: all results for all females
when they were in the 11-12 age group.  Some of those girls may now be 13
so you can't go by their birthday alone.  It has to be the date of the meet
- their birthday in years!  (need to subtract the dates and return the
result as a year not in days and allow for leap years, etc.)

Any suggestions would be appreciated.  I assume a subquery would be needed
but can't put it together.



Mon, 31 May 1999 03:00:00 GMT  
 SQL: records by years between two date

Assuming each record is for the results of a swimmer, you need to insert
another field that would indicate the type of competition (11-12).  This
could be done with an execute (SQL) statement in VB or or an action query
in Access, or manually in Access.  You then would be able to query on a
date range and competition.
Steve Lowther



Mon, 14 Jun 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. difference between two dates ,in years,months,and days

2. Adding days/ months/ years to date record

3. last year and year to date

4. Sql Date and Year

5. How to query all record between two date?

6. HELP COUNT records between two dates!!!!

7. How to print records between two dates with CR6 and VB6

8. Need help with Select statement syntax to retrieve Access2000 record between two dates

9. Need help with Select statement syntax to retrieve Access2000 record between two dates

10. SQL search between two Dates

11. How to calculate the difference between two dates (time elapsed between two program starts)

12. Two Digit Years in NT4 and Acc97

 

 
Powered by phpBB® Forum Software