{"id":985,"date":"2015-10-09T06:18:25","date_gmt":"2015-10-09T06:18:25","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=985"},"modified":"2015-10-09T06:18:25","modified_gmt":"2015-10-09T06:18:25","slug":"value-may-or-may-not-present-in-where-clause","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/value-may-or-may-not-present-in-where-clause\/","title":{"rendered":"Value may or may not present in where clause"},"content":{"rendered":"<p>Parameter in Where clause may be Null or has Value<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nSELECT Person_Name\r\n  FROM tblPersons\r\n WHERE AREA_CODE = pAreaCode\r\n   AND (pRationCardNo IS NULL OR RATION_ID = pRationCardNo)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Parameter in Where clause may be Null or has Value SELECT Person_Name FROM tblPersons WHERE AREA_CODE = pAreaCode AND (pRationCardNo IS NULL OR RATION_ID = pRationCardNo)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[],"class_list":["post-985","post","type-post","status-publish","format-standard","hentry","category-queries-oracle-database-2"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=985"}],"version-history":[{"count":1,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/985\/revisions"}],"predecessor-version":[{"id":986,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/985\/revisions\/986"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}