Is there a noticeable difference between:
SELECT userid, username, userdept,
(SELECT deptname FROM depts WHERE deptid=userdept) AS deptname
FROM users
and
SELECT userid, username FROM users
INNER JOIN depts ON depts.deptid=users.userdept
Which one is better?