use market_db; select distinct M.mem_id, M.mem_name, M.addr from buy B inner join member M on B.mem_id= M.mem_id order by M.mem_id;
DISTINCT문: 중복된 열의 값을 1개만 표현하는 구문