• Kiran

    You need to add a computed column to the table. Use the DATEDIFF function to set its value.

    Incidentally, why are you storing date values as int in your table?

    John