I need to have the query below count the number of Packet ID and the number of Data Entry Errors
Select [Packet ID], DataEntry1 from DataEntryErrors
WHERE DataEntry1 is Not Null
UNION ALL
Select [Packet ID], DataEntry2 from DataEntryErrors
WHERE DataEntry2 is Not Null
UNION ALL Select [Packet ID], DataEntry3 from DataEntryErrors
WHERE DataEntry3 is Not Null;
Example
Packed ID 11
Data Entry Errors
time missing 5
Incorrect entry 3
Incorrect Job Number 3
Any suggestions?