{"id":7761,"date":"2020-06-15T11:54:07","date_gmt":"2020-06-15T10:54:07","guid":{"rendered":"http:\/\/help.sdna.lu\/?p=7761&#038;lang=en"},"modified":"2022-12-18T11:08:46","modified_gmt":"2022-12-18T10:08:46","slug":"query-invoicefdetail-lprimarykey","status":"publish","type":"post","link":"https:\/\/sdna.lu\/?p=7761","title":{"rendered":"Query InvoiceFDetail LPrimaryKey"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><code>Select * from [InvoiceFDetail] where convert(varchar, [DBId]) + '-' + convert(varchar, [InvoiceFId]) + '-' + convert(varchar,[Number]) in (Select convert(varchar, [DBId]) + '-' + convert(varchar, [InvoiceFId]) + '-' + convert(varchar,[Number]) as [ResField] from [InvoiceFDetail] Group by [DBId], [InvoiceFId], [Number] having count(*) &gt; 1)<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Select * from [InvoiceFDetail] where convert(varchar, [DBId]) + &#8216;-&#8216; + convert(varchar, [InvoiceFId]) + &#8216;-&#8216; + convert(varchar,[Number]) in (Select convert(varchar, [DBId]) + &#8216;-&#8216; + convert(varchar, [InvoiceFId]) + &#8216;-&#8216; + convert(varchar,[Number]) as [ResField] from [InvoiceFDetail] Group by [DBId], [InvoiceFId], [Number] having count(*) &gt; 1)<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[487],"tags":[],"class_list":["post-7761","post","type-post","status-publish","format-standard","hentry","category-query"],"_links":{"self":[{"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/posts\/7761","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7761"}],"version-history":[{"count":3,"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/posts\/7761\/revisions"}],"predecessor-version":[{"id":12036,"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/posts\/7761\/revisions\/12036"}],"wp:attachment":[{"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}