我是 SQL 新手,需要一些有关此查询的帮助:
UPDATE student
SET s.date_of_birth= SELECT count(*) max date_of_birth
FROM student WHERE batch =st.batch
FROM student s, student st
WHERE st.date_of_birth IS NULL
我所需要的只是通过计算该批次date_of_birth
中最常见的来填充它是空的。date_of_birth
鉴于我所展示的,我该怎么做?