Здравствуйте! У меня установлена версия 12.0.13.
база MySQL5.0.67, операционка Win7.
При любой попытке рассчитать ведомость остатков выдает кучу ошибок... Скрины делать не стал, скопировал тексты (если требуется, сделаю скрины).
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 551729 and fsc= 10 and fnmkl= 65202 and fsu= 109
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65202 and fsu= 109
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65202 and fsu= 109
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65202 and fsu= 109
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65202 and fsu= 109 and fcena= 7
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65202 and fsu= 109 and fcena= 7
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65209 and fsu= 109 and fcena= 10.2
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65209 and fsu= 109 and fcena= 10.2
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fid_pn= 65639 and fnmkl= 65209 and fsu= 109 and fcena= 10.2
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fid_pn= 65639 and fnmkl= 65209 and fsu= 109 and fcena= 10.2
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65209 and fsu= 109 and fcena= 10.9
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65209 and fsu= 109 and fcena= 10.9
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65215 and fsu= 109 and fcena= 41.2
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65215 and fsu= 109 and fcena= 41.2
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65215 and fsu= 109 and fcena= 47.7
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65215 and fsu= 109 and fcena= 47.7
Потом, с горем пополам все-таки выдает остатки но пи любом обращении к тому или иному полю в окне ведомости остатков тоже выдает ошибки.
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65218 and fsu= 109 and fcena= 5
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65218 and fsu= 109 and fcena= 5
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65218 and fsu= 109 and fcena= 6
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65218 and fsu= 109 and fcena= 6
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65218 and fsu= 109 and fcena= 6.34
select sum(fkol) from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65218 and fsu= 109 and fcena= 6.34
select * from tmp_buf_order_in_org3 where fid_doc = 557336 and fsc= 10 and fnmkl= 65215 and fsu= 109 and fcena= 47.7
и так наверно до бесконечности... подскажите как это победить
Заранее благодарен!