|
Почему некорректно считает недели DatePart?
|
|||
---|---|---|---|
#18+
Создал запрос: SELECT Sum(Продажи.Количество) AS [Sum-Количество], DatePart("ww",[Дата]) AS Неделя, Month([Дата]) AS Месяц FROM Продажи GROUP BY DatePart("ww",[Дата]), Month([Дата]); Затем проверяю его и вижу что новая неделя начинает считается с воскресенья. Почему??? ... |
|||
:
Нравится:
Не нравится:
|
|||
14.06.2011, 16:42 |
|
Почему некорректно считает недели DatePart?
|
|||
---|---|---|---|
#18+
datepart имеет 3-й параметр ... |
|||
:
Нравится:
Не нравится:
|
|||
14.06.2011, 16:47 |
|
Почему некорректно считает недели DatePart?
|
|||
---|---|---|---|
#18+
DatePart Function Returns a Variant (Integer) containing the specified part of a given date. Syntax DatePart(interval, date[,firstdayofweek[, firstweekofyear]]) The DatePart function syntax has these named arguments: Part Description interval Required. String expression that is the interval of time you want to return. date Required. Variant (Date) value that you want to evaluate. firstdayofweek Optional. A constant that specifies the first day of the week. If not specified, Sunday is assumed . firstweekofyear Optional. A constant that specifies the first week of the year. If not specified, the first week is assumed to be the week in which January 1 occurs. Код: plaintext
... |
|||
:
Нравится:
Не нравится:
|
|||
14.06.2011, 16:50 |
|
Почему некорректно считает недели DatePart?
|
|||
---|---|---|---|
#18+
о спс хелп рулит! ... |
|||
:
Нравится:
Не нравится:
|
|||
14.06.2011, 16:52 |
|
Почему некорректно считает недели DatePart?
|
|||
---|---|---|---|
#18+
TpaBka, это запрос в Access'е? Например функция VBA определяется так: Код: plaintext
... |
|||
:
Нравится:
Не нравится:
|
|||
14.06.2011, 16:56 |
|
|
start [/forum/topic.php?fid=60&msg=37308040&tid=2158625]: |
0ms |
get settings: |
9ms |
get forum list: |
11ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
39ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
40ms |
get tp. blocked users: |
1ms |
others: | 13ms |
total: | 131ms |
0 / 0 |