SELECT c1.Value + c2.Value + c3.Value + c4.Value FROM (SELECT value FROM 1SCONST WHERE objid = ' 0 ' AND id = ' 9PS' AND partno = 0) AS c1, (SELECT value FROM 1SCONST WHERE objid = ' 0 ' AND id = ' 9PS' AND partno = 1) AS c2, (SELECT value FROM 1SCONST WHERE objid = ' 0 ' AND id = ' 9PS' AND partno = 2) AS c3, (SELECT value FROM 1SCONST WHERE objid = ' 0 ' AND id = ' 9PS' AND partno = 3) AS c4
select group_concat(C.value, '') from (select date, time, docid from [_1S.Const] where objid=' 0 ' and id = ' Q' and date <= '20100719' order by date desc limit 1) aa inner join [_1S.Const] C on (C.date = aa.date and C.time=aa.time and C.docid=aa.docid and C.ID=' Q' and C.OBJID = ' 0 ') order by C.partno
_Опись.Вложен = ' . . ' ПолучитьПустоеЗначение("Дата") = ' . . ' ПустоеЗначение(ПолучитьПустоеЗначение("Дата")) = 1 ПустоеЗначение(_Опись.Вложен) = 0 ТипЗначенияСтр(_Опись.Вложен) = "Дата" ТипЗначенияСтр(ПолучитьПустоеЗначение("Дата")) = "Дата"