Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4673

PROCESSLIST time in processlist is very high (maybe time = 0 setted and unsigned overflow?)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 10.0.3
    • Fix Version/s: 5.5.32
    • Component/s: None
    • Labels:
      None
    • Environment:
      linux

      Description

      in a very busy server i founded a query in processlist with very high time (2147483647), maybe time is set to 0 and now-time = very big number

      ID USER HOST DB COMMAND TIME STATE INFO TIME_MS STAGE MAX_STAGE PROGRESS MEMORY_USED EXAMINED_ROWS
      58929 rdm localhost 19_org Query 2147483647 Waiting for table level lock /* pid:30341 spd_user: cesar_it_162 SELF='/rdm-business/app/spa.supervisor.spadim' ms=-2 ip=186.241.142.146 session=mojzgh.slcurdzf824b6lv7a60askww0k048k4408 */SELECT sit_trib,icms_de_aliq,icms_de_red,icms_fe_aliq,icms_fe_red,icms_subst_ind_convenio,sn_aliq,sn_red,ipi_aliq,ipi_red,iss_aliq,iss_red,pis_aliq,pis_red,cofins_aliq,cofins_red,valor_pauta,valor_pauta_grandeza,valor_pauta_grandeza_quant,IF(valor_pauta_grandeza='un',1,IF(valor_pauta_grandeza='up',pecas,IF(valor_pauta_grandeza IN ('pl','@pl'),pliq,IF(valor_pauta_grandeza IN ('pb','@pb'),pbruto,IF(valor_pauta_grandeza='vl',vliq,vbruto)))))/valor_pauta_grandeza_quant/IF(valor_pauta_grandeza IN ('@pl','@pb'),15,1) AS valor_pauta_grandeza_un,pecas,pliq,pbruto,vbruto,vliq,servico,funrural_aliq,funrural_red,inss_aliq,inss_red,sit_trib_inss,csll_aliq,csll_red,sit_trib_csll,ir_aliq,ir_red,sit_trib_ir,ii_aliq,ii_red,sit_trib_ii,cide_aliq,cide_red FROM spamov_itens WHERE unidade_id=1001 AND lote_tipo='v' AND lote_spa=855195 AND item_id=67 AND item_id_red=528 18446744073709548.000 0 0 0.000 69744 0

      here is the full output

      ID USER HOST DB COMMAND TIME STATE INFO TIME_MS STAGE MAX_STAGE PROGRESS MEMORY_USED EXAMINED_ROWS
      59671 rdm localhost 19_org Query 1 Sending data /* pid:9479 spd_user: v.90650 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=0 ip=10.10.0.102 session=mojyy8.dkofthr0newt8r657ofwcs04844cgs4sgw */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=2044 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1749.687 0 0 0.000 544960 0
      59668 rdm localhost 19_org Query 1 Sending data /* pid:22771 spd_user: cesar_it_162 SELF='/rdm-business/app/spa.supervisor.spadim' ms=0 ip=10.10.0.123 session=mok07w.2reumtrwn57vtzmb5n9k4ksg4s88gwgcss */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1253 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1955.678 0 0 0.000 544976 0
      59665 rdm localhost 19_org Query 1 Waiting for table level lock /* pid:18120 spd_user: ricardo.sup SELF='/rdm-business/app/spa.supervisor.spadim' ms=0 ip=10.10.0.63 session=mojzg5.fbcvop6gn7dcdt5rs4ps08g0sk08o0cs4s */SELECT data_prevista_embarque,data_prevista_chegada,data_prevista_processo,sit_spa FROM spamov WHERE unidade_id=1001 AND lote_tipo='v' AND lote_spa=855219 1660.319 0 0 0.000 45264 0
      59658 rdm localhost 19_org Query 1 Waiting for table level lock /* pid:1199 spd_user: tlmk.90634 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=0 ip=10.10.0.12 session=mok08k.azdtgvtff1wfjhqm8kmzowo8og848wok88 */UPDATE spamov SET data_prevista_embarque="2013-06-17 17:15:39" WHERE unidade_id=1001 AND lote_tipo='v' AND lote_spa=855205 1728.440 0 0 0.000 45264 0
      59654 rdm localhost 19_org Query 1 Waiting for table level lock /* pid:9010 spd_user: tlmk.90634 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=0 ip=10.10.0.12 session=mok08k.azdtgvtff1wfjhqm8kmzowo8og848wok88 */UPDATE spamov SET data_prevista_embarque="2013-06-17 17:15:39" WHERE unidade_id=1001 AND lote_tipo='v' AND lote_spa=855205 1731.536 0 0 0.000 45264 0
      59646 rdm localhost 19_org Query 1 Sending data /* pid:26696 spd_user: v.90650 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=0 ip=10.10.0.102 session=mojyy8.dkofthr0newt8r657ofwcs04844cgs4sgw */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=212 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1771.161 0 0 0.000 544960 0
      59644 rdm localhost 19_org Query 1 Waiting for table level lock /* pid:11764 spd_user: cesar_it_162 SELF='/rdm-business/app/spa.supervisor.spadim' ms=0 ip=186.241.142.146 session=mojzgh.slcurdzf824b6lv7a60askww0k048k4408 */UPDATE spamov_itens SET desc_max_vendedor='0' WHERE unidade_id='1001' AND lote_tipo='v' AND lote_spa='855195' AND item_id='67' AND item_id_red='1253' 1678.982 0 0 0.000 45264 0
      59642 rdm localhost 19_org Query 1 Waiting for table level lock /* pid:32153 spd_user: ger.lima SELF='/rdm-business/app/spa.gerente.spadim' ms=0 ip=10.10.0.18 session=mojzr9.e5239kbrn3yro86fc3sisgc4sowgwsks0o */SELECT distribuidor_tipo,distribuidor_id,centro_origem_id,centro_origem_id_red,vendedor_tipo,vendedor_id,cliente_tipo,cliente_id,centro_destino_id,centro_destino_id_red,cfop_id,cfop_id_red,valor_total,sit_spa,orcamento_numero,margem_itens,desconto_itens,desconto_sobre_pedido,margem_tipo,margem_minima,itab,quant_itens,pecas,moeda,moeda_fator,pgt_frete,d_1,d_2,d_3,d_4,d_5,d_pag,d_frete,dias_medios,comissao,condicao_pgto_id,condicao_pagamento,IF(data_fechamento='0000-00-00 00:00:00','2013-06-17 20:15:39',data_fechamento) AS data_fechamento,saida_entrada,distribuidor_propriedade,cliente_propriedade,last_update_time,financeiro,nf_emitente,devolucao_tipo,devolucao,nf_serie,nf_numero,local_cobranca_tipo,local_cobranca_id,cfop_servico_id,cfop_servico_id_red,data_prevista_embarque,veiculo_id,rota_id,rota_id_red,rota_sequencia,dev_oe,dev_oe_seq,local_entrega_tipo,local_entrega_id,importado FROM spamov AS a WHERE lote_tipo='v' AND lote_spa=855214 AND unidade_id=1001 1737.805 0 0 0.000 69744 0
      59636 rdm localhost 19_org Query 1 Waiting for table level lock /* pid:26561 spd_user: v.90067 SELF='/rdm-business/app/spa.supervisor.spadim' ms=0 ip=10.10.0.38 session=mojzgf.seusjxyu87bk6wose4yskg00og4kg04sc0 */SELECT SQL_CACHE SQL_SMALL_RESULT sit_pcp,sit_logistica,sit_producao,sit_compra,sit_spa,sit_nf,sit_pde,sit_pdp,sit_dp,sit_fin,lote_estorno,cur_oe FROM spamov WHERE unidade_id=1001 AND lote_tipo='v' AND lote_spa=855222 1461.804 0 0 0.000 53424 0
      59315 rdm localhost 19_org Query 108 Copying to tmp table /* – S++ ABORTABLE – pid:3634 spd_user: prod.01 SELF='/rdm-business/app/industria.rendimentos.spadim' ms=0 ip=172.16.1.51 session=mojz3q.7mewc9drp5uqk29cbdkcogowskgw8ooskk */INSERT INTO rend_d10f6a3f4462ae8d779ffe342a7be62e_0 SELECT DISTINCT "" AS descricao,'+' AS add_sub,"PRODUTOS" AS tabela_preco,e.plano_conta_numero AS centro_numero,e.descricao AS centro_descricao,a.quant AS quant_real,a.pecas AS pecas_real,a.pliq AS pliq_real,a.pbruto AS pbruto_real,a.vliq AS vliq_real,a.vbruto AS vbruto_real,a.quant,a.pecas,a.pliq AS pliq,a.pbruto,a.vliq,a.vbruto,a.custo,a.lote_rendimento_data,a.lote_rendimento_numero,a.oe_tipo,c.plano_conta_numero AS cfop_numero,c.descricao AS cfop_descricao,b.plano_conta_numero AS item_numero,b.descricao AS item_descricao,b.codigo_busca AS item_codigo_busca ,a.unidade_id,a.lote_tipo,a.lote_spa,a.item_id,a.item_id_red,a.mov_id,a.oe,a.oe_seq,(b.plano_conta_id ";" b.plano_conta_numero) AS tmp_group,(b.plano_conta_id ";" b.codigo_busca) AS tmp_group_cb,12 AS ordem,b.producao_faixa_pliq_1 AS kg_cadastro_1,b.producao_faixa_pliq_2 AS kg_cadastro_2,'cadastro' AS kg_pc_tipo,0 AS kg_pc_1,0 AS kg_pc_2,0 AS valor_venda_un,'un' AS valor_venda_grandeza,0 AS valor_venda_grandeza_quant,(SELECT valor_custo_grandeza_quant FROM unidade_itens_custo WHERE unidade_id=a.unidade_id AND item_id=a.item_id AND item_id_red=a.item_id_red) AS valor_custo_grandeza_quant,(SELECT valor_custo_grandeza FROM unidade_itens_custo WHERE unidade_id=a.unidade_id AND item_id=a.item_id AND item_id_red=a.item_id_red) AS valor_custo_grandeza,(SELECT mc_minima FROM unidade_itens_custo WHERE unidade_id=a.unidade_id AND item_id=a.item_id AND item_id_red=a.item_id_red) AS mc_minima,a.lote_sif_data,a.lote_sif,a.data_estoque FROM est_mov AS a, estoque_itens AS b, cfop_itens AS c , organograma AS e WHERE a.oe_tipo="bx-tr" AND e.plano_conta_id=a.estoque_saida_org AND e.plano_conta_id_red=a.estoque_saida_org_red AND a.estoque_saida_un=1001 AND e.plano_conta_numero = "3.05.01.01" AND a.item_id=67 AND b.plano_conta_id=a.item_id AND b.plano_conta_id_red=a.item_id_red AND b.codigo_busca LIKE "06__%" AND c.plano_conta_id=a.cfop_id AND c.plano_conta_id_red=a.cfop_id_red AND c.plano_conta_id=16 AND c.plano_conta_numero = "0.301" AND a.lote_rendimento_data="0000-00-00" AND a.lote_rendimento_numero>=1 AND a.lote_rendimento_numero<=1 AND a.rendimento='Y' 108662.913 0 0 0.000 246776 0
      59667 rdm localhost 19_org Query 0 Waiting for table level lock /* pid:1558 spd_user: cesar_it_162 SELF='/rdm-business/app/spa.supervisor.spadim' ms=6 ip=10.10.0.123 session=mok07w.2reumtrwn57vtzmb5n9k4ksg4s88gwgcss */SELECT MIN(IFNULL((SELECT SUM(quant) FROM est_atu WHERE unidade_id=1001 AND item_id=a.item_id AND item_id_red=a.item_id_red AND centro_atividade IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,82,50,51,52,53,54,55,56,57,58,59,60,61,62,63,81,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,88,84,86,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,362,363,364,365,367,368,369,370,372,373,374,375,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,401,402,403,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,546,547,548,549,550,552,553,554,555,556,558,559,560,561,562,564,565,566,567,568,570,571,572,573,574,576,577,578,579,580,582,583,584,585,586,588,589,590,591,592,594,595,596,597,598,600,601,602,603,604,606,607,608,609,610,612,613,614,615,616,618,619,620,621,622,624,625,626,627,628,630,631,632,633,634,636,637,638,639,640,642,643,644,645,646,648,649,650,651,652,654,655,656,657,658,660,661,662,663,664,666,667,668,669,670,672,673,674,675,676,678,679,680,681,682,684,685,686,687,688,690,691,692,693,694,726,727,728,729,730,732,733,734,735,736,738,739,740,741,742,744,745,746,747,748,83,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,85,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,982,983,984,985,986,988,989,990,991,993,994,995,996,998,999,1000,1001,1003,1004,1005,1006,1008,1009,1010,1011,1013,1014,1015,1016,1018,1019,1020,1021,1023,1024,1025,1026,1028,1029,1030,1031,87,1081,1032,1033,1034,1035,1036,1037,1043,1044,1045,1046,1047,1048,1049,1050,1082,1038,1039,1040,1041,1042,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1080,1079,1108,1115,1116,1117,1118,1119,1120,1127,1128,1129,1130,1131,1132,1139,1140,1141,1142,1143,1144,1151,1152,1153,1154,1155,1156,1163,1164,1165,1166,1167,1168,1175,1176,1177,1178,1179,1180,1187,1188,1189,1190,1191,1192,1199,1200,1201,1202,1203,1204,1211,1212,1213,1214,1215,1216,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1550,1551,1552,1553,1554,1555,1562,1563,1564,1565,1566,1567,1574,1575,1576,1577,1578,1579,1586,1587,1588,1589,1590,1591,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1544,1545,1546,1547,1548,1549,1556,1557,1558,1559,1560,1561,1568,1569,1570,1571,1572,1573,1580,1581,1582,1583,1584,1585,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1629,1630,1623,1624,1625,1626,1627,1628,1631,1632,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1834,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1906,1907,1908,1909,1910,1911,1912,1913,1914,0,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1928,1927,1930,1931,1932,2002,2003,1929,2000,2001,2004,2005,2006,2007,2008,2010,2011) ),0)-quantidade) AS est,MAX(quantidade-quant_oe) AS quant_sem_reserva FROM spamov_itens AS a WHERE unidade_id=1001 AND lote_tipo='v' AND lote_spa=854767 183.086 0 0 0.000 371472 0
      59666 rdm localhost 19_org Query 1 Waiting for table level lock /* pid:1302 spd_user: tlmk.90634 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=0 ip=10.10.0.12 session=mok08k.azdtgvtff1wfjhqm8kmzowo8og848wok88 */UPDATE spamov SET data_prevista_embarque="2013-06-17 17:15:39" WHERE unidade_id=1001 AND lote_tipo='v' AND lote_spa=855205 1687.008 0 0 0.000 45264 0
      59643 rdm localhost 19_org Query 0 Waiting for table level lock /* pid:18868 spd_user: ricardo.sup SELF='/rdm-business/app/spa.supervisor.spadim' ms=6 ip=189.24.122.130 session=mok07l.qe7capkf0e0ohp1y8a7ksck4gcsww0kcs0 */SELECT MIN(IFNULL((SELECT SUM(quant) FROM est_atu WHERE unidade_id=1001 AND item_id=a.item_id AND item_id_red=a.item_id_red AND centro_atividade IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,82,50,51,52,53,54,55,56,57,58,59,60,61,62,63,81,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,88,84,86,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,362,363,364,365,367,368,369,370,372,373,374,375,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,401,402,403,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,546,547,548,549,550,552,553,554,555,556,558,559,560,561,562,564,565,566,567,568,570,571,572,573,574,576,577,578,579,580,582,583,584,585,586,588,589,590,591,592,594,595,596,597,598,600,601,602,603,604,606,607,608,609,610,612,613,614,615,616,618,619,620,621,622,624,625,626,627,628,630,631,632,633,634,636,637,638,639,640,642,643,644,645,646,648,649,650,651,652,654,655,656,657,658,660,661,662,663,664,666,667,668,669,670,672,673,674,675,676,678,679,680,681,682,684,685,686,687,688,690,691,692,693,694,726,727,728,729,730,732,733,734,735,736,738,739,740,741,742,744,745,746,747,748,83,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,85,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,982,983,984,985,986,988,989,990,991,993,994,995,996,998,999,1000,1001,1003,1004,1005,1006,1008,1009,1010,1011,1013,1014,1015,1016,1018,1019,1020,1021,1023,1024,1025,1026,1028,1029,1030,1031,87,1081,1032,1033,1034,1035,1036,1037,1043,1044,1045,1046,1047,1048,1049,1050,1082,1038,1039,1040,1041,1042,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1080,1079,1108,1115,1116,1117,1118,1119,1120,1127,1128,1129,1130,1131,1132,1139,1140,1141,1142,1143,1144,1151,1152,1153,1154,1155,1156,1163,1164,1165,1166,1167,1168,1175,1176,1177,1178,1179,1180,1187,1188,1189,1190,1191,1192,1199,1200,1201,1202,1203,1204,1211,1212,1213,1214,1215,1216,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1550,1551,1552,1553,1554,1555,1562,1563,1564,1565,1566,1567,1574,1575,1576,1577,1578,1579,1586,1587,1588,1589,1590,1591,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1544,1545,1546,1547,1548,1549,1556,1557,1558,1559,1560,1561,1568,1569,1570,1571,1572,1573,1580,1581,1582,1583,1584,1585,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1629,1630,1623,1624,1625,1626,1627,1628,1631,1632,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1834,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1906,1907,1908,1909,1910,1911,1912,1913,1914,0,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1928,1927,1930,1931,1932,2002,2003,1929,2000,2001,2004,2005,2006,2007,2008,2010,2011) ),0)-quantidade) AS est,MAX(quantidade-quant_oe) AS quant_sem_reserva FROM spamov_itens AS a WHERE unidade_id=1001 AND lote_tipo='v' AND lote_spa=854810 234.073 0 0 0.000 371472 0
      59641 rdm localhost 19_org Query 1 Sending data /* pid:14649 spd_user: ger.lima SELF='/rdm-business/app/spa.gerente.spadim' ms=0 ip=10.10.0.9 session=mojzip.meurzf4e7312s2v0sdoys88sk88kkcckg0 */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=832 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1782.965 0 0 0.000 544944 0
      59288 rdm localhost 19_org Query 1 Sending data /* pid:5126 spd_user: tlmk.90634 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.12 session=mok014.eutdjz4y0aiylkletlswg4cgksgk8wcg48 */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=772 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1712.983 0 0 0.000 544976 0
      59274 rspadim 187.65.224.39:32923 19_org Query 0 executing select * from information_schema.processlist where info!='' 0.653 0 0 0.000 77248 0
      59235 rdm localhost 19_org Query 1 Waiting for table level lock /* pid:1200 spd_user: valinho15 SELF='/rdm-business/app/spa.supervisor.spadim' ms=0 ip=187.126.222.181 session=mojzxw.x0u0yfrcqb5wl38m7h80s4ksckwswos800 */SELECT IF(quant_itens!=0,pedido_padrao,'') AS pedido_padrao FROM spamov WHERE unidade_id=1001 AND lote_tipo='v' AND lote_spa=855218 1721.629 0 0 0.000 45264 0
      59230 rdm localhost 19_org Query 2 Sending data /* pid:863 spd_user: ger.lima SELF='/rdm-business/app/industria.estoque.spadim' ms=0 ip=10.10.0.8 session=mojzih.x2e7pwc8x40yb5uljmxa8k0oksgckwkck8 */SELECT SUM( b.quantidade * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_quant,SUM( b.quantidade * b.pecas * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_pecas,SUM( b.quantidade * b.pliq * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_pliq,SUM( b.quantidade * b.pbruto * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_pbruto,SUM( b.quantidade * b.vliq * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_vliq,SUM( b.quantidade * b.vbruto * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_vbruto,SUM( IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_quant,SUM( b.pecas * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_pecas,SUM( b.pliq * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_pliq,SUM( b.pbruto * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_pbruto,SUM( b.vliq * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_vliq,SUM( b.vbruto * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_vbruto FROM spamov AS a,spamov_itens AS b WHERE (a.distribuidor_tipo,a.distribuidor_id)!=('f',2) AND a.unidade_id=1001 AND a.lote_tipo='c' AND b.unidade_id=a.unidade_id AND b.lote_tipo=a.lote_tipo AND b.lote_spa=a.lote_spa AND b.item_id=67 AND b.item_id_red=135 AND a.compra_cancelada='N' 2077.922 0 0 0.000 198808 0
      59199 rdm localhost 19_org Query 1 Sending data /* pid:10182 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzyt.1xhd6hzpuebi0mztlfm04wsccksoc4scs8 */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1174 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1727.393 0 0 0.000 544976 0
      59161 rdm localhost 19_org Query 1 Sending data /* pid:31074 spd_user: cesar_it_162 SELF='/rdm-business/app/spa.supervisor.spadim' ms=-2 ip=186.241.142.146 session=mojzgh.slcurdzf824b6lv7a60askww0k048k4408 */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=342 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1778.310 0 0 0.000 544976 0
      59129 rdm localhost 19_org Query 1 Sending data /* pid:18692 spd_user: ger.lima SELF='/rdm-business/app/industria.estoque.spadim' ms=0 ip=10.10.0.8 session=mojzih.x2e7pwc8x40yb5uljmxa8k0oksgckwkck8 */SELECT SUM( b.quantidade * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_quant,SUM( b.quantidade * b.pecas * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_pecas,SUM( b.quantidade * b.pliq * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_pliq,SUM( b.quantidade * b.pbruto * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_pbruto,SUM( b.quantidade * b.vliq * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_vliq,SUM( b.quantidade * b.vbruto * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_vbruto,SUM( IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_quant,SUM( b.pecas * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_pecas,SUM( b.pliq * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_pliq,SUM( b.pbruto * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_pbruto,SUM( b.vliq * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_vliq,SUM( b.vbruto * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_vbruto FROM spamov AS a,spamov_itens AS b WHERE (a.distribuidor_tipo,a.distribuidor_id)!=('f',2) AND a.unidade_id=1001 AND a.lote_tipo='c' AND b.unidade_id=a.unidade_id AND b.lote_tipo=a.lote_tipo AND b.lote_spa=a.lote_spa AND b.item_id=67 AND b.item_id_red=1188 AND a.compra_cancelada='N' 1843.256 0 0 0.000 198808 0
      59078 rdm localhost 19_org Query 1 Sending data /* pid:15239 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=2030 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1775.958 0 0 0.000 544976 0
      59077 rdm localhost 19_org Query 1 Sending data /* pid:28950 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=2030 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1703.846 0 0 0.000 544976 0
      59046 rdm localhost 19_org Query 0 Waiting for table level lock /* pid:20907 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_CACHE SQL_SMALL_RESULT b.valor_un_produto,b.data_hora FROM spamov_itens AS b,spamov AS a WHERE (b.unidade_id,b.lote_tipo,b.lote_spa)=(a.unidade_id,a.lote_tipo,a.lote_spa) AND a.unidade_id=1001 AND a.lote_tipo='v' AND b.item_id=67 AND b.item_id_red=1700 AND a.cliente_tipo='j' AND a.cliente_id=15690 ORDER BY a.lote_spa DESC LIMIT 1 690.012 0 0 0.000 53424 0
      59045 rdm localhost 19_org Query 0 Waiting for table level lock /* pid:10066 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_CACHE SQL_SMALL_RESULT b.valor_un_produto,b.data_hora FROM spamov_itens AS b,spamov AS a WHERE (b.unidade_id,b.lote_tipo,b.lote_spa)=(a.unidade_id,a.lote_tipo,a.lote_spa) AND a.unidade_id=1001 AND a.lote_tipo='v' AND b.item_id=67 AND b.item_id_red=1700 AND a.cliente_tipo='j' AND a.cliente_id=15690 ORDER BY a.lote_spa DESC LIMIT 1 477.957 0 0 0.000 53424 0
      59044 rdm localhost 19_org Query 1 Sending data /* pid:23586 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1700 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1749.591 0 0 0.000 544976 0
      59035 rdm localhost 19_org Query 1 Sending data /* pid:12288 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1700 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1795.692 0 0 0.000 544976 0
      59020 rdm localhost 19_org Query 1 Sending data /* pid:17072 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=70 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1747.965 0 0 0.000 544976 0
      59019 rdm localhost 19_org Query 1 Sending data /* pid:15570 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=70 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1799.355 0 0 0.000 544976 0
      59017 rdm localhost 19_org Query 1 Sending data /* pid:31071 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=70 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1740.006 0 0 0.000 544976 0
      59016 rdm localhost 19_org Query 1 Sending data /* pid:31072 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=70 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1795.820 0 0 0.000 544976 0
      59015 rdm localhost 19_org Query 1 Sending data /* pid:30852 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=70 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1755.713 0 0 0.000 544976 0
      59000 rdm localhost 19_org Query 1 Sending data /* pid:15240 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1228 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1769.921 0 0 0.000 544976 0
      58999 rdm localhost 19_org Query 1 Sending data /* pid:2405 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1228 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1788.953 0 0 0.000 544976 0
      58998 rdm localhost 19_org Query 1 Sending data /* pid:1537 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1228 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1795.771 0 0 0.000 544976 0
      58996 rdm localhost 19_org Query 1 Sending data /* pid:22872 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1228 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1799.823 0 0 0.000 544976 0
      58987 rdm localhost 19_org Query 1 Sending data /* pid:8470 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1228 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1797.201 0 0 0.000 544976 0
      58961 rdm localhost 19_org Query 1 Sending data /* pid:1538 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=85 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1797.180 0 0 0.000 544976 0
      58960 rdm localhost 19_org Query 1 Sending data /* pid:21411 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=85 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1769.112 0 0 0.000 544976 0
      58955 rdm localhost 19_org Query 1 Sending data /* pid:18375 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=85 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1731.914 0 0 0.000 544976 0
      58947 rdm localhost 19_org Query 1 Sending data /* pid:1304 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1228 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1760.320 0 0 0.000 544976 0
      58946 rdm localhost 19_org Query 1 Sending data /* pid:30793 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=85 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1797.664 0 0 0.000 544976 0
      58944 rdm localhost 19_org Query 1 Sending data /* pid:21056 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=85 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1794.179 0 0 0.000 544976 0
      58943 rdm localhost 19_org Query 1 Sending data /* pid:23253 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1563 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1799.920 0 0 0.000 544976 0
      58941 rdm localhost 19_org Query 1 Sending data /* pid:1303 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1563 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1803.577 0 0 0.000 544976 0
      58940 rdm localhost 19_org Query 1 Sending data /* pid:17755 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1563 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1734.852 0 0 0.000 544976 0
      58937 rdm localhost 19_org Query 1 Sending data /* pid:1536 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1600 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1776.296 0 0 0.000 544976 0
      58936 rdm localhost 19_org Query 1 Sending data /* pid:1540 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=414 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1771.031 0 0 0.000 544976 0
      58929 rdm localhost 19_org Query 2147483647 Waiting for table level lock /* pid:30341 spd_user: cesar_it_162 SELF='/rdm-business/app/spa.supervisor.spadim' ms=-2 ip=186.241.142.146 session=mojzgh.slcurdzf824b6lv7a60askww0k048k4408 */SELECT sit_trib,icms_de_aliq,icms_de_red,icms_fe_aliq,icms_fe_red,icms_subst_ind_convenio,sn_aliq,sn_red,ipi_aliq,ipi_red,iss_aliq,iss_red,pis_aliq,pis_red,cofins_aliq,cofins_red,valor_pauta,valor_pauta_grandeza,valor_pauta_grandeza_quant,IF(valor_pauta_grandeza='un',1,IF(valor_pauta_grandeza='up',pecas,IF(valor_pauta_grandeza IN ('pl','@pl'),pliq,IF(valor_pauta_grandeza IN ('pb','@pb'),pbruto,IF(valor_pauta_grandeza='vl',vliq,vbruto)))))/valor_pauta_grandeza_quant/IF(valor_pauta_grandeza IN ('@pl','@pb'),15,1) AS valor_pauta_grandeza_un,pecas,pliq,pbruto,vbruto,vliq,servico,funrural_aliq,funrural_red,inss_aliq,inss_red,sit_trib_inss,csll_aliq,csll_red,sit_trib_csll,ir_aliq,ir_red,sit_trib_ir,ii_aliq,ii_red,sit_trib_ii,cide_aliq,cide_red FROM spamov_itens WHERE unidade_id=1001 AND lote_tipo='v' AND lote_spa=855195 AND item_id=67 AND item_id_red=528 18446744073709548.000 0 0 0.000 69744 0
      58928 rdm localhost 19_org Query 1 Sending data /* pid:23252 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=414 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1791.544 0 0 0.000 544976 0
      58926 rdm localhost 19_org Query 1 Sending data /* pid:22477 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=414 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1715.010 0 0 0.000 544976 0
      58925 rdm localhost 19_org Query 1 Sending data /* pid:23153 spd_user: tlmk.90587 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.13 session=mojz1w.yi5sev9qm5chtmjixh8g0wg444kkkgwsoc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1164 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1956.403 0 0 0.000 544976 0
      58923 rdm localhost 19_org Query 1 Sending data /* pid:26372 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=414 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1795.042 0 0 0.000 544976 0
      58922 rdm localhost 19_org Query 1 Sending data /* pid:16220 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=85 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1768.287 0 0 0.000 544976 0
      58916 rdm localhost 19_org Query 1 Sending data /* pid:22865 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1600 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1719.490 0 0 0.000 544976 0
      58908 rdm localhost 19_org Query 1 Sending data /* pid:28948 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1600 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1749.866 0 0 0.000 544976 0
      58906 rdm localhost 19_org Query 1 Sending data /* pid:23256 spd_user: tlmk.90652 SELF='/rdm-business/app/spa.vendedorexterno.spadim' ms=-2 ip=10.10.0.11 session=mojzke.ijebyjorb1dn48lftfxa8w80ko0g0oskgc */SELECT SQL_SMALL_RESULT SQL_CACHE SUM(pecas) AS pecas,SUM(quant) AS quant,SUM(pliq) AS pliq,SUM(pbruto) AS pbruto,SUM(vbruto) AS vbruto,SUM(vliq) AS vliq,SUM(valor_custo) AS custo,SUM(pecas) AS pecas_rastr,SUM(quant) AS quant_rastr,SUM(pliq) AS pliq_rastr,SUM(pbruto) AS pbruto_rastr,SUM(vbruto) AS vbruto_rastr,SUM(vliq) AS vliq_rastr,SUM(valor_custo) AS custo_rastr,MAX(data_processamento_gmt) AS ultima_atualizacao FROM rastreabilidade WHERE table_partition=0 AND sobra='N' AND local_atual_un=1001 AND local_atual_data_processamento<='2013-06-17' AND data_validade_gmt>UTC_TIMESTAMP() AND item_id=67 AND item_id_red=1563 AND local_atual_org_red IN ("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","82","50","51","52","53","54","55","56","57","58","59","60","61","62","63","81","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","88","84","86","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","343","344","345","346","347","348","349","350","351","352","353","354","355","356","357","358","359","360","362","363","364","365","367","368","369","370","372","373","374","375","377","378","379","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","401","402","403","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","517","518","519","520","521","522","523","524","525","526","527","528","529","530","531","532","533","534","535","536","537","538","539","540","541","542","543","544","546","547","548","549","550","552","553","554","555","556","558","559","560","561","562","564","565","566","567","568","570","571","572","573","574","576","577","578","579","580","582","583","584","585","586","588","589","590","591","592","594","595","596","597","598","600","601","602","603","604","606","607","608","609","610","612","613","614","615","616","618","619","620","621","622","624","625","626","627","628","630","631","632","633","634","636","637","638","639","640","642","643","644","645","646","648","649","650","651","652","654","655","656","657","658","660","661","662","663","664","666","667","668","669","670","672","673","674","675","676","678","679","680","681","682","684","685","686","687","688","690","691","692","693","694","726","727","728","729","730","732","733","734","735","736","738","739","740","741","742","744","745","746","747","748","83","749","750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816","817","818","819","820","821","822","823","824","825","826","827","828","829","85","830","831","832","833","834","835","836","837","838","839","840","841","842","843","844","845","846","847","848","849","850","851","852","853","854","855","856","857","858","859","860","861","862","863","864","865","866","867","868","871","872","873","874","875","876","877","878","879","880","881","882","883","884","885","886","887","888","889","890","891","892","893","894","895","896","897","898","899","900","901","902","903","904","905","906","907","908","909","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","929","930","931","932","933","934","935","936","937","938","939","940","941","942","943","944","945","946","947","948","949","950","951","952","953","954","982","983","984","985","986","988","989","990","991","993","994","995","996","998","999","1000","1001","1003","1004","1005","1006","1008","1009","1010","1011","1013","1014","1015","1016","1018","1019","1020","1021","1023","1024","1025","1026","1028","1029","1030","1031","87","1081","1032","1033","1034","1035","1036","1037","1043","1044","1045","1046","1047","1048","1049","1050","1082","1038","1039","1040","1041","1042","1051","1052","1053","1054","1055","1056","1057","1058","1059","1060","1061","1062","1063","1064","1065","1066","1067","1068","1069","1070","1071","1072","1073","1074","1075","1076","1077","1078","1080","1079","1108","1115","1116","1117","1118","1119","1120","1127","1128","1129","1130","1131","1132","1139","1140","1141","1142","1143","1144","1151","1152","1153","1154","1155","1156","1163","1164","1165","1166","1167","1168","1175","1176","1177","1178","1179","1180","1187","1188","1189","1190","1191","1192","1199","1200","1201","1202","1203","1204","1211","1212","1213","1214","1215","1216","1223","1224","1225","1226","1227","1228","1229","1230","1231","1232","1233","1234","1235","1236","1237","1238","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1350","1351","1352","1353","1354","1355","1356","1357","1358","1359","1360","1361","1362","1363","1364","1365","1366","1367","1368","1369","1370","1371","1372","1373","1374","1375","1376","1377","1378","1379","1380","1381","1382","1383","1384","1385","1386","1387","1388","1389","1390","1391","1392","1393","1394","1395","1396","1397","1398","1471","1472","1473","1474","1475","1476","1477","1478","1479","1480","1481","1482","1483","1484","1485","1486","1487","1488","1489","1490","1491","1492","1493","1494","1495","1496","1497","1498","1499","1500","1501","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1512","1513","1514","1515","1516","1517","1518","1519","1532","1533","1534","1535","1536","1537","1538","1539","1540","1541","1542","1543","1550","1551","1552","1553","1554","1555","1562","1563","1564","1565","1566","1567","1574","1575","1576","1577","1578","1579","1586","1587","1588","1589","1590","1591","1520","1521","1522","1523","1524","1525","1526","1527","1528","1529","1530","1531","1544","1545","1546","1547","1548","1549","1556","1557","1558","1559","1560","1561","1568","1569","1570","1571","1572","1573","1580","1581","1582","1583","1584","1585","1810","1811","1812","1813","1814","1815","1816","1817","1818","1819","1820","1821","1822","1823","1824","1825","1826","1827","1828","1829","1830","1831","1832","1833","1592","1593","1594","1595","1596","1597","1598","1599","1600","1601","1602","1603","1604","1605","1606","1607","1608","1609","1610","1611","1612","1613","1614","1615","1616","1617","1618","1619","1620","1621","1622","1629","1630","1623","1624","1625","1626","1627","1628","1631","1632","1653","1654","1655","1656","1657","1658","1659","1660","1661","1662","1663","1664","1665","1666","1667","1668","1669","1670","1671","1672","1673","1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724","1725","1726","1727","1728","1729","1730","1731","1732","1733","1734","1735","1736","1737","1738","1739","1740","1741","1742","1743","1744","1745","1746","1747","1748","1749","1750","1751","1752","1753","1754","1755","1756","1757","1758","1759","1760","1761","1762","1763","1764","1765","1766","1767","1768","1769","1770","1771","1772","1773","1774","1775","1776","1777","1778","1779","1780","1781","1782","1783","1784","1785","1786","1787","1788","1789","1790","1791","1792","1793","1794","1795","1796","1797","1798","1799","1800","1801","1802","1803","1804","1805","1806","1807","1808","1809","1834","1084","1085","1086","1087","1088","1089","1090","1091","1092","1093","1094","1095","1096","1097","1098","1099","1100","1101","1102","1103","1104","1105","1106","1107","1906","1907","1908","1909","1910","1911","1912","1913","1914","0","1915","1916","1917","1918","1919","1920","1921","1922","1923","1924","1925","1926","1928","1927","1930","1931","1932","2002","2003","1929","2000","2001","2004","2005","2006","2007","2008","2010","2011") 1798.395 0 0 0.000 544976 0
      104 rdm localhost 19_org Query 1 Sending data /* pid:26361 spd_user: ger.lima SELF='/rdm-business/app/industria.estoque.spadim' ms=0 ip=10.10.0.8 session=mojyf7.tus5fs5umakn8p0l1n34g84owo0k08k8ck */SELECT SUM( b.quantidade * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_quant,SUM( b.quantidade * b.pecas * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_pecas,SUM( b.quantidade * b.pliq * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_pliq,SUM( b.quantidade * b.pbruto * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_pbruto,SUM( b.quantidade * b.vliq * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_vliq,SUM( b.quantidade * b.vbruto * IF(a.sit_spa='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS ped_compra_vbruto,SUM( IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_quant,SUM( b.pecas * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_pecas,SUM( b.pliq * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_pliq,SUM( b.pbruto * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_pbruto,SUM( b.vliq * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_vliq,SUM( b.vbruto * IF(b.quant_lib>0,(b.quant_lib-b.quant_rejeitado-b.quant_embarcado),(b.quantidade-b.quant_rejeitado-b.quant_embarcado)) * IF(a.sit_spa!='mov',0,1) * IF(a.saida_entrada='e',1,-1) ) AS compras_vbruto FROM spamov AS a,spamov_itens AS b WHERE (a.distribuidor_tipo,a.distribuidor_id)!=('f',2) AND a.unidade_id=1001 AND a.lote_tipo='c' AND b.unidade_id=a.unidade_id AND b.lote_tipo=a.lote_tipo AND b.lote_spa=a.lote_spa AND b.item_id=67 AND b.item_id_red=1655 AND a.compra_cancelada='N' 1838.434 0 0 0.000 198808 0

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              rspadim roberto spadim
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: