Need Logic...
Posted: Fri Aug 26, 2011 3:49 am
Hi,
I have one date column in my source table. The date i need to calculate based on four quarter months basis. Means 1st quarter - Jan to Mar 2nd Quart-Apr to Jun 3rd Quart-July to Sep 4th Quart-Oct to Dec.
If my source date comes between first quarter like this Ex: 3/14/2005 then my First Date should be 1/1/2005 and End Date Should be 12/31/2005 and if my source date comes between 2nd quarter like 4/2/2006, then my First Date should be 4/1/2006 and End Date Should be 3/31/2007.
Show me a right direction how to achieve this.
I have one date column in my source table. The date i need to calculate based on four quarter months basis. Means 1st quarter - Jan to Mar 2nd Quart-Apr to Jun 3rd Quart-July to Sep 4th Quart-Oct to Dec.
If my source date comes between first quarter like this Ex: 3/14/2005 then my First Date should be 1/1/2005 and End Date Should be 12/31/2005 and if my source date comes between 2nd quarter like 4/2/2006, then my First Date should be 4/1/2006 and End Date Should be 3/31/2007.
Show me a right direction how to achieve this.