본문 바로가기

sql distinct

(1)
[MSSQL]MSSQL 중복 제거 / SQL 중복 제거 / SQL distinct select distinct 컬럼명 from 테이블명 Student 테이블의 데이터 select name from [Student]; 중복제거를 실행하지 않았을 때 김민수라는 이름이 중복되어 들어가 있음 중복을 제거하기 위해 distinct를 사용하여 select select distinct name from [Student]; 중복 데이터인 김민수가 중복제거 되어 한번 만 표출 sql 중복제거 완료!