How do you clean messy data, handle missing values, and join complex datasets using SQL or Python/R when the data quality is poor?