Back to questions
JuniorTheoryCommon
What does the query return if the Дата parameter is 15.11?
// ЦеныТоваров: 01.10 ручка 15; 01.11 ручка 0
ВЫБРАТЬ
Цены.Товар КАК Товар,
Цены.Цена КАК Цена
ИЗ
РегистрСведений.ЦеныТоваров.СрезПоследних(&Дата, Цена > 0) КАК Ценыручка 15
- Expecting the condition in the slice parameters to act after the slice, like
ГДЕ: it filters the records before the slice - Expecting the last-values slice to return every matching record: it returns one per key, the latest
- What does the query return if the
Цена > 0condition moves toГДЕ? - Why do the 1C standards advise putting only dimension conditions in the slice parameters?