我有以下数据集:
WITH CTE AS
(
SELECT CAST(LEFT(Productname, CHARINDEX('/', Productname)-1) AS INT) AS Lstr,
CAST(SUBSTRING(Productname, CHARINDEX('/', Productname)+1, 200) AS INT) AS Rstr
FROM Forgerock
WHERE CHARINDEX('/', Productname) > 0
)
SELECT CASE WHEN Lstr = '' THEN 0 ELSE Lstr
END AS Left_String,
CASE WHEN Rstr = '' THEN 0 ELSE Rstr
END AS right_string
FROM CTE;
我想为每个类生成一个多图,其中每个单独的图代表一次运行(根据示例,每个多图将具有三个图)。
我首先执行以下操作:
Class R1 R2 R3 R4 R5
Operator 6.5 2 18 3.6 5.1
Assest 1.3 9.5 6 6.3 7.5
Operator 10 5 9 2.2 7.5
Execute 6.3 4 2.5 9 9
Execute 6 5 5 5 1.6
Assest 6 2.5 6.6 7 7.9
Operator 10 5 13 5 7.5
Assest 5 2.5 6.6 9 7.9
但是,这只给了我一堂课所有课程的情节,这不是我想要的。你能帮我解决这个问题吗?