comconrk
Programmer
- Jul 15, 2002
- 55
I am writing SQL statements to accesss data from an AS400. They work very well, but there seems to be an upper limit of 256 characters for the SELECT statement.
Is there any way around that? Or am I doing something wrong?
Here is my statement.
"SELECT PRODUCT_CODE,sum(SOLD_ITEMS),sum(REVENUE_AMOUNT) FROM PPRODUCTS JOIN DREVENUE ON (PPRODUCT = PRODUCT_CODE AND DREVENUE.ORGANIZATION_CODE = PPRODUCTS.PORGCODE) WHERE PPRODUCTS.PPARENT='" & Product_Input & "' Group by product_code
Is there any way around that? Or am I doing something wrong?
Here is my statement.
"SELECT PRODUCT_CODE,sum(SOLD_ITEMS),sum(REVENUE_AMOUNT) FROM PPRODUCTS JOIN DREVENUE ON (PPRODUCT = PRODUCT_CODE AND DREVENUE.ORGANIZATION_CODE = PPRODUCTS.PORGCODE) WHERE PPRODUCTS.PPARENT='" & Product_Input & "' Group by product_code