Is the following acceptable in SQL:
SELECT P.pid P.cnt
FROM Professors P
WHERE P.cnt <= Max(SELECT P2.cnt FROM Professors P2)
I am asking because this is provided as an answer to a problem in a midterm by the professor. I have actually tried it in SQL and wasn't allowed, but I just wanted to make sure.