{"id":7763,"date":"2020-06-15T12:20:39","date_gmt":"2020-06-15T11:20:39","guid":{"rendered":"http:\/\/help.sdna.lu\/?p=7763&#038;lang=en"},"modified":"2022-12-18T11:11:10","modified_gmt":"2022-12-18T10:11:10","slug":"query-lvatcasedesc-lprimarykey","status":"publish","type":"post","link":"https:\/\/sdna.lu\/?p=7763","title":{"rendered":"Query LVATCaseDesc LPrimaryKey"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><code>Select * from [LVATCaseDesc] where convert(varchar, [DBId]) + '-' + [GroupName] + '-' + convert(varchar, [Ref]) + '-' + [Case] + '-' + [Description] in (Select convert(varchar, [DBId]) + '-' + [GroupName] + '-' + convert(varchar, [Ref]) + '-' + [Case] + '-' + [Description] as [ResField] from [LVATCaseDesc] Group by [DBId], [GroupName], [Ref], [Case], [Description] having count(*) &gt; 1) <\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Select * from [LVATCaseDesc] where convert(varchar, [DBId]) + &#8216;-&#8216; + [GroupName] + &#8216;-&#8216; + convert(varchar, [Ref]) + &#8216;-&#8216; + [Case] + &#8216;-&#8216; + [Description] in (Select convert(varchar, [DBId]) + &#8216;-&#8216; + [GroupName] + &#8216;-&#8216; + convert(varchar, [Ref]) + &#8216;-&#8216; + [Case] + &#8216;-&#8216; + [Description] as [ResField] from [LVATCaseDesc] Group by [DBId], [GroupName], [Ref], [Case], [&hellip;]<\/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-7763","post","type-post","status-publish","format-standard","hentry","category-query"],"_links":{"self":[{"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/posts\/7763","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=7763"}],"version-history":[{"count":2,"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/posts\/7763\/revisions"}],"predecessor-version":[{"id":12039,"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/posts\/7763\/revisions\/12039"}],"wp:attachment":[{"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}