Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Time bucket

Author  Topic 

disha
Starting Member

34 Posts

Posted - 2009-12-17 : 01:42:25
i need to create a period bucket using the start date and saysdate and i want the output as below .

please advise how to achieve this using case statement or is there any other way please suggest the correct syntax

1 day
2 days
3 days
4 days
5 days
6 days
7 days
8D - 1M
2 Months
3 Months
4 Months
5 Months
6 Months
7 Months
8 Months
9 Months
10 Months
11 Months
12 Months
1-2 Years
2-3 Years
3-4 Years
4-5 Years
Beyond 5Ys
   

- Advertisement -