first of all, I want to query the department to which the user belongs
select * from dept where id in (select deptId from employee where id="00")
the above statement is not good. If you want to achieve such a result, how can you use SQL statement to achieve such a function?