Hi Everyone.
I have a table with a date field and I would like to extract all records with a date with a certain month or year. One way I thought of doing this was:
select fieldnames
from tablename
where datefield >= '2003/10/01'
and datefield <= '2003/10/31'
and something similar for the year, however this for some reason seems very inefficient (maybe its not), but is there a better way?
Thanks
Best Regards
Andrew.
I have a table with a date field and I would like to extract all records with a date with a certain month or year. One way I thought of doing this was:
select fieldnames
from tablename
where datefield >= '2003/10/01'
and datefield <= '2003/10/31'
and something similar for the year, however this for some reason seems very inefficient (maybe its not), but is there a better way?
Thanks
Best Regards
Andrew.