I am creating a library management application with a membership form.
Types of Membership are:
- Half yearly
- Annually
- Patron(For 15 Minutes)
- Life Member
Now I have designed a table in SQL SERVER 2008 which consists of:
- MemberId
- Name
- Joining Date
- Expiration Date
- Status
The status consists of either M
for Member or E
for Expired Membership.
Now I want this task to happen automatically.
For example, if the expiration date of membership was yesterday then it should automatically change the status to E
.
How can I do this?