{"id":542,"date":"2017-10-26T20:20:04","date_gmt":"2017-10-27T01:20:04","guid":{"rendered":"https:\/\/linux.asberry.org\/blog_tech\/?p=542"},"modified":"2024-05-14T09:14:06","modified_gmt":"2024-05-14T14:14:06","slug":"tcc-finding-duplicate-emails","status":"publish","type":"post","link":"https:\/\/asberry.org\/blog_tech\/?p=542","title":{"rendered":"TCC &#8211; Finding Duplicate Emails (Having Clause)"},"content":{"rendered":"<p>In a perfect world, we would all have a 3 day work week, get 2 months of vacation a year, doughnut Friday would be every day and candidate databases wouldn&#8217;t have duplicate email addresses. Well that&#8217;s the hand we&#8217;re dealt and I can&#8217;t do anything about the first three but can at least try to give you some data on the latter.<\/p>\n<p>If you&#8217;re looking to pull a list of email addresses and the count for them to give you an idea of what you&#8217;re up against use the process below.<\/p>\n<p>Create an empty file called: CandidateEmailCountExport_sq.xml<\/p>\n<p>Add the following code:<\/p>\n<pre class=\"brush: xml; light: false; title: ; toolbar: true; notranslate\" title=\"\">\r\n\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;quer:query productCode=&quot;RC1501&quot; model=&quot;http:\/\/www.taleo.com\/ws\/tee800\/2009\/01&quot; projectedClass=&quot;Candidate&quot; locale=&quot;en&quot; mode=&quot;CSV&quot; csvheader=&quot;true&quot; largegraph=&quot;true&quot; preventDuplicates=&quot;true&quot; xmlns:quer=&quot;http:\/\/www.taleo.com\/ws\/integration\/query&quot;&gt;\r\n\t&lt;quer:subQueries\/&gt;\r\n\t&lt;quer:projections&gt;\r\n\t\t&lt;quer:projection&gt;\r\n\t\t\t&lt;quer:field path=&quot;EmailAddress&quot;\/&gt;\r\n\t\t&lt;\/quer:projection&gt;\r\n\t\t&lt;quer:projection alias=&quot;CNTEmail&quot;&gt;\r\n\t\t\t&lt;quer:count&gt;\r\n\t\t\t\t&lt;quer:field path=&quot;EmailAddress&quot;\/&gt;\r\n\t\t\t&lt;\/quer:count&gt;\r\n\t\t&lt;\/quer:projection&gt;\r\n\t&lt;\/quer:projections&gt;\r\n\t&lt;quer:projectionFilterings\/&gt;\r\n\t&lt;quer:filterings\/&gt;\r\n\t&lt;quer:sortings\/&gt;\r\n\t&lt;quer:sortingFilterings\/&gt;\r\n\t&lt;quer:groupings&gt;\r\n\t\t&lt;quer:grouping&gt;\r\n\t\t\t&lt;quer:field path=&quot;EmailAddress&quot;\/&gt;\r\n\t\t&lt;\/quer:grouping&gt;\r\n\t&lt;\/quer:groupings&gt;\r\n\t&lt;quer:groupingFilterings&gt;\r\n\t\t&lt;quer:groupingFiltering&gt;\r\n\t\t\t&lt;quer:greaterThan&gt;\r\n\t\t\t\t&lt;quer:count&gt;\r\n\t\t\t\t\t&lt;quer:field path=&quot;EmailAddress&quot;\/&gt;\r\n\t\t\t\t&lt;\/quer:count&gt;\r\n\t\t\t\t&lt;quer:string&gt;1&lt;\/quer:string&gt;\r\n\t\t\t&lt;\/quer:greaterThan&gt;\r\n\t\t&lt;\/quer:groupingFiltering&gt;\r\n\t&lt;\/quer:groupingFilterings&gt;\r\n\t&lt;quer:joinings\/&gt;\r\n&lt;\/quer:query&gt;\r\n&lt;span data-mce-type=&quot;bookmark&quot; style=&quot;display: inline-block; width: 0px; overflow: hidden; line-height: 0;&quot; class=&quot;mce_SELRES_start&quot;&gt;&lt;\/span&gt;\r\n\r\n<\/pre>\n<p>WARNING!!! This is one of those that if you open it in the GUI, make a change and save it, it will erase the groupingFilterings and groupingFiltering, any edits should be made in your favorite text editor.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a perfect world, we would all have a 3 day work week, get 2 months of vacation a year, doughnut Friday would be every day and candidate databases wouldn&#8217;t have duplicate email addresses. Well that&#8217;s the hand we&#8217;re dealt and I can&#8217;t do anything about the first three but can at least try to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[13],"tags":[],"class_list":["post-542","post","type-post","status-publish","format-standard","hentry","category-tcc","author-aron"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4bBkH-8K","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=542"}],"version-history":[{"count":6,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/542\/revisions"}],"predecessor-version":[{"id":570,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/542\/revisions\/570"}],"wp:attachment":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}