{"id":7103,"date":"2019-04-26T08:55:34","date_gmt":"2019-04-26T07:55:34","guid":{"rendered":"http:\/\/help.sdna.lu\/?p=7103&#038;lang=en"},"modified":"2019-04-26T15:01:26","modified_gmt":"2019-04-26T14:01:26","slug":"select-double-glaccountname-numbers","status":"publish","type":"post","link":"https:\/\/sdna.lu\/?p=7103","title":{"rendered":"Select double GLAccountName numbers"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><code>Select [GLAccountName].[DBId] as [ResDBId], [GLAccountName].[Number], [GLAccountName].[LanguageId], [GLAccountName].[GLAccPlanTypeId], count(*) as [Result] From [GLAccountName] where Not [GLAccountName].[Number] = '' Group by [GLAccountName].[DBId], [GLAccountName].[Number], [GLAccountName].[LanguageId], [GLAccountName].[GLAccPlanTypeId] having count(*) &gt; 1 Order by [GLAccountName].[DBId], [GLAccountName].[Number], [GLAccountName].[LanguageId], [GLAccountName].[GLAccPlanTypeId]<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Select distinct [ResDBId] as [DBId] from (Select [GLAccountName].[DBId] as [ResDBId], [GLAccountName].[Number], [GLAccountName].[LanguageId], [GLAccountName].[GLAccPlanTypeId], count(*) as [Result] From [GLAccountName] where Not [GLAccountName].[Number] = '' Group by [GLAccountName].[DBId], [GLAccountName].[Number], [GLAccountName].[LanguageId], [GLAccountName].[GLAccPlanTypeId] having count(*) &gt; 1) as [Result]<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Select [GLAccountName].[DBId] as [ResDBId], [GLAccountName].[Number], [GLAccountName].[LanguageId], [GLAccountName].[GLAccPlanTypeId], count(*) as [Result] From [GLAccountName] where Not [GLAccountName].[Number] = &#8221; Group by [GLAccountName].[DBId], [GLAccountName].[Number], [GLAccountName].[LanguageId], [GLAccountName].[GLAccPlanTypeId] having count(*) &gt; 1 Order by [GLAccountName].[DBId], [GLAccountName].[Number], [GLAccountName].[LanguageId], [GLAccountName].[GLAccPlanTypeId] Select distinct [ResDBId] as [DBId] from (Select [GLAccountName].[DBId] as [ResDBId], [GLAccountName].[Number], [GLAccountName].[LanguageId], [GLAccountName].[GLAccPlanTypeId], count(*) as [Result] From [GLAccountName] where Not [GLAccountName].[Number] = [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7103","post","type-post","status-publish","format-standard","hentry","category-non-classe"],"_links":{"self":[{"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/posts\/7103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7103"}],"version-history":[{"count":10,"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/posts\/7103\/revisions"}],"predecessor-version":[{"id":7116,"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/posts\/7103\/revisions\/7116"}],"wp:attachment":[{"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}