| People who will reach legal age after one month [message #567842] |
Sun, 07 October 2012 01:56  |
avrillavinge
Messages: 98 Registered: July 2007
|
Member |
|
|
I have a classification based on age and nationality to calculate if the people will reach legal age after one month .
I have the peoples age , the legal age of people is 18 years .
I need to know how many people will reach this age after 1 month.
can you pls guide
|
|
|
|
| Re: People who will reach legal age after one month [message #567846 is a reply to message #567842] |
Sun, 07 October 2012 02:31   |
John Watson
Messages: 3102 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
|
If the task is simply to identify people who have a birthday any day in the next month, then you could use the ADD_MONTHS and EXTRACT functions. If the algorithm has to be precise, you will need to develop something based on the number of days (28, 29, 30, or 31?) in the current or following month.
|
|
|
|
|
|
|
|
|
|
|
|
|
|