<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":966,"date":"2021-07-18T20:21:49","date_gmt":"2021-07-18T20:21:49","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=966"},"modified":"2021-09-09T09:32:38","modified_gmt":"2021-09-09T09:32:38","slug":"what-is-the-difference-between-a-having-clause-and-a-where-clause","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/sql\/what-is-the-difference-between-a-having-clause-and-a-where-clause\/","title":{"rendered":"What is the difference between a HAVING CLAUSE and a WHERE CLAUSE ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"\" class=\"color-pink\" style=\"text-align: justify;\"><\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<table class=\"table-bordered table-striped table table-responsive\">\n<tbody>\n<tr>\n<th>Where Clause<\/th>\n<th>Having Clause<\/th>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">WHERE clause can be used with &#8211; Select, Insert, and<br \/>\nUpdate statements.<\/td>\n<td class=\"text-leftalign\">HAVING clause can only be used with the Select statement.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">The WHERE search condition is applied before the<br \/>\ngrouping operation occurs.<\/td>\n<td class=\"text-leftalign\">The HAVING search condition is applied after the grouping operation occurs.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">Aggregate functions cannot be used in the WHERE clause,<br \/>\nunless it is in a sub query contained in a HAVING clause.<\/td>\n<td class=\"text-leftalign\">Aggregate functions can be used in Having clause.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"example-of-where-and-having-clause\" class=\"color-green\">Example of WHERE and HAVING clause<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>We have two tables Wikitechy_Employee and Department. Wikitechy_Employee contains details of employees e.g. id, name, age, salary and department id, while Department contains id and department name.<\/li>\n<li>In order to show, which employee works for which department we need to join two tables on DEPT_ID to get the the department name.<\/li>\n<li>Our requirement is to find how many employees are working in each department and average salary of department.<\/li>\n<li>In order to use WHERE clause, we will only include employees who are earning more than 5000.<\/li>\n<li>Before executing our query which contains WHERE, HAVING, and GROUP BY clause, let see data from Wikitechy_Employee and Department table:<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"text-center row\" style=\"text-align: justify;\"><\/div>\n<div class=\"subheading\" style=\"text-align: justify;\">\n<h2 id=\"select-from-wikitechy_employee\">SELECT * FROM Wikitechy_Employee;<\/h2>\n<table class=\"table-bordered table-striped table table-responsive\">\n<tbody>\n<tr>\n<th>EMP_ID<\/th>\n<th>EMP_NAME<\/th>\n<th>EMP_AGE<\/th>\n<th>EMP_SALARY<\/th>\n<th>DEPT_ID<\/th>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">1<\/td>\n<td class=\"text-leftalign\">George Orwell<\/td>\n<td class=\"text-leftalign\">23<\/td>\n<td class=\"text-leftalign\">10000<\/td>\n<td class=\"text-leftalign\">1<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">2<\/td>\n<td class=\"text-leftalign\">J.K. Rowling<\/td>\n<td class=\"text-leftalign\">24<\/td>\n<td class=\"text-leftalign\">7000<\/td>\n<td class=\"text-leftalign\">2<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">3<\/td>\n<td class=\"text-leftalign\">Kurt Vonnegut<\/td>\n<td class=\"text-leftalign\">25<\/td>\n<td class=\"text-leftalign\">8000<\/td>\n<td class=\"text-leftalign\">3<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">4<\/td>\n<td class=\"text-leftalign\">Virginia Woolf<\/td>\n<td class=\"text-leftalign\">27<\/td>\n<td class=\"text-leftalign\">6000<\/td>\n<td class=\"text-leftalign\">1<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">5<\/td>\n<td class=\"text-leftalign\">Ernest Hemingway<\/td>\n<td class=\"text-leftalign\">28<\/td>\n<td class=\"text-leftalign\">5000<\/td>\n<td class=\"text-leftalign\">2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"subheading\" style=\"text-align: justify;\">\n<h2 id=\"select-from-department\">SELECT * FROM Department;<\/h2>\n<table class=\"table-bordered table-striped table table-responsive\">\n<tbody>\n<tr>\n<th>DEPT_ID<\/th>\n<th>DEPT_NAME<\/th>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">1<\/td>\n<td class=\"text-leftalign\">Accounting<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">2<\/td>\n<td class=\"text-leftalign\">Marketing<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">3<\/td>\n<td class=\"text-leftalign\">Sales<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"sample-code\" class=\"color-green\">Sample Code<\/h2>\n<\/div>\n<\/div>\n<div class=\"CodeContent\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<figure class=\"highlight\"><div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-sql code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-sql code-embed-code\">SELECT d.DEPT_NAME,<br\/>count(e.EMP_NAME) as NUM_EMPLOYEE, <br\/>avg(e.EMP_SALARY) as AVG_SALARY FROM Employee e,<br\/>Department d WHERE e.DEPT_ID=d.DEPT_ID AND EMP_SALARY &gt; 5000 GROUP BY d.DEPT_NAME;<\/code><\/pre> <\/div><\/figure>\n<\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"output\" class=\"color-green\">Output<\/h2>\n<\/div>\n<\/div>\n<table class=\"table-bordered table-striped table table-responsive\">\n<tbody>\n<tr>\n<th>DEPT_NAME<\/th>\n<th>NUM_EMPLOYEE AVG_SALARY<\/th>\n<th>AVG_SALARY<\/th>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">Accounting<\/td>\n<td class=\"text-leftalign\">1<\/td>\n<td class=\"text-leftalign\">8000<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">Marketing<\/td>\n<td class=\"text-leftalign\">1<\/td>\n<td class=\"text-leftalign\">7000<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">Sales<\/td>\n<td class=\"text-leftalign\">2<\/td>\n<td class=\"text-leftalign\">8000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>From the number of employee (NUM_EMPLOYEE) column you can see that only Vijay who work for Marketing department is not included in result set because his earning 5000.<\/li>\n<li>This example shows that, condition in WHERE clause is used to filter rows before you aggregate them and then HAVING clause comes in picture for final filtering, which is clear from following query, now Marketing department is excluded because it doesn&#8217;t pass condition in HAVING clause i..e AVG_SALARY &gt; 7000<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"sample-code-2\" class=\"color-green\">Sample Code<\/h2>\n<\/div>\n<\/div>\n<div class=\"CodeContent\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<figure class=\"highlight\"><div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-sql code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-sql code-embed-code\">SELECT d.DEPT_NAME,<br\/>count(e.EMP_NAME) as NUM_EMPLOYEE,<br\/>avg(e.EMP_SALARY) as AVG_SALARY FROM Employee e,<br\/>Department d WHERE e.DEPT_ID=d.DEPT_ID AND EMP_SALARY &gt; 5000 GROUP BY d.DEPT_NAMEHAVING AVG_SALARY &gt; 7000;<\/code><\/pre> <\/div><\/figure>\n<\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"output-2\" class=\"color-green\">Output<\/h2>\n<\/div>\n<\/div>\n<table class=\"table-bordered table-striped table table-responsive\">\n<tbody>\n<tr>\n<th>DEPT_NAME<\/th>\n<th>NUM_EMPLOYEE<\/th>\n<th>AVG_SALARY<\/th>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">Accounting<\/td>\n<td class=\"text-leftalign\">1<\/td>\n<td class=\"text-leftalign\">8000<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">Sales<\/td>\n<td class=\"text-leftalign\">2<\/td>\n<td class=\"text-leftalign\">8000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Answer : The HAVING clause sets conditions on the GROUP BY&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[6547],"tags":[195,6595,203,6707,199,214,198,6711,6709,209,6714,283,205,6684,6685,6683,6686,6687,6688,2936,222,484,6718,6689,6690,6708,6691,6692,6693,196,212,286,6694,970,207,6715,204,6717,6713,6716,282,208,288,206,6706,6695,6696,6630,6703,6712,6697,975,200,197,284,280,364,6710,6704,6705,285,15883],"class_list":["post-966","post","type-post","status-publish","format-standard","hentry","category-sql","tag-accenture-interview-questions-and-answers","tag-allstate-solut-interview-questions-and-answers","tag-capgemini-interview-questions-and-answers","tag-case-in-where-clause","tag-casting-networks-india-pvt-limited-interview-questions-and-answers","tag-cgi-group-inc-interview-questions-and-answers","tag-chetu-interview-questions-and-answers","tag-clause","tag-clause-examples","tag-collabera-technologies-interview-questions-and-answers","tag-conditional-clauses","tag-conduent-interview-questions-and-answers","tag-dell-international-services-india-pvt-ltd-interview-questions-and-answers","tag-difference-between-groupby-and-orderby-in-sql","tag-difference-between-having-and-group-by","tag-difference-between-where-and-having-clause","tag-difference-between-where-and-having-clause-in-oracle","tag-difference-between-where-and-having-clause-in-sql-server","tag-difference-between-where-and-having-clause-in-tabular-form","tag-fis-global-business-solutions-india-pvt-ltd-interview-questions-and-answers","tag-flipkart-interview-questions-and-answers","tag-genpact-interview-questions-and-answers","tag-group-by-clause","tag-group-by-clause-in-sql","tag-group-by-sql","tag-having-clause","tag-having-clause-in-sql","tag-having-clause-in-sql-stackoverflow","tag-having-vs-where-performance","tag-ibm-interview-questions-and-answers","tag-indecomm-global-services-interview-questions-and-answers","tag-lt-infotech-interview-questions-and-answers","tag-main-difference-between-having-and-wheremy","tag-mindtree-interview-questions-and-answers","tag-mphasis-interview-questions-and-answers","tag-mysql-in-clause","tag-oracle-corporation-interview-questions-and-answers","tag-oracle-with-clause","tag-order-by-clause","tag-order-by-clause-in-sql","tag-persistent-systems-interview-questions-and-answers","tag-prokarma-softech-pvt-ltd-interview-questions-and-answers","tag-r-systems-interview-questions-and-answers","tag-sap-labs-india-pvt-ltd-interview-questions-and-answers","tag-sql-case-in-where-clause","tag-sql-having-count","tag-sql-having-vs-where","tag-sql-join","tag-sql-where-clause","tag-sql-with-clause","tag-table","tag-tata-consultancy-service-interview-questions-and-answers","tag-tech-mahindra-interview-questions-and-answers","tag-unitedhealth-group-interview-questions-and-answers","tag-valuelabs-interview-questions-and-answers","tag-virtusa-consulting-services-pvt-ltd-interview-questions-and-answers","tag-wells-fargo-interview-questions-and-answers","tag-what-is-a-clause","tag-where-clause","tag-where-clause-in-sql","tag-xoriant-solutions-pvt-ltd-interview-questions-and-answers","tag-yardi-software-interview-questions-and-answers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is the difference between a HAVING CLAUSE and a WHERE<\/title>\n<meta name=\"description\" content=\"What is the difference between a HAVING CLAUSE and a WHERE CLAUSE ? - The HAVING clause sets conditions on the GROUP BY clause similar\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/sql\/what-is-the-difference-between-a-having-clause-and-a-where-clause\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is the difference between a HAVING CLAUSE and a WHERE\" \/>\n<meta property=\"og:description\" content=\"What is the difference between a HAVING CLAUSE and a WHERE CLAUSE ? - The HAVING clause sets conditions on the GROUP BY clause similar\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/sql\/what-is-the-difference-between-a-having-clause-and-a-where-clause\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-18T20:21:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-09T09:32:38+00:00\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/sql\/what-is-the-difference-between-a-having-clause-and-a-where-clause\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/sql\/what-is-the-difference-between-a-having-clause-and-a-where-clause\/\",\"name\":\"What is the difference between a HAVING CLAUSE and a WHERE\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"datePublished\":\"2021-07-18T20:21:49+00:00\",\"dateModified\":\"2021-09-09T09:32:38+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"What is the difference between a HAVING CLAUSE and a WHERE CLAUSE ? - The HAVING clause sets conditions on the GROUP BY clause similar\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/sql\/what-is-the-difference-between-a-having-clause-and-a-where-clause\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is the difference between a HAVING CLAUSE and a WHERE","description":"What is the difference between a HAVING CLAUSE and a WHERE CLAUSE ? - The HAVING clause sets conditions on the GROUP BY clause similar","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/sql\/what-is-the-difference-between-a-having-clause-and-a-where-clause\/","og_locale":"en_US","og_type":"article","og_title":"What is the difference between a HAVING CLAUSE and a WHERE","og_description":"What is the difference between a HAVING CLAUSE and a WHERE CLAUSE ? - The HAVING clause sets conditions on the GROUP BY clause similar","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/sql\/what-is-the-difference-between-a-having-clause-and-a-where-clause\/","og_site_name":"Wikitechy","article_published_time":"2021-07-18T20:21:49+00:00","article_modified_time":"2021-09-09T09:32:38+00:00","author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/sql\/what-is-the-difference-between-a-having-clause-and-a-where-clause\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/sql\/what-is-the-difference-between-a-having-clause-and-a-where-clause\/","name":"What is the difference between a HAVING CLAUSE and a WHERE","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-07-18T20:21:49+00:00","dateModified":"2021-09-09T09:32:38+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"What is the difference between a HAVING CLAUSE and a WHERE CLAUSE ? - The HAVING clause sets conditions on the GROUP BY clause similar","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/sql\/what-is-the-difference-between-a-having-clause-and-a-where-clause\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=966"}],"version-history":[{"count":3,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/966\/revisions"}],"predecessor-version":[{"id":3172,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/966\/revisions\/3172"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}