鉴于以下数据,
TEST_SET_1 TEST_1 PASSED
TEST_SET_1 TEST_1 NOT COMPLETED
TEST_SET_1 TEST_1 PASSED
TEST_SET_1 TEST_1 FAILED
TEST_SET_1 TEST_1 FAILED
如何使用 SQL 对其进行格式化以显示如下?
TEST SET TEST PASSED FAILED NOT COMPLETED
TEST_SET_1 TEST_1 2 2 1