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.
| Author |
Topic |
|
kevasp
Starting Member
2 Posts |
Posted - 2009-01-04 : 12:32:17
|
| I need help on for this query. How do you write a query to return following requirement field.example(Column)date = '1/1/09', '1/2/09'day = 1, 2month =1 , 1year =2009, 2009dayName = 'Thursday', 'Friday'monthName ='January', January'businessDay = 'N', 'Y'businessDayNumber = 0, 1businessDaysElapsed = 0, 1businessDaysInMonth = 20, 20holiday = 'Y', 'N'mondayWeek = 0, 0sundayWeek = 0, 0Sat and Sun is dayoff. Sunday is starting of Week 1 and Monday is Starting Week. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-01-04 : 12:37:13
|
| have a look at function DATEPART() and DATENAME() in books online.http://doc.ddart.net/mssql/sql70/da-db_7.htmhttp://doc.ddart.net/mssql/sql70/da-db_8.htmFor getting holiday,business day info, whaich all according to you represent business days and which holidays? |
 |
|
|
kevasp
Starting Member
2 Posts |
Posted - 2009-01-04 : 14:43:42
|
| i got it |
 |
|
|
|
|
|
|
|