2
사용하여 SQL 서버 나 컬럼 1 및 2 열에서 유일한 값을 표시 할 2000값 열
ID Column1 column2
001 050 100
002 000 200
003 100 000
004 010 000
005 000 000
을 선택하는 방법.
시도 쿼리
Select id, Column1, Column2 where column1 <> '000' and column2 <> '000'
-- Nothing data's displayed
Select id, Column1, Column2 where column1 <> '000' or column2 <> '000'
-- data's are displayed below
ID column1
001 050
003 100
004 010
예상 출력 위의 조건에 대한 쿼리를 만드는 방법
ID column1 column2
001 050 100
002 200
003 100
004 010
, 나는 올바른 이해한다면 쿼리 도움말