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 |
|
jonasalbert20
Constraint Violating Yak Guru
300 Posts |
Posted - 2006-04-07 : 01:45:01
|
i have days and number of orders in a table. what i want is to get the sum of number of orders by day but in calendar format. Please see desired result.APRILSUN MON TUE WED THU FRI SAT TOTAL----------------------------------------------- 1 2 22 3 4 5 6 7 81 1 1 2 1 1 1 89 10 11 12 13 14 150 0 0 0 0 1 0 116 17 18 19 20 21 220 0 0 0 0 0 0 023 24 25 26 27 28 290 0 0 0 0 0 0 030 310 0 0 Want Philippines to become 1st World COuntry? Go for World War 3... |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
jonasalbert20
Constraint Violating Yak Guru
300 Posts |
Posted - 2006-04-07 : 02:02:05
|
| tnx khtan.just for reference purposes only. i just want to make it in t-sql. how should it be done?Want Philippines to become 1st World COuntry? Go for World War 3... |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2006-04-07 : 02:02:42
|
you can refer to the link provided by Madhivanan KH |
 |
|
|
jonasalbert20
Constraint Violating Yak Guru
300 Posts |
Posted - 2006-04-07 : 02:07:11
|
| tnx madhivanan! :-DWant Philippines to become 1st World COuntry? Go for World War 3... |
 |
|
|
jonasalbert20
Constraint Violating Yak Guru
300 Posts |
Posted - 2006-04-07 : 02:22:46
|
| tnx also khtan.Want Philippines to become 1st World COuntry? Go for World War 3... |
 |
|
|
|
|
|