on 2009 Mar 31 5:44 AM
Hi All,
I need the logic for Fortnight of the year for drill in reports . Can any one help me regarding this.
Thanks in Advance
Hi,
I have built this logic to display the fortnights of current month plz modify this according to you requirmenet.
Here is the query....
SELECT case when getdate() between DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0)
and
dateadd(dd,14,DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0) ) then 'Fnight-1' else 'Fnight-2' end
Cheers,
Ravichandra K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.