I am currently using the following query to get all the inspections done on june 2010:
select inspections.name from inspections where to_char(inspections.i
I like to use range comparison when possible since this can be used for index-scan by the optimizer:
select inspections.name from inspections where inspections.date >= DATE '2010-06-01' and inspections.date < DATE '2010-07-01'