2017-03-10 3 views
0

Microsoft ACCESS에서 SQL 구문 오류가 계속 발생합니다. SQL 개발자에게 잘 돌아 간다. 이 오류는 "FROM 절에 구문 오류"SQL Help : MS-ACCESS

SELECT REPLACE(A.Comment, "<p><u>"," ") 
FROM [Review status update] AS A INNER JOIN (Select [Review status update].ReviewID, max([Review status update].ProgressCommentDate) AS ProgressCommentDate 
from [Review status update] 
group by [Review status update].ReviewID 
)  AS B ON (A.ProgressCommentDate = B.ProgressCommentDate) AND (A.ReviewID = B.ReviewID); 
+0

오류가 무엇입니까 :
이 SQL은 아래 표를 반환합니다? –

+0

"SQL Developer"를 사용하면 Oracle을 의미하는 경우 Oracle에서 쿼리가 전혀 실행되지 않습니다 –

+0

오류는 FROM 절의 구문 오류입니다 – TimeToCodeTheRoad

답변

-1

어쩌면 닫는 괄호

SELECT REPLACE(A.Comment, "<p><u>"," ") 
FROM [Review status update] AS A INNER JOIN (Select [Review status update].ReviewID, max([Review status update].ProgressCommentDate) AS ProgressCommentDate 
from [Review status update]) --in this place 
group by [Review status update].ReviewID 
) AS B ON (A.ProgressCommentDate = B.ProgressCommentDate) AND (A.ReviewID = B.ReviewID); 
0

Access 2010를 사용했다.

테이블이있는 경우 :
enter image description here

당신은 제거 <p><u> 각 ReviewID의 최신 코멘트를 반환합니다.

SELECT  REPLACE(A.Comment, "<p><u>"," ") 
FROM  [Review status update] AS A INNER JOIN 
      (
      SELECT  ReviewID 
         , MAX(ProgressCommentDate) AS MaxOfProgressCommentDate 
      FROM  [Review status update] 
      GROUP BY ReviewID 
      ) AS B ON (A.ProgressCommentDate = B.MaxOfProgressCommentDate) AND (A.ReviewID = B.ReviewID) 

enter image description here