|
<<SNIP>>
The Concatenation below works but the results are bad ..
Select sum(SALES) From DaySales
WHERE CPY = 22 and SDSTR = 1234 AND
DIGITS(2009) CONCAT'-' CONCAT DIGITS (07) CONCAT'-'
CONCAT DIGITS(15) BETWEEN '2009-07-14' AND '2009-08-10';
I tried:
Select sum(SALES) From DaySales WHERE CPY = 22 and SDSTR = 1234 AND
DIGITS(2009) CONCAT DIGITS (07) CONCAT DIGITS(15)
BETWEEN '20090714' AND '20090810';
Off by Ml.s
Multiplication below, Returns Zeo (.)
Select sum(SALES) From DaySales WHERE SDCPY = 88 and SDSTR = 1234 AND
((2009*10000) + (07*100) + 15) BETWEEN '20090714' AND '20090810';
<<SNIP>>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.