Say you want to query a table returning all the records from a certain year. An easy way to do this is to use SQL’s Year Function as follows:
Select * From <Table> Where Year(<DateTimeField>) = 2006
Print | posted on Saturday, December 10, 2005 1:12 AM | Filed Under [ SQL & LINQ ]
Powered by:
Copyright © Dennis Bottjer