Rational ClearQuest:sql 查询获取与特定 CQ 问题相关的观察者

发布于 2024-12-01 14:14:34 字数 170 浏览 1 评论 0原文

我正在尝试查询这个数据库cq_Production_user,它是IBM Rational ClearQuest 的一部分。

我一直在从 sql server express 2008 客户端启动这些查询。

如何获取与特定 ClearQuest 问题相关的所有观察者?

I am trying to query this database cq_production_user that is part of IBM Rational ClearQuest.

I have been launching these queries from sql server express 2008 client.

How do I get all of the Watchers associated with a particular ClearQuest issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

晒暮凉 2024-12-08 14:14:34

好吧,结果就是这样。

@dbidCQIssue varchar(50)
AS

--DECLARE @dbidCQIssue varchar(50)
--SET @dbidCQIssue = 'CQ00105687'

BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;

-- Insert statements for procedure here
SELECT fullname as 'fullname'

FROM cqadmin.users

WHERE dbid in(SELECT    
link_builds.child_dbid
FROM cqadmin.issue iss

LEFT JOIN [cq_production_user].[cqadmin].[parent_child_links] AS link_builds 
    ON link_builds.[parent_dbid] =  iss.dbid
LEFT JOIN [cq_production_user].[cqadmin].[build] ON [cq_production_user].[cqadmin].[build].[dbid] = link_builds.[child_dbid] 
LEFT JOIN [cq_production_user].[cqadmin].[project] ON [cq_production_user].[cqadmin].[project].[dbid] = [cq_production_user].[cqadmin].[build].[project]
LEFT JOIN [cq_production_user].[cqadmin].[branch] ON [cq_production_user].[cqadmin].[branch].[dbid] = [cq_production_user].[cqadmin].[build].[branch]
LEFT JOIN [cq_production_user].[cqadmin].[users] ON [cq_production_user].[cqadmin].[users].[dbid] = iss.dbid

WHERE iss.id = @dbidCQIssue   
)

END

Rational Clearquest,其中一切都是左外连接

Well this is what it turned out to be.

@dbidCQIssue varchar(50)
AS

--DECLARE @dbidCQIssue varchar(50)
--SET @dbidCQIssue = 'CQ00105687'

BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;

-- Insert statements for procedure here
SELECT fullname as 'fullname'

FROM cqadmin.users

WHERE dbid in(SELECT    
link_builds.child_dbid
FROM cqadmin.issue iss

LEFT JOIN [cq_production_user].[cqadmin].[parent_child_links] AS link_builds 
    ON link_builds.[parent_dbid] =  iss.dbid
LEFT JOIN [cq_production_user].[cqadmin].[build] ON [cq_production_user].[cqadmin].[build].[dbid] = link_builds.[child_dbid] 
LEFT JOIN [cq_production_user].[cqadmin].[project] ON [cq_production_user].[cqadmin].[project].[dbid] = [cq_production_user].[cqadmin].[build].[project]
LEFT JOIN [cq_production_user].[cqadmin].[branch] ON [cq_production_user].[cqadmin].[branch].[dbid] = [cq_production_user].[cqadmin].[build].[branch]
LEFT JOIN [cq_production_user].[cqadmin].[users] ON [cq_production_user].[cqadmin].[users].[dbid] = iss.dbid

WHERE iss.id = @dbidCQIssue   
)

END

Rational Clearquest where everything is a left outer join

是你 2024-12-08 14:14:34

由于 ClearQuest 具有定制记录,因此“观察者”和“观察者”将被删除。 “问题”看起来可能是某人设计的记录。很难给出直接答案...但是,如果您作为客户端用户拥有 SQL 创建者权限...

  1. 使用 GUI 设计您的查询
  2. 复制/查看它生成的 sql...
  3. 使用它作为基础来让您的查询在外部运行。

请注意,dql 中使用的参考 ID 将是分配给您的架构记录的唯一编号,请查看您的参考表以获取字符串名称等

As ClearQuest has customised records, the "Watchers" & "Issues" look like they might be records someone designed. Difficult to give direct answer...however if you have SQL creater rights as user on the client..

  1. design your query using GUI
  2. Copy/ view sql it generates...
  3. use that as a basis to get your query running externally.

Note the reference ids used in dql will be unique numbers allocated to YOUR schema records, look at your reference tables to get string names etc

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文