Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 12890

get max date within a quarter

$
0
0

Hi,

i have the following dates:

1-1-2014

2-1-2014

3-1-2014

4-1-2014

4-22-2014

6-1-2014

I need to get the max date(s) from the list for each quarter, so I will need to end up with this:

Quarter  MaxDate

Q12014  3-1-2014

Q22014  6-1-2014

thanks

Scott


Viewing all articles
Browse latest Browse all 12890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>