Pregunta de entrevista de Ant International

How to resolve lock in sql, what method to use