SELECT
ICPRT1.IARCC9,
ICPRT1.IAPRT#,
Sales.ITTRND,
Sales.ITQTY#,
ICPRT1.IA101,
Sales.IEQOO#,
Sales.IEQOH#,
Sales.IEQOR#,
ICPRT1.IARCC6,
Sales.ITPRT#
FROM
S1047N4M.ASTDTA.ICPRT1 ICPRT1
LEFT JOIN
In following am getting this error: what syntax error do i have?
SQL0104 - Token SALES was not valid. Valid tokens: FOR USE SKIP WAIT WITH
FETCH ORDER UNION EXCEPT OPTIMIZE.
(
SELECT
ICPRT1.IARCC9,
ICPRT1.IAPRT#,
ICDET76.ITTRND,
ICDET76.ITQTY#,
ICPRT1.IA101,
ICBAL1.IEQOO#,
ICBAL1.IEQOH#,
ICBAL1.IEQOR#,
ICPRT1.IARCC6,
ICDET76.ITPRT#
FROM
ASTDTA.ICPRT1
LEFT JOIN ASTCCDTA.ICDET76
ON ICPRT1.IAPRT#=ICDET76.ITPRT#
LEFT OUTER JOIN ASTDTA.ICBAL1
ON ICDET76.ITPRT#=ICBAL1.IEPRT#
WHERE
ICPRT1_1.IARCC9 = *'ACS'* --Replace this Static Value with a Command
Object Prompt
AND ICDET76.ITTRND *BETWEEN 20150101 AND 20150401* --Replace these two
values with a Start and End Date Prompt
) Sales
ON ICPRT1.IAPRT# = Sales.IAPRT#
WHERE
ICPRT1_1.IARCC9 = 'ACS' --Replace this Static Value with a Command Object
Prompt
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.