{"id":26701,"date":"2018-02-04T07:54:19","date_gmt":"2018-02-04T07:54:19","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=26701"},"modified":"2025-05-17T07:31:55","modified_gmt":"2025-05-17T07:31:55","slug":"mysql-query-world_x-database","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/mysql-query-world_x-database\/","title":{"rendered":"MySQL Query world_x database"},"content":{"rendered":"<h1>MySQL Query world_x database<\/h1>\n<p>Using the MySQL world_x database, list the codes for countries where English is spoken by more than 30% of the population.<\/p>\n<h2>Answer:<\/h2>\n<p>List the codes for countries where English is spoken by more than 30% of the population.<br \/>\nYou need to join the tables Country and CountryLanguage.<\/p>\n<p>Sample SQL query is as follows:<\/p>\n<p>&nbsp;<\/p>\n<pre><code class=\"language-sql\" data-line=\"\">SELECT C.Code\n   FROM Country C, CountryLanguage CL\n   WHERE C.Code = CL.CountryCode\n   AND CL.Language = &#039;English&#039;\n   AND CL.Percentage &gt; 30 ;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>MySQL Query world_x database Using the MySQL world_x database, list the codes for countries where English is spoken by more than 30% of the population. Answer: List the codes for countries where English is spoken by more than 30% of the population. You need to join the tables Country and CountryLanguage. Sample SQL query is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[520],"tags":[],"class_list":["post-26701","post","type-post","status-publish","format-standard","hentry","category-mysql-database","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/26701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=26701"}],"version-history":[{"count":3,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/26701\/revisions"}],"predecessor-version":[{"id":27430,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/26701\/revisions\/27430"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=26701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=26701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=26701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}