I'm reading Abstract Algebra by Dummit and Foote and the following definitions are made:
$1$. A group of order $p^{\alpha}$ for some $\alpha\geq1$ is called a $p$-group. Subgroups of $G$ which are $p$-groups are called $p$-subgroups.
$2$. If $G$ is a group of order $p^{\alpha}m$, where $p$ does not divide $m$, then a subgroup of order $p^{\alpha}$ is called a Sylow $p$-subgroup of G.
As I see it the difference seems to be that if $H \leq G$ with $|H|=p^{\beta}$ for $\beta\geq1$ it is called a $p$-subgroup if $|G|=p^{\alpha}$ and a sylow subgroup of $G$ if its order is not a power of $p$.
But in the wording of the Sylow's theorem in the book it reads that
Let G be a group of order $p^{\alpha}m$, where $p$ is a prime not dividing $m$ then...If $P$ is a Sylow $p$-subgroup of $G$ and $Q$ is any $p$-subgroup of G...
I don't understand the difference between $P$ and $Q$..both are subgroups of $G$ with order of a power of $p$ and I thought that $Q$ can't be called a $p$ subgroup because the order of $G$ is not a power of $p$.
So it seems that I didn't understand the difference in definitions $(1)$ and $(2)$ after all.
Can someone please clarify ?