I need to write a stored procedure to allow someone to search a db. However, all I get are ints for month and year. And the db has month and year fields. But I can't figure out how to set up the comparison.
Ex: I get March 2008 and June 2010.
I need to searhc the database for records where the date, as specified by the month and year fields, are between thoese two dates.
Edit
Given two Date
inputs, how do I find all records that fall between those dates? Each record only has integers representing year and month.