Let $A$ be the set of all positive rational numbers, and let $B$ be the subset of $A$ defined by $B = \{x \in A \ : \ x^2<2\}$. Does $B$ contain a greatest element?
From my understanding $B$ does contain a supremum, ie a least upper bound. This is because there is a number $x$ such that $x$ is an upper bound of $B$, and any number smaller than $x$ fails to be an upper bound, here $x$ would be $\sqrt2 = 1.41\!\dots$.
What I can't seem to work out is if $B$ has a greatest element?
Hint: If $B$ had a greatest element $y$, then $y$ would be the supremum of $B$ (why?). So if you can prove your supremum $x=\sqrt{2}$ is not itself an element of $B$, that shows that $B$ has no greatest element.
(Note also that it's not quite correct to say that $B$ "contains" a supremum, since that would mean the supremum is an element of $B$. Instead the usual phrasing would be that $B$ "has" a supremum, which does not say anything about whether the supremum is an element of $B$.)