Barclays interview question

Questions related to basic finance and sql.