使用下面的代码查询前向引用的计数,但是没有用

Posted

技术标签:

【中文标题】使用下面的代码查询前向引用的计数,但是没有用【英文标题】:Use the code below to query the count of forward citation, but it did't work 【发布时间】:2018-12-09 08:46:18 【问题描述】:

我使用下面的代码查询了前向引用的计数,但是没有用。independent-tea-223707:Mypatent.publication_num_assignee 是我自己创建的表。

 SELECT c.publication_number AS Pub, COUNT(p.publication_number) AS
    CitedBy 
    FROM `patents-public-data.patents.publications` AS p, UNNEST(citation) AS c 
    WHERE c.publication_number IN  (SELECT publication_number FROM `independent-tea-223707:Mypatent.publication_num_assignee`)

【问题讨论】:

【参考方案1】:

此查询缺少GROUP BY() statement,因为您在使用聚合函数COUNT() 时按多个列对结果进行分组。

对于任何进一步的建议,这个问题需要重新表述,并提供理解问题所必需的所有元素(例如,citation 对象的结构和内容、错误消息等)。在此处查看有关how to ask a good question 的建议。

同时,我邀请您查看the standard SQL syntax for BigQuery,您可能需要特别关注the UNNEST statement。

【讨论】:

以上是关于使用下面的代码查询前向引用的计数,但是没有用的主要内容,如果未能解决你的问题,请参考以下文章

Java Hibernate 计数行

09. 友元,引用计数

09. 友元,引用计数

204计数质数

Objective-C中的引用计数

第29条:理解引用计数