pastebin - collaborative debugging tool
hn.kpaste.net RSS


Untitled
Posted by NotLim on Sun 5th Jan 2014 14:41
raw | new post

  1. | 238225 | ag_user | localhost | ag_portal | Query   |    1 | Sending data | SELECT * FROM ag_category c
  2.                                                 LEFT JOIN ag_category_description cd ON (c.category_id = cd.category_id)
  3.                                                 LEFT JOIN ag_category_to_store c2s ON (c.category_id = c2s.category_id)
  4.  
  5.                                 WHERE c.parent_id in (1502,1510,1519,1521,1526,1530,1535,1539,1544,1552,1554,1557,1565,1569,1571,1574,1575,1576,1577,1578,1579,1583,1584,1585,1586,1587,1589,1590,1592,1594,1595,1597,1598,1600,1601,1602) AND c.origin_SAP = 'FILTRO'
  6.                                 AND
  7.                                 (
  8.                                         select count(*) from ag_product_to_category ptc1 where ptc1.category_id = c.category_id
  9.                                         and
  10.                                         (
  11.                                                 select count(*) from ag_product_to_category ptc2 where ptc2.product_id = ptc1.product_id
  12.                         and ptc2.category_id = 1120
  13.  and
  14.                                                 (
  15.                                                         select count(*) from ag_product p where p.product_id = ptc2.product_id and p.status = '1' and p.quantity > 2
  16.                                                 )  > 0
  17.                                         ) > 0
  18.                                 ) > 0
  19.                                 AND cd.language_id = '1'
  20.                                 AND c2s.store_id = '0'  
  21.                                 AND c.status = '1'
  22.                                 ORDER BY c.sort_order, LCASE(cd.name)                           |
  23. | 238226 | ag_user | localhost | ag_portal | Query   |    0 | Sending data | SELECT * FROM ag_category c
  24.                                                 LEFT JOIN ag_category_description cd ON (c.category_id = cd.category_id)
  25.                                                 LEFT JOIN ag_category_to_store c2s ON (c.category_id = c2s.category_id)
  26.  
  27.                                 WHERE c.parent_id in (1502,1510,1519,1521,1526,1530,1535,1539,1544,1552,1554,1557,1565,1569,1571,1574,1575,1576,1577,1578,1579,1583,1584,1585,1586,1587,1589,1590,1592,1594,1595,1597,1598,1600,1601,1602) AND c.origin_SAP = 'FILTRO'
  28.                                 AND
  29.                                 (
  30.                                         select count(*) from ag_product_to_category ptc1 where ptc1.category_id = c.category_id
  31.                                         and
  32.                                         (
  33.                                                 select count(*) from ag_product_to_category ptc2 where ptc2.product_id = ptc1.product_id
  34.                         and ptc2.category_id = 428
  35.  and
  36.                                                 (
  37.                                                         select count(*) from ag_product p where p.product_id = ptc2.product_id and p.status = '1' and p.quantity > 2  AND p.manufacturer_id = 45
  38.                                                 )  > 0
  39.                                         ) > 0
  40.                                 ) > 0
  41.                                 AND cd.language_id = '1'
  42.                                 AND c2s.store_id = '0'  
  43.                                 AND c.status = '1'
  44.                                 ORDER BY c.sort_order, LCASE(cd.name) |

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at