Deloitte interview question

mostly about SQL and Database