Espire Infolabs Interview Question

Asked questions from resume , basic coding question ( diamond star pattern ) some sql query and oops