IF any one can help me with a SQL Query

Look Here