× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



this one is failing, its sql server syntax, I want to process only the
previous week's sales.


SELECT `OEINH2`.`IHDOCD`,
`OEINH2`.`IHINV#`,
`ADRES1`.`ADINTA`
FROM
ASTDTA`.`OEINH2` `OEINH2`
INNER JOIN `ASTDTA`.`ADRES1` `ADRES1`
ON `OEINH2`.`IHGRC#` = `ADRES1`.`ADENT#` + `ADRES1`.`ADSFX#`
WHERE
CAST(CONVERT(VARCHAR, `OEINH2`.`IHDOCD`) AS DATE) BETWEEN dateadd(wk,
datediff(wk, 0, getdate()) - 1, 0) -1 AND dateadd(wk, datediff(wk, 0,
getdate()) - 1, 0) + 6
ORDER BY `OEINH2`.`IHINV#`

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.