
Код: Выделить всё
select c.PlanDocType, count(c.PlanDocType) from budnotify c where c.progindex=260 and not c.dat is null group by c.PlanDocType
Код: Выделить всё
select count(d.buhoperationcls), d.buhoperationcls from budgetdata d where d.progindex = 260 and d.recordindex in (select c.id from budnotify c where not c.dat is null ) group by d.buhoperationcls
Код: Выделить всё
select c.PlanDocType, count(c.PlanDocType) from budnotify c where c.progindex=32 and not c.dat is null group by c.PlanDocType
Код: Выделить всё
select count(d.buhoperationcls), d.buhoperationcls from budgetdata d where d.progindex = 32 and d.recordindex in (select c.id from budnotify c where not c.dat is null ) group by d.buhoperationcls
Код: Выделить всё
select d.progindex, d.buhoperationcls, count(d.buhoperationcls) from budgetdata d where d.recordindex in (select c.id from budnotify c where not c.dat is null ) group by d.progindex, d.buhoperationcls
Код: Выделить всё
select * from budnotify where not dat is null and id in
(select recordindex from budgetdata d where d.progindex=261 and d.facialacc_cls not in
(select f.id from facialacc_cls f where f.haracteraccount=1))
Код: Выделить всё
select * from buh_journal where progindex=312 and buhoperationcls<>602
Код: Выделить всё
select * from buh_journal where progindex=313 and buhoperationcls<>699
Код: Выделить всё
select * from incomes32 i,buh_journal b where i.id=b.sourcerecordindex and b.progindex=312 and i.buhoperationcls<>99999
Код: Выделить всё
select * from incomes32 i,buh_journal b where i.id=b.destrecordindex and b.progindex=312 and i.buhoperationcls<>99999
Код: Выделить всё
select * from facialfindetail d,buh_journal b where d.id=b.sourcerecordindex and b.progindex=312 and d.buhoperationcls<>99999
Код: Выделить всё
select * from facialfindetail d,buh_journal b where d.id=b.destrecordindex and b.progindex=312 and d.buhoperationcls<>99999
Код: Выделить всё
select * from incomes32 i,buh_journal b where i.id=b.sourcerecordindex and b.progindex=313 and i.buhoperationcls<>99999
Код: Выделить всё
select * from incomes32 i,buh_journal b where i.id=b.destrecordindex and b.progindex=313 and i.buhoperationcls<>99999
Код: Выделить всё
select * from facialfindetail d,buh_journal b where d.id=b.sourcerecordindex and b.progindex=313 and d.buhoperationcls<>99999
Код: Выделить всё
select * from facialfindetail d,buh_journal b where d.id=b.destrecordindex and b.progindex=313 and d.buhoperationcls<>99999
Код: Выделить всё
select ctrl_ref, ctrloptions, bin_and(ctrloptions,16) from itf_ctrl where ctrl_ref=XXXXXXXX and bin_and(ctrloptions,16)<>16
Val писал(а):Товарищи!
У кого есь даные в 4 пункте - отпишитесь плз!
У кого кроме операции 006.02 на "уведомлениях об уточнении... (поступление)" для внебюджета испльзуется операция отличная от 006.02?
Name писал(а):Валер, не совсем понял о чем речь? в п.4 про отчеты? у меня есть...
Name писал(а):по операции - у меня вапще там 0 записей
Код: Выделить всё
select
cast('2.3.2.2.1 Наличие бухоперации (по коду операции)' as varchar(255)),
bd.buhoperationcls,
count(bd.buhoperationcls)
from budgetdata bd
where
bd.progindex=261 and
bd.buhoperationcls not in (0,99999)
group by
1, buhoperationcls
union
select
cast('2.3.2.2 Наличие бухоперации' as varchar(255)), cast(count(*) as integer), cast(null as integer)
from budgetdata bd
where bd.progindex=261 and
bd.buhoperationcls not in (0,99999)
union
select
cast('2.3.2.1 Лицевой счет не ГРБС (маска л/с не xxx00xxxx и не xxx30xxxx)' as varchar(255)),
count(*), cast(null as integer)
from budgetdata bd
where
bd.progindex=261 and
not (bd.facialacc_cls like '___00____') and
not (bd.facialacc_cls like '___30____')
union
select cast ('2.3.2 Количество ошибочных документов:' as varchar(255)),cast(null as integer),cast(null as integer) from rdb$database
union
select
cast('2.3.1 Кол-во документов:' as varchar(255)), cast(count(*) as integer), cast(null as integer)
from budgetdata bd
where bd.progindex=261
union
select cast ('2.3 Кассовый план:' as varchar(255)),cast(null as integer),cast(null as integer) from rdb$database
union
select
cast('2.2.3 Бухоперации: (должны быть 35.03)' as varchar(255)),
bd.buhoperationcls,
count(bd.buhoperationcls)
from budgetdata bd
where
bd.progindex=32
group by
1, buhoperationcls
union
select
cast('2.2.2 Виды плана: (должны быть 1.01, 2.01)' as varchar(255)),
bn.plandoctype,
count(bn.plandoctype)
from budnotify bn
where
bn.progindex=32
group by
1, plandoctype
union
select
cast('2.2.1 Кол-во документов:' as varchar(255)), cast(count(*) as integer), cast(null as integer)
from budnotify bn
where bn.progindex=32
union
select cast ('2.2 Бюджетная роспись главных распорядителей бюджетных средств:' as varchar(255)),cast(null as integer),cast(null as integer) from rdb$database
union
select
cast('2.1.3 Бухоперации: (должны быть 34.01, 35.04)' as varchar(255)),
bd.buhoperationcls,
count(bd.buhoperationcls)
from budgetdata bd
where
bd.progindex=260
group by
1, buhoperationcls
union
select
cast('2.1.2 Виды плана: (должны быть 1.00, 2.00)' as varchar(255)),
bn.plandoctype,
count(bn.plandoctype)
from budnotify bn
where
bn.progindex=260
group by
1, plandoctype
union
select
cast('2.1.1 Кол-во документов: ' as varchar(255)), cast(count(*) as integer), cast(null as integer)
from budnotify bn
where bn.progindex=260
union
select cast ('2.1 Сводная бюджетная роспись:' as varchar(255)),cast(null as integer),cast(null as integer) from rdb$database
union
select cast ('2 Проверка ведения СБР, БР ГРБС и КП в соответствии с методикой ДФБК' as varchar(255)),cast(null as integer),cast(null as integer) from rdb$database
Сейчас этот форум просматривают: нет зарегистрированных пользователей и 11 гостей