sql 쿼리문 질문점 채택완료
다케미카코
6년 전
조회 1,969
쿼리문 고수님 계시면 오류 한번 봐주시면 감사하겠습니다.
</p>
<p>SELECT TOP 20 a.send_code, a.send_date, a.send_title, cntCount = (select count(send_num) from M018 where send_num=a.send_num), cntReturn = (select sum(Cast(return_chk as int)) from M018 where send_num=a.send_num), cntSend = (select sum(Cast(send_chk as int)) from M018 where send_num=a.send_num), cntPoint = (select sum(Cast(point_chk as int)) from M018 where send_num=a.send_num) , a.part, (select top 1 sm_name + '(' + sm_email + ')' from M018 where M018.send_num=a.send_num) as to_name, a.send_num From M017 a Where 1 > 0 ORDER BY a.send_date desc</p>
<p>
이걸 실행 하면
메시지 208, 수준 16, 상태 1, 줄 1 개체 이름 'M017'이(가) 잘못되었습니다.
요런식으로 나오는데 왜 틀린지 모르겠네요 아시는 분 저 좀 도와 주시면 감사하겠습니다.
굽신굽신
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인