In TSQL you can use % (Modulo) function. Which will return the integer that 
remains after two integers are divided. So: 

WHERE [your_field] % 2 = 1

 indicates odd.


Cheers,
Bill

In a message dated 6/12/01 1:38:41 PM Eastern Daylight Time, 
[EMAIL PROTECTED] writes:


> 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

Reply via email to