我的sql代码:
SELECT COUNT(*)
FROM T_DATA_ALUNO_TURNO at, T_DATA_TURNO dt
WHERE at.ALUNOID = (SELECT DISTINCT ALUNOID
FROM T_DATA_ALUNO_REGLECTIVO) AND
at.TURNOID=dt.ID;
我收到了这个错误:
ORA-01427: single-row subquery returns more than one row"
任何方式进行此查询?
答案 0 :(得分:1)
尝试IN而不是= for at.ALUNOID