Cardless interview question

Answer some SQL based questions?