I can not solve this question
$$ \lim_{x\to0}\frac{\sin\frac{1}{x}}{\sin\frac{1}{x}} $$
Because I am getting two different answers for different situation.
Situation - 1 ) If $\sin(1/x) = 0$ then the answer will be indeterminate.
Situation - 2 ) If $\sin(1/x) \neq 0$ then the answer will be "one".
Which one is correct and why?

The limit is $1$. Any point $x$ for which $\sin \frac{1}{x}=0$ is not in the domain of the function $\frac{\sin \frac{1}{x}}{\sin \frac{1}{x}}$, so we do not consider those values when taking the limit. However, there are points $x$ in the domain that are arbitrarily close to $0$, and for each such point we have $\frac{\sin \frac{1}{x}}{\sin \frac{1}{x}}=1$. Hence the limit is $1$.