Related resources for convert multiple rows into single row using sql