|
|
|
Re: Count Adult Age in Range Time in 2016 [message #656029 is a reply to message #656028] |
Wed, 21 September 2016 02:03 |
|
Michel Cadot
Messages: 68645 Registered: March 2007 Location: Nanterre, France, http://...
|
Senior Member Account Moderator |
|
|
Can you please read the link I gave you and try to do it by yourself.
I gave you the algorithm and the function to use you just have to try.
Note there are examples of the function in the link and these examples are exactly what you have to do to answer your problem.
If you can't do it, come back with your tries.
[Updated on: Wed, 21 September 2016 02:07] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: Count Adult Age in Range Time in 2016 [message #656086 is a reply to message #656083] |
Thu, 22 September 2016 04:22 |
cookiemonster
Messages: 13920 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
Seriously, if you can't even make an attempt with what I told you above then you need to go off and do a basic SQL course.
Michel's given you a link to documentation on add_months. Use it to turn the date of birth into the date of the 18th birthday, then check if the resulting date is in the range you want using between.
Give it a try.
|
|
|