Try this:
select *
from tblWhatever
where columnValue % 2 = 0
the % sign is the symbol for the modulus operator. it's the same as
division, but instead of the division value, it returns the remainder value.
If the remainder value is 0 then it's an even number.
HTH,
d
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 9:31 AM
To: CF-Talk
Subject: Easy question I think:
Can anyone give me a sql statement that tells me if a value is odd or even?
select * from table where ?????
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists