Hi,
You can do this in several ways, listing one method,
1.Load ID's from QVD
TEMP_DATA:
Load
ID,
Column2,
Column3
Fron QVD;
Left join IDs from E to the QVD data with a flag
Left join
Load
ID,
'YES' AS Flag
From Excel;
Now create a if statement to flag 'NO' values other that 'YES'
FINAL_DATA:
LOAD,
ID,
Column2,
Column3,
If(Flag='YES',Flag,'NO') AS Flag
Resident TEMP_DATA;
Drop Table TEMP_DATA;