0

当我使用以下代码时,我对 select distinct 有一个奇怪的问题:

SELECT 

T2.cited_pat_publn_id,
T2.cited_publn_auth,
T2.cited_publn_nr,
T2.cited_publn_kind,
T2.cited_appln_id,
T2.cited_publn_date,
T3.citing_pat_publn_id,
T3.citing_publn_auth,
T3.citing_publn_nr,
T3.citing_publn_kind,
T3.citing_appln_id,
T3.citing_publn_date

FROM (tls211_pat_publn T0, albert_my_ipc T1, albert_my_cited T2, albert_my_citing T3) 

WHERE  
T1.appln_id=T0.appln_id 
AND 
T2.cited_pat_publn_id=T0.pat_publn_id 
AND 
T3.citing_pat_publn_id=T2.citing_pat_publn_id
AND
TRIM(T0.publn_nr)="6174338"


limit 1,5000

我得到了我想要的所有 citing_pat_publn_ids...

但是当我使用 select distinct 时,第一个 id 没有列出......

谢谢你的任何建议!

仅选择的结果(仅在此处发布前 4 行..):

cited_pat_publn_id  cited_publn_auth    cited_publn_nr  cited_publn_kind        cited_appln_id  cited_publn_date    citing_pat_publn_id citing_publn_auth   citing_publn_nr citing_publn_kind   citing_appln_id citing_publn_date

62554677    US  6174338 B1  48980223    16.01.2001  59255528    US  8048557 B2  45960521    01.11.2011
62554677    US  6174338 B1  48980223    16.01.2001  59255528    US  8048557 B2  45960521    01.11.2011
62554677    US  6174338 B1  48980223    16.01.2001  59255528    US  8048557 B2  45960521    01.11.2011
62554677    US  6174338 B1  48980223    16.01.2001  59255528    US  8048557 B2  45960521    01.11.2011

选择不同的结果(仅在此处发布前 2 行,还有更多):

cited_pat_publn_id  cited_publn_auth    cited_publn_nr  cited_publn_kind    cited_appln_id  cited_publn_date    citing_pat_publn_id citing_publn_auth   citing_publn_nr citing_publn_kind   citing_appln_id citing_publn_date
62554677    US  6174338 B1  48980223    16.01.2001  61120611    US  6844106 B2  47693584    18.01.2005
62554677    US  6174338 B1  48980223    16.01.2001  65427309    US  6517975 B1  51553339    11.02.2003

没有 citing_pat_publn_id=45960521

4

0 回答 0