SELECT * , (
SELECT sum( po_point )
FROM point AS a
WHERE a.mb_id = b.mb_id
AND INSTR( po_rel_expert, '수학' )) AS ex_point
FROM board_write AS b
ORDER BY ex_point DESC
목적은 a 테이블인 point 테이블과 b 테이블인 board 테이블에서 mb_id 값이 일치하는 point 테이블의 po_point 값을 구하려고 합니다.어떻게 해야하죠?
SELECT sum( po_point )
FROM point AS a
WHERE a.mb_id = b.mb_id
AND INSTR( po_rel_expert, '수학' )
FROM board_write AS b
ORDER BY ex_point DESC
목적은 a 테이블인 point 테이블과 b 테이블인 board 테이블에서 mb_id 값이 일치하는 point 테이블의 po_point 값을 구하려고 합니다.어떻게 해야하죠?