I have a question that's more logical than technical. I have a query that has the following information:
Year Quarter Amount Customer
2000 1 $40,000 1
2000 2 $45,000 1
2000 3 $30,000 1
2000 4 $25,000 1
2000 1 $17,000 2
I want to filter this query and say only display the entries between 2nd Quarter 2000 and 4th Quarter 2000. What would be the syntax for my sql statement?
I'm coming up with:
([Quarter] Between 2 and 4) And ([Year] Between 2000 and 2000)
But this won't work for restrictions that cover more than one year. Example: Between 2nd Quarter 2000 and 3rd Quarter 2001
I'm not sure how to incorporate the quarter and the year. Any help would be great. Thanks!!!
Year Quarter Amount Customer
2000 1 $40,000 1
2000 2 $45,000 1
2000 3 $30,000 1
2000 4 $25,000 1
2000 1 $17,000 2
I want to filter this query and say only display the entries between 2nd Quarter 2000 and 4th Quarter 2000. What would be the syntax for my sql statement?
I'm coming up with:
([Quarter] Between 2 and 4) And ([Year] Between 2000 and 2000)
But this won't work for restrictions that cover more than one year. Example: Between 2nd Quarter 2000 and 3rd Quarter 2001
I'm not sure how to incorporate the quarter and the year. Any help would be great. Thanks!!!