J.P. Morgan interview question

How will you identify good data and bad data in table? Write a SQL query