因此,我正在编写一份报告,将所有版本的 adobe acrobat pro 合并到一个 sql 报告中。我遇到的问题是 Adobe 将其命名约定从一个版本更改为另一个版本。一些显示“Adobe Acrobat 7.1.0 Professional”,而另一些显示“Adobe Acrobat 9 Pro”。我的问题是我可以在另一列中显示版本,但是否可以只显示所有不同版本的“Adobe Acrobat Pro”并解析#?
另外请原谅我,我对整个 sql 查询的东西还是很陌生。但是我做了很多挖掘工作,似乎找不到任何对我有用的东西。
提前致谢
斯科特
SELECT DISTINCT
v_GS_ADD_REMOVE_PROGRAMS_5.DisplayName0 AS [Display Name], LEFT(v_GS_ADD_REMOVE_PROGRAMS_5.Version0, 1) AS Version,
v_GS_ADD_REMOVE_PROGRAMS_5.Publisher0 AS Publisher, v_R_System_5.User_Name0 AS [User Name],
v_R_System_5.Name0 AS [Computer Name], DATEDIFF(day, v_GS_WORKSTATION_STATUS_5.LastHWScan, GETDATE()) AS [Last Scan]
FROM v_GS_ADD_REMOVE_PROGRAMS AS v_GS_ADD_REMOVE_PROGRAMS_5 INNER JOIN
v_R_System AS v_R_System_5 ON v_GS_ADD_REMOVE_PROGRAMS_5.ResourceID = v_R_System_5.ResourceID INNER JOIN
v_R_System_Valid AS v_R_System_Valid_5 ON v_R_System_5.ResourceID = v_R_System_Valid_5.ResourceID INNER JOIN
v_GS_WORKSTATION_STATUS AS v_GS_WORKSTATION_STATUS_5 ON
v_R_System_5.ResourceID = v_GS_WORKSTATION_STATUS_5.ResourceID
WHERE (v_GS_ADD_REMOVE_PROGRAMS_5.Publisher0 LIKE '%Adobe%') AND (v_GS_ADD_REMOVE_PROGRAMS_5.Version0 LIKE '7%') AND
(v_GS_ADD_REMOVE_PROGRAMS_5.DisplayName0 LIKE '%Acrobat%Pro%') AND
(NOT (v_GS_ADD_REMOVE_PROGRAMS_5.DisplayName0 LIKE '%Distiller%'))