Netcracker Technology interview question

Fibonacci, Factorial... SQL tables, joins, etc.