우리는 매일 여러 대의 컴퓨터 정보를 사용하여 테이블을 채 웁니다. 문제는 때로는 특정 컴퓨터에서 정보를 가져 오지 않는 경우입니다.TSQL에서 누락 된 행 쿼리
예를 들어, 표의 열은 computer_name, information_pulled, qty_pulled, date_pulled
입니다.
그래서 15 일을 제외하고는 1 주일에 매일 뽑아 버립니다. 쿼리가 실행됩니다.
Computer_name, Information_pulled, qty_pulled, date_pulled
computer1 infopulled 2 2014-06-14
computer2 infopulled 3 2014-06-14
computer3 infopulled 2 2014-06-14
computer1 infopulled 2 2014-06-15
computer3 infopulled 1 2014-06-15
computer1 infopulled 3 2014-06-16
computer2 infopulled 2 2014-06-16
computer3 infopulled 4 2014-06-16
15 번째 컴퓨터 2에서는 아무것도 가져 오지 않았습니다. 특정 날짜에 누락 된 행을 가져 오는 쿼리를 작성하려고합니다.
예를 들어, 실행 후에는 말한다
computer 2 null null 20140615
또는이 가까운 것을. 우리는 매일 아침이 테이블에 데이터가 채워지지 않을 때 데이터를 잡으려고 노력하고 있습니다. 우리가 능동적 일 수 있고 긍정적 인 것도 아니며 null 값을 검색하는 누락 된 데이터를 쿼리 할 수도 있습니다.