Embedded question
Incorrect : He asked me what was my name?
Correct : He asked me what my name was.
Note: "He asked me ..." is not a question. In fact "what my name was” in the correct sentence is an embedded question and its subject- verb order is like that of a statement.
Most Popular Course:Data Science of Harvard, MIT, IBM....