상관관계 서브쿼리By SDK / November 29, 2017 Post Views: 378 SELECT A.id ,A.order_no FROM pay A WHERE A.id = ( SELECT MAX(B.id) FROM pay B WHERE A.order_no = B.order_no );