0
有人可以解釋我爲什麼這個子查詢返回「這個子查詢最多可以返回一條記錄」。MS ACCESS Subselect「子查詢最多可以返回一條記錄」
(SELECT TOP 1 J.observacao " +
" FROM tblPendenciaHistorico J " +
" INNER JOIN tblPendenciaPendenciaHistorico JH " +
" ON J.historicoId = JH.pendenciaHistoricoId " +
" WHERE JH.pendenciaId = P.pendenciaId " +
" ORDER BY J.data DESC) AS historicoStatus"
Tks litelite我加了pk。 – Denis