you can use cursor for the above said problem
Declare @date DateTime,@customer varchar(5),@employeeNo int,@item int,@qty int,@flag varchar(50)
DECLARE @cursor CURSOR FOR
SELECT date,customer,employeeNo,item,qty,flag FROM tblRead
OPEN @cursor
FETCH NEXT FROM @cursor
INTO @date,@customer,@employeeNo,@item,@qty,@flag
WHILE @@FETCH_STATUS = 0
BEGIN
if((select count(*) from tblwrite where date=@date,customer=@customer,item=@item,flag=@flag)=0)
begin
insert into tblWrite(date,customer,employeeNo,item,qty,flag)
value(@date,@customer,@employeeNo,@item,@qty,@flag)
end
end