Let $R$ be an integral domain, let $K$ be its field of fractions, and let $S$ be a ring between $R$ and $K$. Prove that the field of fractions of $S$ is (isomorphic to) $K$.
My attempt:
Since $S \subset K',$ define $f:K' \rightarrow S$ to be epimorphism, $g:S \rightarrow R$ to be epimorphism since $S$ between $K,R$, and $h:R \rightarrow K.$ I say if we take $t= h \circ g \circ f: K' \rightarrow K$, then this function is isomorphism?
I am not sure if my argument true or not, so I appreciate any help.
Here is another attempt:
Let us denote the field of fraction of $R$ by $K$, and the field of fraction of $S$ by $K'$. So the functions $f_1:R \rightarrow K,\ f_2:S \rightarrow K'$ defined by $f_1(r)=\frac{r}{1},\ f_2(s)=\frac{s}{1}$ is a ring monomorphism. Next, define $f_3:R \rightarrow S$ by $f_3(r)=r$ since $R \subset S$, so it is a ring monomprphism. Now, we can define $g_1:R \rightarrow K'$ by $g_1=f_2 \circ f_3$, so this function is clearly a ring monomorphism. Hence there exists a unique ring homomorphism $\alpha: K \rightarrow K'$ such that $\alpha \circ f_1=g_1$. Now I am getting stuck here because I am not sure why this function $\alpha$ must be injective and surjective.
Thanks for any further help.
The field of fractions $K'$ of $S$ is equivalence classes $\frac{a}{b}$ for $a, b\in S$, $b\ne 0$. But $S\subset K$, so $\frac{a}{b}\in K$ since $K$ is a field. Thus $K'\subset K$. It is clear that $K\subset K'$ since $R\subset S$.