hihi..all gurus.. i know this is not appropriate here... sorry to bother u all....
 i need to write a query to retrieve existing records by age of the records..


eg. user want to see Sales orders that are  5 yrs old..

so i need to write a query to retrieve from sales table.. where theres a orderdate 
column int it..
datatype is datetime.

so how am i going to write the query in mssql..??
 oracle can use trunc() .. but mssql dont hav that... :(

help help..

hanpeng

______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to