Good afternoon,
I am coming up with an unusal query because our fiscal year has been set up differently. We need to be able to use this query for a long time. That's why we do not put the year information in there. I would like to have a query constructed, that will determine the following:
If the month and date >= 08/01 and (month and date) <=10/31, then, return value of "Quarter 1",
If the month and date >= 11/01 and (month and date) <=01/31, then, return value of "Quarter 2",
If the month and date >= 02/01 and (month and date) <=04/30, then, return value of "Quarter 3",
If the month and date >= 05/01 and (month and date) <=07/31, then, return value of "Quarter 4"
I have a field called, transaction date, which gives me the month, date and year format (mm/dd/yyyy). I would like to know how to match with this query.
For example:
Transaction Date Return Value
05/08/2005 Quarter 4
07/14/2005 Quarter 4
10/25/2005 Quarter 1
08/26/2006 Quarter 1
I am also concerned about my 2nd Quarter, because it starts in November of this year and finishes at the end of January of next year. I do not know whether the query will accept it.
Please let me know what method you think I should do to make it to work. Thank you.
I am coming up with an unusal query because our fiscal year has been set up differently. We need to be able to use this query for a long time. That's why we do not put the year information in there. I would like to have a query constructed, that will determine the following:
If the month and date >= 08/01 and (month and date) <=10/31, then, return value of "Quarter 1",
If the month and date >= 11/01 and (month and date) <=01/31, then, return value of "Quarter 2",
If the month and date >= 02/01 and (month and date) <=04/30, then, return value of "Quarter 3",
If the month and date >= 05/01 and (month and date) <=07/31, then, return value of "Quarter 4"
I have a field called, transaction date, which gives me the month, date and year format (mm/dd/yyyy). I would like to know how to match with this query.
For example:
Transaction Date Return Value
05/08/2005 Quarter 4
07/14/2005 Quarter 4
10/25/2005 Quarter 1
08/26/2006 Quarter 1
I am also concerned about my 2nd Quarter, because it starts in November of this year and finishes at the end of January of next year. I do not know whether the query will accept it.
Please let me know what method you think I should do to make it to work. Thank you.