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

T-SQL financial year quarter

$
0
0

Hi All,

In my requirement Financial year starts from Nov to Oct.

According to This in FEB 14 its 2014 Q2.

My query is like below


SELECT 'Q'+DATENAME(Quarter, CAST(CONVERT(VARCHAR(8), Getdate()) AS DATETIME))
But it is giving result Q1. how i can make it Q2?

Viewing all articles
Browse latest Browse all 23857

Trending Articles



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