I know that when we are reporting a question in a sentence in reported speech, the question mark should be removed, like this:
Question asked of me: "Did you know that girl?"
Reported: He asked me if I had known the girl.
But what about the case where the question has a with a wh-clause?
As in:
"Do you know where...?"
"Do you know where I can get a handmade knife?"
If the above question sounds correct, why doesn't the one below?
Do you know where can I get a handmade knife?
I'd like the name for the grammar involved here, and an explanation of why the word order is switched.