{"id":436,"date":"2016-03-15T10:42:38","date_gmt":"2016-03-15T15:42:38","guid":{"rendered":"https:\/\/linux.asberry.org\/blog_tech\/?p=436"},"modified":"2024-05-14T09:14:27","modified_gmt":"2024-05-14T14:14:27","slug":"tcc-an-exercise-in-lower","status":"publish","type":"post","link":"https:\/\/asberry.org\/blog_tech\/?p=436","title":{"rendered":"TCC &#8211; An Exercise In LOWER"},"content":{"rendered":"<p>I ran across an issue where a client had usernames that were all supposed to be lower but somehow wound up as a mixed case username.<br \/>\nThe SQL we would use would work out something like this&#8230;<\/p>\n<p>Select<br \/>\nNumber,<br \/>\nUsername,<br \/>\nLOWER(Username)<br \/>\nWHERE<br \/>\nUsername != LOWER(Username)<\/p>\n<p>To illustrate this here is the export specification that would return the above mentioned in TCC, name of file CandidateExportTestLower_sq.xml<br \/>\nContents:<\/p>\n<pre class=\"brush: xml; light: false; title: ; toolbar: true; notranslate\" title=\"\">\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;false&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;Number&quot;\/&gt;\r\n\t\t&lt;\/quer:projection&gt;\r\n\t\t&lt;quer:projection&gt;\r\n\t\t\t&lt;quer:field path=&quot;Credentials,Username&quot;\/&gt;\r\n\t\t&lt;\/quer:projection&gt;\r\n\t\t&lt;quer:projection alias=&quot;UsernameLower&quot;&gt;\r\n   &lt;quer:customFunction name=&quot;LOWER&quot;&gt;\r\n      &lt;quer:field path=&quot;Credentials,Username&quot;\/&gt;\r\n   &lt;\/quer:customFunction&gt;\r\n&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\t&lt;quer:filtering&gt;\r\n\t&lt;quer:notEqual&gt;\r\n\t\t&lt;quer:field path=&quot;Credentials,Username&quot;\/&gt;\r\n\t\t&lt;quer:customFunction name=&quot;LOWER&quot;&gt;\r\n\t\t\t&lt;quer:field path=&quot;Credentials,Username&quot;\/&gt;\r\n\t\t&lt;\/quer:customFunction&gt;\r\n\t&lt;\/quer:notEqual&gt;\r\n&lt;\/quer:filtering&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&lt;quer:joinings\/&gt;\r\n&lt;\/quer:query&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I ran across an issue where a client had usernames that were all supposed to be lower but somehow wound up as a mixed case username. The SQL we would use would work out something like this&#8230; Select Number, Username, LOWER(Username) WHERE Username != LOWER(Username) To illustrate this here is the export specification that would [&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_post_was_ever_published":false,"_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}},"categories":[13],"tags":[],"class_list":["post-436","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-72","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/436","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=436"}],"version-history":[{"count":4,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/436\/revisions"}],"predecessor-version":[{"id":441,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/436\/revisions\/441"}],"wp:attachment":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}