{"id":979,"date":"2023-08-31T12:25:24","date_gmt":"2023-08-31T10:25:24","guid":{"rendered":"https:\/\/epicmarketing.co.il\/notebook\/?p=979"},"modified":"2023-08-31T12:33:30","modified_gmt":"2023-08-31T10:33:30","slug":"sql-group-function-and-grouping-sets","status":"publish","type":"post","link":"https:\/\/epicmarketing.co.il\/notebook\/sql-group-function-and-grouping-sets\/","title":{"rendered":"Group Function And Grouping Sets"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05ea \u05de\u05e1\u05e4\u05e8\u05d9\u05d5\u05ea:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Avg &#8211; \u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d0\u05ea \u05de\u05de\u05d5\u05e6\u05e2 \u05db\u05dc \u05d4\u05e2\u05e8\u05db\u05d9\u05dd \u05d1\u05e7\u05d1\u05d5\u05e6\u05d4 \u05e9\u05d4\u05dd \u05dc\u05d0 NULL .<\/li>\n\n\n\n<li>Sum &#8211; \u05e1\u05d5\u05db\u05de\u05ea \u05d0\u05ea \u05de\u05e1\u05e4\u05e8 \u05d4\u05e4\u05e8\u05d9\u05d8\u05d9\u05dd \u05d1\u05e7\u05d1\u05d5\u05e6\u05d4.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05ea \u05de\u05e1\u05e4\u05e8\u05d9\u05d5\u05ea, \u05ea\u05d0\u05e8\u05d9\u05db\u05d9\u05d5\u05ea \u05d5\u05de\u05d7\u05e8\u05d5\u05d6\u05ea\u05d9\u05d5\u05ea:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Count &#8211; \u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d0\u05ea \u05de\u05e1\u05e4\u05e8 \u05d4\u05e4\u05e8\u05d9\u05d8\u05d9\u05dd \u05d1\u05e7\u05d1\u05d5\u05e6\u05d4.<\/li>\n\n\n\n<li>Max &#8211; \u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d0\u05ea \u05d4\u05e2\u05e8\u05da \u05d4\u05d2\u05d1\u05d5\u05d4 \u05d1\u05d9\u05d5\u05ea\u05e8 \u05de\u05d1\u05d9\u05df \u05d4\u05e7\u05d1\u05d5\u05e6\u05d4.<\/li>\n\n\n\n<li>Min &#8211; \u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d0\u05ea \u05d4\u05e2\u05e8\u05da \u05d4\u05e0\u05de\u05d5\u05da \u05d1\u05d9\u05d5\u05ea\u05e8 \u05de\u05d1\u05d9\u05df \u05d4\u05e7\u05d1\u05d5\u05e6\u05d4.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u05d3\u05d5\u05d2\u05de\u05d0\u05d5\u05ea<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u05de\u05de\u05d5\u05e6\u05e2 \u05de\u05d7\u05d9\u05e8\u05d9\u05dd \u05e9\u05dc \u05de\u05d5\u05e6\u05e8\u05d9\u05dd<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nSELECT avg(UnitPrice) \nFROM Products\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05de\u05e1\u05e4\u05e8 \u05d4\u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05e9\u05e2\u05d5\u05e0\u05d9\u05dd \u05dc\u05ea\u05e0\u05d0\u05d9 \u05de\u05e1\u05d5\u05d9\u05d9\u05dd<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nSELECT count(*) \nFROM Employees \nWHERE city=&#039;London&#039;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05de\u05e1\u05e4\u05e8 \u05d4\u05dc\u05e7\u05d5\u05d7\u05d5\u05ea \u05e9\u05d1\u05e6\u05e2\u05d5 \u05d4\u05d6\u05de\u05e0\u05d4, \u05de\u05d9 \u05e9\u05d1\u05d9\u05e6\u05e2 \u05de\u05e1\u05e4\u05e8 \u05d4\u05d6\u05de\u05e0\u05d5\u05ea \u05d9\u05e1\u05e4\u05e8 \u05e4\u05e2\u05dd \u05d0\u05d7\u05ea<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nSELECT count(Distinct CustomerId) as &quot;num of customers&quot; \nFROM Orders\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Group By<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u05db\u05d0\u05e9\u05e8 \u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d1- Group Function \u05e0\u05d9\u05ea\u05df \u05dc\u05d7\u05dc\u05e7 \u05d0\u05ea \u05e7\u05d1\u05d5\u05e6\u05ea \u05d4\u05e8\u05e9\u05d5\u05de\u05d5\u05ea \u05e9\u05e2\u05dc\u05d9\u05d4 \u05de\u05d1\u05d5\u05e6\u05e2\u05ea \u05d4\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05dc\u05de\u05e1\u05e4\u05e8 \u05ea\u05ea\u05d9 \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea, \u05db\u05da \u05e9\u05d4\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05ea\u05d5\u05e4\u05e2\u05dc \u05e2\u05dc \u05db\u05dc \u05ea\u05ea \u05e7\u05d1\u05d5\u05e6\u05d4 \u05d1\u05e0\u05e4\u05e8\u05d3.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u05dc\u05d3\u05d5\u05d2\u05de\u05d0: \u05d4\u05e6\u05d2\u05ea \u05e9\u05de\u05d5\u05ea \u05d4\u05e2\u05e8\u05d9\u05dd \u05d5\u05de\u05e1\u05e4\u05e8 \u05d4\u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05e9\u05d2\u05e8\u05d9\u05dd \u05d1\u05db\u05dc \u05d0\u05d7\u05ea \u05de\u05d4\u05df \u05e2\u05dc \u05e4\u05d9 \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05e9\u05d1\u05d8\u05d1\u05dc\u05ea Employees.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nSELECT count(*) as &quot;num of employees&quot;, city \nFROM Employees \nGROUP BY City\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">Having<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u05dc\u05d0 \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e4\u05e2\u05d9\u05dc \u05ea\u05e0\u05d0\u05d9 \u05d1\u05de\u05e9\u05e4\u05d8 \u05d4 WHERE \u05e2\u05dc \u05e2\u05e8\u05da \u05d4\u05de\u05d5\u05d7\u05d6\u05e8 \u05db\u05ea\u05d5\u05e6\u05d0\u05d4 \u05de- Group Function \u05d5\u05dc\u05db\u05df, \u05db\u05d0\u05e9\u05e8 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05d1\u05e6\u05e2 \u05d4\u05ea\u05e0\u05d9\u05d4 \u05e2\u05dc \u05d4\u05e2\u05e8\u05da \u05e9\u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d4\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05d4\u05e7\u05d1\u05d5\u05e6\u05ea\u05d9\u05ea \u05d9\u05e9 \u05dc\u05e6\u05d9\u05d9\u05df \u05d0\u05ea \u05d4\u05ea\u05e0\u05d0\u05d9 \u05d1\u05de\u05e9\u05e4\u05d8 \u05d4 HAVING.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u05dc\u05d3\u05d5\u05d2\u05de\u05d0: \u05d4\u05e6\u05d2\u05ea \u05e9\u05de\u05d5\u05ea \u05d4\u05e2\u05e8\u05d9\u05dd \u05e9\u05d2\u05e8\u05d9\u05dd \u05d1\u05d4\u05df \u05dc\u05e4\u05d7\u05d5\u05ea \u05e9\u05e0\u05d9 \u05e2\u05d5\u05d1\u05d3\u05d9\u05dd + \u05e6\u05d9\u05d5\u05df \u05de\u05e1\u05e4\u05e8 \u05d4\u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05e2&quot;\u05e4 \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05de\u05d8\u05d1\u05dc\u05ea Employee<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nSELECT count(*) AS &quot;num of employee&quot;, city \nFROM Employees \nGROUP BY City \nHAVING count(*)&gt;=2\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05d3\u05d5\u05d2\u05de\u05d0 \u05de\u05e1\u05db\u05de\u05ea:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u05d4\u05e6\u05d2\u05ea \u05d4- id \u05e9\u05dc \u05db\u05dc \u05d4\u05dc\u05e7\u05d5\u05d7\u05d5\u05ea \u05e9\u05d1\u05d9\u05e6\u05e2\u05d5 \u05d9\u05d5\u05ea\u05e8 \u05de- 5 \u05d4\u05d6\u05de\u05e0\u05d5\u05ea \u05de\u05e9\u05e0\u05ea 1998 \u05d5\u05d0\u05d9\u05dc\u05da + \u05e6\u05d9\u05d5\u05df \u05de\u05e1\u05e4\u05e8 \u05d4\u05d4\u05d6\u05de\u05e0\u05d5\u05ea. \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05de\u05d5\u05d7\u05d6\u05e8\u05d9\u05dd \u05d9\u05d5\u05e6\u05d2\u05d5 \u05d1\u05de\u05d9\u05d5\u05df \u05d0\u05dc\u05e4\u05d0-\u05d1\u05d9\u05ea\u05d9.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nSELECT customerid,count(*) as &quot;num of order&quot; \nFROM orders \nWHERE OrderDate&gt;=&#039;01\/01\/1998&#039; \nGROUP BY CustomerID \nHAVING count(*)&gt;=5 \nORDER BY customerid\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">GROUPING SETS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u05dc- GROUP BY \u05de\u05e1\u05e4\u05e8 \u05d4\u05e8\u05d7\u05d1\u05d5\u05ea \u05d0\u05e9\u05e8 \u05de\u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05dc\u05d9\u05e6\u05d5\u05e8 \u05e1\u05d9\u05db\u05d5\u05de\u05d9 \u05d1\u05d9\u05e0\u05d9\u05d9\u05dd \u05d1\u05e0\u05d5\u05e1\u05e3 \u05dc\u05d7\u05d9\u05e9\u05d5\u05d1\u05d9\u05dd \u05e9\u05dc \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05ea \u05d4\u05e7\u05d1\u05d5\u05e6\u05d4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Grouping set<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u05e1\u05d9\u05db\u05d5\u05de\u05d9 \u05d1\u05d9\u05e0\u05d9\u05d9\u05dd \u05e2\u05e4&quot;\u05d9 \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea \u05e9\u05d5\u05e0\u05d5\u05ea.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u05de\u05d1\u05e0\u05d4<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nSELECT &lt;column list with aggregate(s)&gt;\nFROM &lt;source&gt;\nGROUP BY\nGROUPING SETS(\n(&lt;column_name&gt;),--one or more columns\n(&lt;column_name&gt;),--one or more columns\n() -- empty parentheses if aggregating all rows\n);\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05d3\u05d5\u05d2\u05de\u05d0: \u05e4\u05e7\u05d5\u05d3\u05d4 \u05e9\u05de\u05e6\u05d9\u05d2\u05d4 \u05d0\u05ea \u05de\u05e1' \u05d4\u05d6\u05de\u05e0\u05d5\u05ea \u05e9\u05d1\u05d9\u05e6\u05e2 \u05db\u05dc \u05e2\u05d5\u05d1\u05d3 \u05dc\u05db\u05dc \u05dc\u05e7\u05d5\u05d7<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nSELECT EmployeeID, customerid, year(orderdate), count(*) \nFROM orders \nWHERE customerid like &#039;b%&#039; \nGROUP BY GROUPING SETS (EmployeeID, customerid, year(orderdate)) \nORDER BY employeeid\n\nSELECT EmployeeID, customerid, year(orderdate), count(*) \nFROM orders \nWHERE customerid like &#039;b%&#039; \nGROUP BY GROUPING SETS ((customerid, year(orderdate)), (employeeid, year(orderdate)),()) \norder by employeeid\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">CUBE AND ROLLUP<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u05db\u05de\u05d5 \u05e4\u05e7\u05d5\u05d3\u05ea \u05d4- Grouping sets , \u05d2\u05dd \u05e4\u05e7\u05d5\u05d3\u05d5\u05ea \u05d4- Rollup &amp; cube \u05de\u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05dc\u05d9\u05e6\u05d5\u05e8 \u05e1\u05d9\u05db\u05d5\u05de\u05d9 \u05d1\u05d9\u05e0\u05d9\u05d9\u05dd \u05dc\u05e7\u05d1\u05d5\u05e6\u05d5\u05ea \u05de\u05e8\u05d5\u05d1\u05d5\u05ea \u05d1\u05e9\u05d9\u05dc\u05d5\u05d1 \u05e2\u05dd \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05ea \u05e7\u05d1\u05d5\u05e6\u05d4. \u05d1\u05e9\u05d5\u05e0\u05d4 \u05de- Grouping sets \u05d0\u05d9\u05df \u05e6\u05d5\u05e8\u05da \u05d1\u05e4\u05e7\u05d5\u05d3\u05d5\u05ea \u05d0\u05dc\u05d4 \u05dc\u05e7\u05d1\u05d5\u05e2 \u05d0\u05ea \u05e1\u05d3\u05e8 \u05d4\u05e7\u05d1\u05d5\u05e6\u05d5\u05ea.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Rollup \u2013 \u05d9\u05d5\u05e6\u05e8 \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea \u05e9\u05dc \u05e1\u05d9\u05db\u05d5\u05de\u05d9 \u05d1\u05d9\u05e0\u05d9\u05d9\u05dd \u05e2\u05e4&quot;\u05d9 \u05e1\u05d3\u05e8 \u05d4\u05e0\u05d7\u05ea \u05d4\u05e2\u05de\u05d5\u05d3\u05d5\u05ea \u05d1\u05e9\u05d5\u05e8\u05ea \u05d4- Group by .<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u05d3\u05d5\u05d2\u05de\u05d0:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nSELECT categoryid, supplierid, count(*) \nFROM products \nGROUP BY ROLLUP (categoryid, supplierid)\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Cube \u2013 \u05d9\u05d5\u05e6\u05e8\u05ea \u05e9\u05d5\u05e8\u05ea \u05e1\u05d9\u05db\u05d5\u05de\u05d9 \u05d1\u05d9\u05e0\u05d9\u05d9\u05dd \u05dc\u05db\u05dc \u05e9\u05d9\u05dc\u05d5\u05d1 \u05e9\u05dc \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea \u05d4\u05de\u05d5\u05d2\u05d3\u05e8\u05d5\u05ea \u05d1\u05e9\u05d5\u05e8\u05ea \u05d4- Group by . \u05d3\u05d5\u05d2\u05de\u05d0:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nSELECT categoryid, supplierid, count(*) \nFROM products \nGROUP BY CUBE (categoryid, supplierid)\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u05ea\u05e8\u05d2\u05d5\u05dc Group Function &#8211; \u05e9\u05d0\u05dc\u05d5\u05ea<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Employees \u05d0\u05ea \u05e9\u05dd \u05d4\u05de\u05e9\u05e4\u05d7\u05d4 \u05d4\u05e7\u05d8\u05df \u05d1\u05d9\u05d5\u05ea\u05e8 \u05de\u05d1\u05d7\u05d9\u05e0\u05d4 \u05d0\u05dc\u05e4\u05d0\u05d1\u05ea\u05d9\u05ea<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Employees \u05d0\u05ea \u05d4\u05e9\u05dd \u05d4\u05e4\u05e8\u05d8\u05d9 \u05d4\u05d2\u05d3\u05d5\u05dc \u05d1\u05d9\u05d5\u05ea\u05e8 \u05de\u05d1\u05d7\u05d9\u05e0\u05d4 \u05d0\u05dc\u05e4\u05d0\u05d1\u05ea\u05d9\u05ea<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Employees \u05d0\u05ea \u05de\u05e1\u05e4\u05e8 \u05d4\u05e8\u05e9\u05d5\u05de\u05d5\u05ea \u05e9\u05d9\u05e9 \u05d1\u05d8\u05d1\u05dc\u05d4<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Employees \u05d0\u05ea \u05de\u05e1\u05e4\u05e8 \u05d4\u05e8\u05e9\u05d5\u05de\u05d5\u05ea \u05e9\u05d9\u05e9 \u05d1\u05e2\u05de\u05d5\u05d3\u05ea Region (\u05dc\u05d0 \u05db\u05d5\u05dc\u05dc NULL)<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Products \u05d0\u05ea \u05de\u05de\u05d5\u05e6\u05e2 \u05d4\u05de\u05d7\u05d9\u05e8 \u05dc\u05d9\u05d7\u05d9\u05d3\u05d4<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Products \u05d0\u05ea \u05d4\u05de\u05d7\u05d9\u05e8, UnitPrice, \u05d4\u05d2\u05d1\u05d5\u05d4 \u05d1\u05d9\u05d5\u05ea\u05e8, \u05d5\u05d0\u05ea \u05d4\u05de\u05d7\u05d9\u05e8 \u05d4\u05de\u05de\u05d5\u05e6\u05e2. \u05ea\u05df \u05e9\u05de\u05d5\u05ea \u05de\u05ea\u05d0\u05d9\u05de\u05d9\u05dd \u05dc\u05e2\u05de\u05d5\u05d3\u05d5\u05ea<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Employees \u05d0\u05ea \u05ea\u05d0\u05e8\u05d9\u05da \u05d9\u05d5\u05dd \u05d4\u05d4\u05d5\u05dc\u05d3\u05ea \u05d4\u05e0\u05de\u05d5\u05da \u05d1\u05d9\u05d5\u05ea\u05e8 \u05d5\u05ea\u05d0\u05e8\u05d9\u05da \u05d9\u05d5\u05dd \u05d4\u05d4\u05d5\u05dc\u05d3\u05ea \u05d4\u05d2\u05d1\u05d5\u05d4 \u05d1\u05d9\u05d5\u05ea\u05e8. \u05d9\u05e9 \u05dc\u05d4\u05e6\u05d9\u05d2 \u05d0\u05ea \u05d4\u05ea\u05d0\u05e8\u05d9\u05db\u05d9\u05dd \u05d1\u05e4\u05d5\u05e8\u05de\u05d8 113 \u05ea\u05df \u05e9\u05de\u05d5\u05ea \u05de\u05ea\u05d0\u05d9\u05de\u05d9\u05dd \u05dc\u05e2\u05de\u05d5\u05d3\u05d5\u05ea.<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05d0\u05ea \u05de\u05e1\u05e4\u05e8 \u05d4\u05dc\u05e7\u05d5\u05d7\u05d5\u05ea \u05d4\u05e9\u05d5\u05e0\u05d9\u05dd \u05d4\u05e7\u05d9\u05d9\u05de\u05d9\u05dd \u05d1\u05d8\u05d1\u05dc\u05ea Customers, \u05ea\u05df \u05e9\u05dd \u05de\u05ea\u05d0\u05d9\u05dd \u05dc\u05e2\u05de\u05d5\u05d3\u05d4<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05d0\u05ea \u05de\u05e1\u05e4\u05e8 \u05d4\u05dc\u05e7\u05d5\u05d7\u05d5\u05ea \u05d4\u05e9\u05d5\u05e0\u05d9\u05dd \u05d4\u05e7\u05d9\u05d9\u05de\u05d9\u05dd \u05d1\u05d8\u05d1\u05dc\u05ea Orders, \u05ea\u05df \u05e9\u05dd \u05de\u05ea\u05d0\u05d9\u05dd \u05dc\u05e2\u05de\u05d5\u05d3\u05d4. \u05e9\u05d9\u05dd \u05dc\u05d1, \u05d4\u05e4\u05e2\u05dd \u05d9\u05ea\u05db\u05df \u05e9\u05dc\u05e7\u05d5\u05d7 \u05de\u05e1\u05d5\u05d9\u05d9\u05dd \u05d1\u05d9\u05e6\u05e2 \u05d9\u05d5\u05ea\u05e8 \u05de\u05d4\u05d6\u05de\u05e0\u05d4 \u05d0\u05d7\u05ea.<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Products \u05d0\u05ea \u05d4\u05de\u05d7\u05d9\u05e8 UnitPrice \u05d4\u05de\u05e7\u05e1\u05d9\u05de\u05d0\u05dc\u05d9, \u05d4\u05de\u05d9\u05e0\u05d9\u05de\u05d0\u05dc\u05d9, \u05d5\u05d4\u05de\u05de\u05d5\u05e6\u05e2 \u05dc\u05de\u05d5\u05e6\u05e8 \u05e2\u05d1\u05d5\u05e8 \u05db\u05dc \u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d4 CategoryID. \u05ea\u05df \u05e9\u05de\u05d5\u05ea \u05de\u05ea\u05d0\u05d9\u05de\u05d9\u05dd \u05dc\u05e2\u05de\u05d5\u05d3\u05d5\u05ea.<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Products \u05d0\u05ea \u05d4\u05de\u05d7\u05d9\u05e8 \u05d4\u05d2\u05d1\u05d5\u05d4 \u05d1\u05d9\u05d5\u05ea\u05e8 \u05e9\u05dc \u05d4\u05de\u05d5\u05e6\u05e8 \u05dc\u05e4\u05d9 \u05db\u05dc \u05de\u05e1\u05e4\u05e8 \u05e1\u05e4\u05e7, \u05de\u05d9\u05d9\u05df \u05dc\u05e4\u05d9 \u05de\u05e1\u05e4\u05e8 \u05d4\u05e1\u05e4\u05e7.<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Products \u05d0\u05ea \u05de\u05de\u05d5\u05e6\u05e2 \u05d4\u05d9\u05d7\u05d9\u05d3\u05d5\u05ea \u05d1\u05de\u05dc\u05d0\u05d9 \u05dc\u05e4\u05d9 \u05db\u05dc \u05de\u05e1\u05e4\u05e8 \u05e1\u05e4\u05e7 \u05de\u05d9\u05d9\u05df \u05dc\u05e4\u05d9 \u05de\u05de\u05d5\u05e6\u05e2 \u05d4\u05d9\u05d7\u05d9\u05d3\u05d5\u05ea. \u05e1\u05d3\u05e8 \u05d9\u05d5\u05e8\u05d3.<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Customers \u05d0\u05ea \u05de\u05e1\u05e4\u05e8 \u05d4\u05dc\u05e7\u05d5\u05d7\u05d5\u05ea \u05dc\u05e4\u05d9 \u05d4\u05de\u05d3\u05d9\u05e0\u05d4 , \u05d5\u05dc\u05e4\u05d9 \u05d4\u05e2\u05d9\u05e8.<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Products \u05d0\u05ea \u05d4\u05de\u05d7\u05d9\u05e8 \u05d4\u05de\u05de\u05d5\u05e6\u05e2 \u05e9\u05dc \u05d4\u05de\u05d5\u05e6\u05e8\u05d9\u05dd \u05dc\u05e4\u05d9 \u05db\u05dc \u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d4 , \u05e2\u05d1\u05d5\u05e8 \u05d4\u05de\u05d5\u05e6\u05e8\u05d9\u05dd \u05e9\u05d4\u05de\u05d7\u05d9\u05e8 \u05e9\u05dc\u05d4\u05dd \u05d2\u05d3\u05d5\u05dc \u05de 4.<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Customers \u05d0\u05ea \u05de\u05e1\u05e4\u05e8 \u05d4\u05dc\u05e7\u05d5\u05d7\u05d5\u05ea \u05dc\u05e4\u05d9 \u05e2\u05d9\u05e8 , \u05e2\u05d1\u05d5\u05e8 \u05d4\u05dc\u05e7\u05d5\u05d7\u05d5\u05ea \u05d0\u05e9\u05e8 \u05d2\u05e8\u05d9\u05dd \u05d1 London, Berlin, Rio de Janeiro \u05d0\u05d5 Paris.<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05ea\u05d5\u05da \u05d8\u05d1\u05dc\u05ea Products \u05d0\u05ea \u05d4\u05de\u05d7\u05d9\u05e8 \u05d4\u05d2\u05d1\u05d5\u05d4 \u05d1\u05d9\u05d5\u05ea\u05e8, \u05d4\u05de\u05d7\u05d9\u05e8 \u05d4\u05e0\u05de\u05d5\u05da \u05d1\u05d9\u05d5\u05ea\u05e8, \u05d4\u05de\u05d7\u05d9\u05e8 \u05d4\u05de\u05de\u05d5\u05e6\u05e2, \u05d5\u05db\u05de\u05d5\u05ea \u05d4\u05de\u05d5\u05e6\u05e8\u05d9\u05dd, \u05dc\u05e4\u05d9 \u05db\u05dc \u05de\u05e1\u05e4\u05e8 \u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d4 \u05d5\u05de\u05e1\u05e4\u05e8 \u05e1\u05e4\u05e7.<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Products \u05d0\u05ea \u05d4\u05de\u05d7\u05d9\u05e8 \u05d4\u05de\u05e7\u05e1\u05d9\u05de\u05dc\u05d9 \u05dc\u05e4\u05d9 \u05db\u05dc \u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d4, \u05e2\u05d1\u05d5\u05e8 \u05d4\u05de\u05d5\u05e6\u05e8\u05d9\u05dd \u05d0\u05e9\u05e8 \u05d4\u05de\u05d7\u05d9\u05e8 \u05d4\u05de\u05e7\u05e1\u05d9\u05de\u05dc\u05d9 \u05e9\u05dc\u05d4\u05dd \u05d2\u05d3\u05d5\u05dc \u05de 4.<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Products \u05d0\u05ea \u05d4\u05de\u05d7\u05d9\u05e8 \u05d4\u05de\u05de\u05d5\u05e6\u05e2 \u05dc\u05e4\u05d9 \u05db\u05dc \u05e1\u05e4\u05e7, \u05e2\u05d1\u05d5\u05e8 \u05d4\u05de\u05d5\u05e6\u05e8\u05d9\u05dd \u05d0\u05e9\u05e8 \u05d4\u05de\u05d7\u05d9\u05e8 \u05d4\u05de\u05de\u05d5\u05e6\u05e2 \u05e9\u05dc\u05d4\u05dd \u05d2\u05d3\u05d5\u05dc \u05de 4.<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Products \u05d0\u05ea \u05e1\u05da \u05db\u05dc \u05d4\u05e4\u05e8\u05d9\u05d8\u05d9\u05dd \u05e9\u05d4\u05d5\u05d6\u05de\u05e0\u05d5, UnitsOnOrder, \u05d5\u05d0\u05ea \u05e1\u05da \u05db\u05dc \u05d4\u05d9\u05d7\u05d9\u05d3\u05d5\u05ea \u05d1\u05de\u05dc\u05d0\u05d9, UnitsInStock, \u05e2\u05d1\u05d5\u05e8 \u05db\u05dc \u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d4. \u05d1\u05e0\u05d5\u05e1\u05e3, \u05d4\u05e6\u05d2 \u05d0\u05ea \u05e9\u05dd \u05d4\u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d4 \u05de\u05d8\u05d1\u05dc\u05ea Categories. \u05d9\u05e9 \u05dc\u05db\u05dc\u05d5\u05dc \u05d1\u05ea\u05d5\u05e6\u05d0\u05d5\u05ea \u05e8\u05e7 \u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d5\u05ea \u05e9\u05d1\u05e9\u05de\u05df \u05de\u05d5\u05e4\u05d9\u05e2\u05d4 \u05d4\u05d0\u05d5\u05ea C \u05d5\u05e8\u05e7 \u05de\u05d5\u05e6\u05e8\u05d9\u05dd \u05e9\u05e1\u05da \u05db\u05dc \u05d4\u05d9\u05d7\u05d9\u05d3\u05d5\u05ea \u05d4\u05de\u05d5\u05d6\u05de\u05e0\u05d5\u05ea \u05de\u05d4\u05dd \u05d2\u05d3\u05d5\u05dc \u05de 10. \u05d9\u05e9 \u05dc\u05de\u05d9\u05d9\u05df \u05d0\u05ea \u05d4\u05ea\u05d5\u05e6\u05d0\u05d5\u05ea \u05e2&quot;\u05e4 \u05e9\u05dd \u05d4\u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d4.<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05de\u05d8\u05d1\u05dc\u05ea Customers \u05d0\u05ea \u05d4\u05d0\u05d6\u05d5\u05e8, \u05d4\u05e2\u05d9\u05e8 \u05d5\u05de\u05e1\u05e4\u05e8 \u05d4\u05dc\u05e7\u05d5\u05d7\u05d5\u05ea \u05d4\u05e9\u05d9\u05d9\u05db\u05d9\u05dd \u05dc\u05d0\u05d5\u05ea\u05d5 \u05d4\u05d0\u05d6\u05d5\u05e8 \u05e2\u05d1\u05d5\u05e8 \u05d0\u05d5\u05ea\u05df \u05d4\u05e2\u05e8\u05d9\u05dd \u05e9\u05e7\u05d9\u05d9\u05de\u05d5\u05ea \u05d1\u05e9\u05de\u05df \u05d4\u05d0\u05d5\u05ea\u05d9\u05d5\u05ea NULL \u05d5\u05d2\u05dd \u05d4\u05d0\u05d6\u05d5\u05e8 \u05d0\u05d9\u05e0\u05d5 'L' \u05d0\u05d5 'M'. \u05d9\u05e9 \u05dc\u05db\u05dc\u05d5\u05dc \u05d1\u05ea\u05d5\u05e6\u05d0\u05d5\u05ea \u05e8\u05e7 \u05d0\u05d6\u05d5\u05e8\u05d9\u05dd \u05e9\u05de\u05e1\u05e4\u05e8 \u05d4\u05dc\u05e7\u05d5\u05d7\u05d5\u05ea \u05d1\u05d4\u05dd \u05d2\u05d3\u05d5\u05dc \u05d0\u05d5 \u05e9\u05d5\u05d5\u05d4 \u05dc 2.<\/li>\n\n\n\n<li>\u05d4\u05e6\u05d2 \u05d0\u05ea \u05d4\u05e2\u05de\u05d5\u05d3\u05d5\u05ea \u05d4\u05d1\u05d0\u05d5\u05ea: \u05e9\u05dd \u05e2\u05d5\u05d1\u05d3 LastName \u05de\u05d8\u05d1\u05dc\u05ea Employees, \u05e1\u05da \u05db\u05dc \u05d4\u05d4\u05d6\u05de\u05e0\u05d5\u05ea \u05e9\u05d4\u05e2\u05d5\u05d1\u05d3 \u05d1\u05d9\u05e6\u05e2 \u05de\u05d8\u05d1\u05dc\u05ea Orders, \u05d4\u05ea\u05d0\u05e8\u05d9\u05da \u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05e9\u05d4\u05e2\u05d5\u05d1\u05d3 \u05d1\u05d9\u05e6\u05e2 \u05d4\u05d6\u05de\u05e0\u05d4 OrderDate( \u05de\u05d8\u05d1\u05dc\u05ea Orders. \u05ea\u05df \u05e9\u05de\u05d5\u05ea \u05de\u05ea\u05d0\u05d9\u05de\u05d9\u05dd \u05dc\u05e2\u05de\u05d5\u05d3\u05d5\u05ea. \u05d9\u05e9 \u05dc\u05db\u05dc\u05d5\u05dc \u05d1\u05ea\u05d5\u05e6\u05d0\u05d5\u05ea \u05e8\u05e7 \u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05e9\u05d1\u05d9\u05e6\u05e2\u05d5 \u05de\u05e2\u05dc 100 \u05d4\u05d6\u05de\u05e0\u05d5\u05ea.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u05ea\u05e8\u05d2\u05d5\u05dc Group Function &#8211; \u05ea\u05e9\u05d5\u05d1\u05d5\u05ea<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\n-- ex1\nselect\n    min(lastname)\nfrom Employees\n\n-- ex2\nselect\n    max(firstName)\nfrom Employees\n\n-- ex3\nselect count(*) as CountRows\nFROM Employees \n\n-- ex4\nselect count(Region) as CountRegion\nFROM Employees \nwhere Region is not null\n\n-- ex5\nSELECT avg(UnitPrice) \nFROM Products\n\n-- ex6\nSELECT \n    avg(UnitPrice) as Average,\n    max(UnitPrice) as Maximum\nFROM Products\n\n-- ex7\nselect \n    convert(varchar, min(BirthDate), 113) as minBirthDate,\n    convert(varchar, max(BirthDate), 113) as maxBirthDate\nfrom Employees\n\n-- ex8\nselect count(Distinct CustomerId) as countCustomers\nfrom Customers\n\n-- ex9\nselect count(Distinct CustomerId) as countCustomers\nfrom Orders\n\n-- ex10\nselect\n    max(UnitPrice) as &#x5B;max price],\n    min(UnitPrice) as &#x5B;min price],\n    avg(UnitPrice) as &#x5B;avg price],\n    CategoryID\nfrom products\nGROUP BY CategoryID\n\n-- ex11\nselect\n    SupplierID,\n    max(UnitPrice) as &#x5B;max price],\n    min(UnitPrice) as &#x5B;min price]\nfrom products\nGROUP BY SupplierID\norder by SupplierID desc\n\n-- ex12\nselect\n    SupplierID,\n    avg(UnitsInStock) as &#x5B;UnitsInStock avg]\nfrom products\nGROUP BY SupplierID\norder by &#x5B;UnitsInStock avg] desc\n\n-- ex13\nselect\n    count(Distinct CustomerId),\n    Country,\n    City\nfrom Customers\nGROUP BY Country, City\n\n-- ex14\nselect \n    CategoryID,\n    avg(UnitPrice)\nfrom Products\nwhere UnitPrice &gt; 40\nGROUP BY CategoryID\n\n-- ex15\nselect\n    count(Distinct CustomerId),\n    City\nfrom Customers\nwhere city = &#039;Berlin&#039; or city = &#039;London&#039; or \n    city = &#039;Paris&#039; or city = &#039;Rio de Janeiro&#039;\nGROUP BY City\n\n-- ex 16\nselect \n    CategoryID,\n    SupplierID,\n    max(UnitPrice) as &#x5B;max price],\n    min(UnitPrice) as &#x5B;min price],\n    avg(UnitPrice) as &#x5B;avg price],\n    count(UnitPrice) as &#x5B;count items]\nfrom Products\nGROUP BY CategoryID, SupplierID\n\n-- ex17\nselect\n    CategoryID,\n    max(UnitPrice) as maxprice\nfrom Products\nGROUP BY CategoryID\nhaving max(UnitPrice) &gt; 40\n\n-- ex18\nselect\n    SupplierID,\n    avg(UnitPrice) as avgprice\nfrom Products\nGROUP BY SupplierID\nhaving avg(UnitPrice) &gt; 40\n\n-- ex19\nselect\n    c.CategoryName,\n    sum(p.UnitsOnOrder) as &#x5B;UnitsOnOrder sum],\n    sum(p.UnitsInStock) as &#x5B;UnitsInStock sum]\nFROM products p JOIN categories c\nON c.CategoryID = p.CategoryID\nWHERE c. categoryname LIKE &#039;%c%&#039;\nGROUP BY c.CategoryName\nHAVING sum(p.UnitsOnOrder) &gt; 100\nORDER BY c.categoryName\n\n-- ex20\nselect\n    Region,\n    City,\n    count(Distinct CustomerId) as &#x5B;count customers]\nfrom Customers\nWHERE (City LIKE &#039;%m%&#039; or City LIKE &#039;%l%&#039;) and Region is not null\ngroup by Region, City\nhaving count(Distinct CustomerId) &gt;= 2\n\n-- ex21\nselect\n    e.LastName,\n    count(o.EmployeeID) as &#x5B;orders for emp],\n    max(o.OrderDate) as &#x5B;last date]\nfrom Employees e inner join Orders o\non e.EmployeeID = o.EmployeeID\ngroup by e.LastName\nhaving count(o.EmployeeID) &gt; 100\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05ea \u05de\u05e1\u05e4\u05e8\u05d9\u05d5\u05ea: \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05ea \u05de\u05e1\u05e4\u05e8\u05d9\u05d5\u05ea, \u05ea\u05d0\u05e8\u05d9\u05db\u05d9\u05d5\u05ea \u05d5\u05de\u05d7\u05e8\u05d5\u05d6\u05ea\u05d9\u05d5\u05ea: \u05d3\u05d5\u05d2\u05de\u05d0\u05d5\u05ea \u05de\u05de\u05d5\u05e6\u05e2 \u05de\u05d7\u05d9\u05e8\u05d9\u05dd \u05e9\u05dc \u05de\u05d5\u05e6\u05e8\u05d9\u05dd \u05de\u05e1\u05e4\u05e8 \u05d4\u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05e9\u05e2\u05d5\u05e0\u05d9\u05dd \u05dc\u05ea\u05e0\u05d0\u05d9 \u05de\u05e1\u05d5\u05d9\u05d9\u05dd \u05de\u05e1\u05e4\u05e8 \u05d4\u05dc\u05e7\u05d5\u05d7\u05d5\u05ea \u05e9\u05d1\u05e6\u05e2\u05d5 \u05d4\u05d6\u05de\u05e0\u05d4, \u05de\u05d9 \u05e9\u05d1\u05d9\u05e6\u05e2 \u05de\u05e1\u05e4\u05e8 \u05d4\u05d6\u05de\u05e0\u05d5\u05ea \u05d9\u05e1\u05e4\u05e8 \u05e4\u05e2\u05dd \u05d0\u05d7\u05ea Group By \u05db\u05d0\u05e9\u05e8 \u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d1- Group Function \u05e0\u05d9\u05ea\u05df \u05dc\u05d7\u05dc\u05e7 \u05d0\u05ea \u05e7\u05d1\u05d5\u05e6\u05ea \u05d4\u05e8\u05e9\u05d5\u05de\u05d5\u05ea \u05e9\u05e2\u05dc\u05d9\u05d4 \u05de\u05d1\u05d5\u05e6\u05e2\u05ea \u05d4\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05dc\u05de\u05e1\u05e4\u05e8 \u05ea\u05ea\u05d9 \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea, \u05db\u05da \u05e9\u05d4\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05ea\u05d5\u05e4\u05e2\u05dc \u05e2\u05dc \u05db\u05dc \u05ea\u05ea \u05e7\u05d1\u05d5\u05e6\u05d4 \u05d1\u05e0\u05e4\u05e8\u05d3. \u05dc\u05d3\u05d5\u05d2\u05de\u05d0: \u05d4\u05e6\u05d2\u05ea [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","_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,"ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[],"footnotes":""},"categories":[25],"tags":[],"class_list":["post-979","post","type-post","status-publish","format-standard","hentry","category-sql","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Group Function And Grouping Sets - Code Notebook<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/epicmarketing.co.il\/notebook\/sql-group-function-and-grouping-sets\/\" \/>\n<meta property=\"og:locale\" content=\"he_IL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Group Function And Grouping Sets - Code Notebook\" \/>\n<meta property=\"og:description\" content=\"\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05ea \u05de\u05e1\u05e4\u05e8\u05d9\u05d5\u05ea: \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05ea \u05de\u05e1\u05e4\u05e8\u05d9\u05d5\u05ea, \u05ea\u05d0\u05e8\u05d9\u05db\u05d9\u05d5\u05ea \u05d5\u05de\u05d7\u05e8\u05d5\u05d6\u05ea\u05d9\u05d5\u05ea: \u05d3\u05d5\u05d2\u05de\u05d0\u05d5\u05ea \u05de\u05de\u05d5\u05e6\u05e2 \u05de\u05d7\u05d9\u05e8\u05d9\u05dd \u05e9\u05dc \u05de\u05d5\u05e6\u05e8\u05d9\u05dd \u05de\u05e1\u05e4\u05e8 \u05d4\u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05e9\u05e2\u05d5\u05e0\u05d9\u05dd \u05dc\u05ea\u05e0\u05d0\u05d9 \u05de\u05e1\u05d5\u05d9\u05d9\u05dd \u05de\u05e1\u05e4\u05e8 \u05d4\u05dc\u05e7\u05d5\u05d7\u05d5\u05ea \u05e9\u05d1\u05e6\u05e2\u05d5 \u05d4\u05d6\u05de\u05e0\u05d4, \u05de\u05d9 \u05e9\u05d1\u05d9\u05e6\u05e2 \u05de\u05e1\u05e4\u05e8 \u05d4\u05d6\u05de\u05e0\u05d5\u05ea \u05d9\u05e1\u05e4\u05e8 \u05e4\u05e2\u05dd \u05d0\u05d7\u05ea Group By \u05db\u05d0\u05e9\u05e8 \u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d1- Group Function \u05e0\u05d9\u05ea\u05df \u05dc\u05d7\u05dc\u05e7 \u05d0\u05ea \u05e7\u05d1\u05d5\u05e6\u05ea \u05d4\u05e8\u05e9\u05d5\u05de\u05d5\u05ea \u05e9\u05e2\u05dc\u05d9\u05d4 \u05de\u05d1\u05d5\u05e6\u05e2\u05ea \u05d4\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05dc\u05de\u05e1\u05e4\u05e8 \u05ea\u05ea\u05d9 \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea, \u05db\u05da \u05e9\u05d4\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05ea\u05d5\u05e4\u05e2\u05dc \u05e2\u05dc \u05db\u05dc \u05ea\u05ea \u05e7\u05d1\u05d5\u05e6\u05d4 \u05d1\u05e0\u05e4\u05e8\u05d3. \u05dc\u05d3\u05d5\u05d2\u05de\u05d0: \u05d4\u05e6\u05d2\u05ea [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/epicmarketing.co.il\/notebook\/sql-group-function-and-grouping-sets\/\" \/>\n<meta property=\"og:site_name\" content=\"Code Notebook\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-31T10:25:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-31T10:33:30+00:00\" \/>\n<meta name=\"author\" content=\"kerendanino\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u05e0\u05db\u05ea\u05d1 \u05e2\u05dc \u05d9\u05d3\" \/>\n\t<meta name=\"twitter:data1\" content=\"kerendanino\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u05d6\u05de\u05df \u05e7\u05e8\u05d9\u05d0\u05d4 \u05de\u05d5\u05e2\u05e8\u05da\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u05d3\u05e7\u05d5\u05ea\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/sql-group-function-and-grouping-sets\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/sql-group-function-and-grouping-sets\\\/\"},\"author\":{\"name\":\"kerendanino\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#\\\/schema\\\/person\\\/195dfc625818eadda7903d456890e24c\"},\"headline\":\"Group Function And Grouping Sets\",\"datePublished\":\"2023-08-31T10:25:24+00:00\",\"dateModified\":\"2023-08-31T10:33:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/sql-group-function-and-grouping-sets\\\/\"},\"wordCount\":110,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#organization\"},\"articleSection\":[\"SQL\"],\"inLanguage\":\"he-IL\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/sql-group-function-and-grouping-sets\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/sql-group-function-and-grouping-sets\\\/\",\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/sql-group-function-and-grouping-sets\\\/\",\"name\":\"Group Function And Grouping Sets - Code Notebook\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#website\"},\"datePublished\":\"2023-08-31T10:25:24+00:00\",\"dateModified\":\"2023-08-31T10:33:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/sql-group-function-and-grouping-sets\\\/#breadcrumb\"},\"inLanguage\":\"he-IL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/sql-group-function-and-grouping-sets\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/sql-group-function-and-grouping-sets\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Group Function And Grouping Sets\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#website\",\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/\",\"name\":\"Code Notebook\",\"description\":\"Easy coding\",\"publisher\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"he-IL\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#organization\",\"name\":\"Code Notebook\",\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"he-IL\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo-epic-marketing-05.png\",\"contentUrl\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo-epic-marketing-05.png\",\"width\":3626,\"height\":1942,\"caption\":\"Code Notebook\"},\"image\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#\\\/schema\\\/person\\\/195dfc625818eadda7903d456890e24c\",\"name\":\"kerendanino\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"he-IL\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g\",\"caption\":\"kerendanino\"},\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/author\\\/kerendanino\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Group Function And Grouping Sets - Code Notebook","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:\/\/epicmarketing.co.il\/notebook\/sql-group-function-and-grouping-sets\/","og_locale":"he_IL","og_type":"article","og_title":"Group Function And Grouping Sets - Code Notebook","og_description":"\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05ea \u05de\u05e1\u05e4\u05e8\u05d9\u05d5\u05ea: \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05ea \u05de\u05e1\u05e4\u05e8\u05d9\u05d5\u05ea, \u05ea\u05d0\u05e8\u05d9\u05db\u05d9\u05d5\u05ea \u05d5\u05de\u05d7\u05e8\u05d5\u05d6\u05ea\u05d9\u05d5\u05ea: \u05d3\u05d5\u05d2\u05de\u05d0\u05d5\u05ea \u05de\u05de\u05d5\u05e6\u05e2 \u05de\u05d7\u05d9\u05e8\u05d9\u05dd \u05e9\u05dc \u05de\u05d5\u05e6\u05e8\u05d9\u05dd \u05de\u05e1\u05e4\u05e8 \u05d4\u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05e9\u05e2\u05d5\u05e0\u05d9\u05dd \u05dc\u05ea\u05e0\u05d0\u05d9 \u05de\u05e1\u05d5\u05d9\u05d9\u05dd \u05de\u05e1\u05e4\u05e8 \u05d4\u05dc\u05e7\u05d5\u05d7\u05d5\u05ea \u05e9\u05d1\u05e6\u05e2\u05d5 \u05d4\u05d6\u05de\u05e0\u05d4, \u05de\u05d9 \u05e9\u05d1\u05d9\u05e6\u05e2 \u05de\u05e1\u05e4\u05e8 \u05d4\u05d6\u05de\u05e0\u05d5\u05ea \u05d9\u05e1\u05e4\u05e8 \u05e4\u05e2\u05dd \u05d0\u05d7\u05ea Group By \u05db\u05d0\u05e9\u05e8 \u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d1- Group Function \u05e0\u05d9\u05ea\u05df \u05dc\u05d7\u05dc\u05e7 \u05d0\u05ea \u05e7\u05d1\u05d5\u05e6\u05ea \u05d4\u05e8\u05e9\u05d5\u05de\u05d5\u05ea \u05e9\u05e2\u05dc\u05d9\u05d4 \u05de\u05d1\u05d5\u05e6\u05e2\u05ea \u05d4\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05dc\u05de\u05e1\u05e4\u05e8 \u05ea\u05ea\u05d9 \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea, \u05db\u05da \u05e9\u05d4\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05ea\u05d5\u05e4\u05e2\u05dc \u05e2\u05dc \u05db\u05dc \u05ea\u05ea \u05e7\u05d1\u05d5\u05e6\u05d4 \u05d1\u05e0\u05e4\u05e8\u05d3. \u05dc\u05d3\u05d5\u05d2\u05de\u05d0: \u05d4\u05e6\u05d2\u05ea [&hellip;]","og_url":"https:\/\/epicmarketing.co.il\/notebook\/sql-group-function-and-grouping-sets\/","og_site_name":"Code Notebook","article_published_time":"2023-08-31T10:25:24+00:00","article_modified_time":"2023-08-31T10:33:30+00:00","author":"kerendanino","twitter_card":"summary_large_image","twitter_misc":{"\u05e0\u05db\u05ea\u05d1 \u05e2\u05dc \u05d9\u05d3":"kerendanino","\u05d6\u05de\u05df \u05e7\u05e8\u05d9\u05d0\u05d4 \u05de\u05d5\u05e2\u05e8\u05da":"4 \u05d3\u05e7\u05d5\u05ea"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/epicmarketing.co.il\/notebook\/sql-group-function-and-grouping-sets\/#article","isPartOf":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/sql-group-function-and-grouping-sets\/"},"author":{"name":"kerendanino","@id":"https:\/\/epicmarketing.co.il\/notebook\/#\/schema\/person\/195dfc625818eadda7903d456890e24c"},"headline":"Group Function And Grouping Sets","datePublished":"2023-08-31T10:25:24+00:00","dateModified":"2023-08-31T10:33:30+00:00","mainEntityOfPage":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/sql-group-function-and-grouping-sets\/"},"wordCount":110,"commentCount":0,"publisher":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/#organization"},"articleSection":["SQL"],"inLanguage":"he-IL","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/epicmarketing.co.il\/notebook\/sql-group-function-and-grouping-sets\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/epicmarketing.co.il\/notebook\/sql-group-function-and-grouping-sets\/","url":"https:\/\/epicmarketing.co.il\/notebook\/sql-group-function-and-grouping-sets\/","name":"Group Function And Grouping Sets - Code Notebook","isPartOf":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/#website"},"datePublished":"2023-08-31T10:25:24+00:00","dateModified":"2023-08-31T10:33:30+00:00","breadcrumb":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/sql-group-function-and-grouping-sets\/#breadcrumb"},"inLanguage":"he-IL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/epicmarketing.co.il\/notebook\/sql-group-function-and-grouping-sets\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/epicmarketing.co.il\/notebook\/sql-group-function-and-grouping-sets\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/epicmarketing.co.il\/notebook\/"},{"@type":"ListItem","position":2,"name":"Group Function And Grouping Sets"}]},{"@type":"WebSite","@id":"https:\/\/epicmarketing.co.il\/notebook\/#website","url":"https:\/\/epicmarketing.co.il\/notebook\/","name":"Code Notebook","description":"Easy coding","publisher":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/epicmarketing.co.il\/notebook\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"he-IL"},{"@type":"Organization","@id":"https:\/\/epicmarketing.co.il\/notebook\/#organization","name":"Code Notebook","url":"https:\/\/epicmarketing.co.il\/notebook\/","logo":{"@type":"ImageObject","inLanguage":"he-IL","@id":"https:\/\/epicmarketing.co.il\/notebook\/#\/schema\/logo\/image\/","url":"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/07\/logo-epic-marketing-05.png","contentUrl":"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/07\/logo-epic-marketing-05.png","width":3626,"height":1942,"caption":"Code Notebook"},"image":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/epicmarketing.co.il\/notebook\/#\/schema\/person\/195dfc625818eadda7903d456890e24c","name":"kerendanino","image":{"@type":"ImageObject","inLanguage":"he-IL","@id":"https:\/\/secure.gravatar.com\/avatar\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g","caption":"kerendanino"},"url":"https:\/\/epicmarketing.co.il\/notebook\/author\/kerendanino\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/posts\/979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/comments?post=979"}],"version-history":[{"count":2,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/posts\/979\/revisions"}],"predecessor-version":[{"id":986,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/posts\/979\/revisions\/986"}],"wp:attachment":[{"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/media?parent=979"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/categories?post=979"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/tags?post=979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}