You didn't specify which database engine you're using, so I'm going to use MySQL as an example.
You could just do:
SELECT membername FROM membertable WHERE YEAR(memberbirthday) = 1978
YEAR() will just return the year part and you can search on that. Or if you wanted, you could do some math and subtract todays date from the YEAR() value to find all those years that equal 20 or 30 (there maybe a datediff() function which might be better for this task since it would take into account month and day).