For example:

In welcher Situation benuzt man Dativ?

In welche Situation benutzt man Akkusativ?

What is the correct form of welch- here and when do we use it with which case?

The issue is with the preposition in, which can be used with the dative or the accusative case, depending on the context.