Get records based on month and year

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rheni
    New Member
    • Oct 2011
    • 1

    Get records based on month and year

    Hi,,

    I am passing month and year in a single string to stored procedure,,
    In my table date column is there, Now i want all the records on particular month and year which am passing,,

    Plz any body can help me to write this query,

    Thanks in advance,
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You can use the year() and month() functions to extract the year and month, respectively, from a date data type to do your filtering.

    Comment

    Working...