{"id":3258,"date":"2025-02-05T07:22:05","date_gmt":"2025-02-05T14:22:05","guid":{"rendered":"https:\/\/www.sqltutorial.org\/?page_id=3258"},"modified":"2025-02-08T20:18:37","modified_gmt":"2025-02-09T03:18:37","slug":"sql-right-join","status":"publish","type":"page","link":"https:\/\/www.sqltutorial.org\/sql-right-join\/","title":{"rendered":"SQL RIGHT JOIN"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you&#8217;ll learn how to use the SQL <code>RIGHT JOIN<\/code> clause to merge rows from two tables.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='introduction-to-the-sql-right-join-clause'>Introduction to the SQL RIGHT JOIN clause <a href=\"#introduction-to-the-sql-right-join-clause\" class=\"anchor\" id=\"introduction-to-the-sql-right-join-clause\" title=\"Anchor for Introduction to the SQL RIGHT JOIN clause\">#<\/a><\/h2>\n\n\n\n<p>The <code>RIGHT JOIN<\/code> is an optional clause of the <code><a href=\"https:\/\/www.sqltutorial.org\/sql-select\/\">SELECT<\/a><\/code> statement. The <code>RIGHT JOIN<\/code> clause allows you to merge rows from two tables.<\/p>\n\n\n\n<p>Here&#8217;s the syntax of the <code>RIGHT JOIN<\/code> clause:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"><span class=\"hljs-keyword\">SELECT<\/span>\n  column1,\n  column2\n<span class=\"hljs-keyword\">FROM<\/span>\n  left_table\n  <span class=\"hljs-keyword\">RIGHT JOIN<\/span> right_table <span class=\"hljs-keyword\">ON<\/span> condition;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>In this syntax:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First, specify the first table (<code>left_table<\/code>) in the <code>FROM<\/code> clause.<\/li>\n\n\n\n<li>Second, provide the second table (<code>right_table<\/code>) in the <code>RIGHT JOIN<\/code> clause.<\/li>\n\n\n\n<li>Third, specify a condition for matching rows between the first and second tables after the <code>ON<\/code> keyword.<\/li>\n<\/ul>\n\n\n\n<p>For each row in the <code>right_table<\/code>, the <code>RIGHT JOIN<\/code> checks the condition with each row in the <code>left_table<\/code>. If the <code>condition<\/code> is <code>true<\/code>, the <code>RIGHT JOIN<\/code> merges two rows from both tables into a single row.<\/p>\n\n\n\n<p>If the <code>condition<\/code> is <code>false<\/code>, the <code>RIGHT JOIN<\/code> clause combines the row from the right table with a row from the left table filled with <code>NULL<\/code>s into a single row. In other words, the <code>RIGHT JOIN<\/code> clause always includes rows from the right table.<\/p>\n\n\n\n<p>Typically, you&#8217;ll use an equal operator (<code>=<\/code>) for comparing rows between two columns of the left and right tables:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"><span class=\"hljs-keyword\">SELECT<\/span>\n  column1,\n  column2\n<span class=\"hljs-keyword\">FROM<\/span>\n  left_table\n  <span class=\"hljs-keyword\">RIGHT JOIN<\/span> right_table <span class=\"hljs-keyword\">ON<\/span> right_table.column1 = left_table_column2;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"note\">The <code>RIGHT JOIN<\/code> and <code>RIGHT OUTER JOIN<\/code> are the same because the <code>OUTER<\/code> keyword is optional.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='understanding-sql-right-join'>Understanding SQL right join <a href=\"#understanding-sql-right-join\" class=\"anchor\" id=\"understanding-sql-right-join\" title=\"Anchor for Understanding SQL right join\">#<\/a><\/h2>\n\n\n\n<p>Suppose you have two tables:<\/p>\n\n\n\n<ul id=\"block-1e3e94a1-323e-470b-a6d5-45d84dba0705\" class=\"wp-block-list\">\n<li>The <code>X<\/code> table has two columns <code>id <\/code>(key) and <code>x<\/code>.<\/li>\n\n\n\n<li>The <code>Y<\/code> table has also has two columns <code>id<\/code> (key) and <code>y<\/code>.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><div class=\"wp-block-image\">\n<figure class=\"alignright size-full\"><img decoding=\"async\" src=\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2025\/02\/x-table.svg\" alt=\"\" class=\"wp-image-3507\"\/><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><div class=\"wp-block-image\">\n<figure class=\"alignleft size-full\"><img decoding=\"async\" src=\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2025\/02\/y-table.svg\" alt=\"\" class=\"wp-image-3508\"\/><\/figure>\n<\/div><\/div>\n<\/div>\n\n\n\n<p id=\"block-9b68ea9c-7eaa-4068-8a60-47d522b4824c\">The right join matches the rows between the tables <code>X<\/code> and <code>Y<\/code> using the values in the <code>id<\/code> columns of both tables.<\/p>\n\n\n\n<p id=\"block-f9122cb8-98f4-4c80-93ea-f45a8ab4fb5a\">The right join\u00a0includes all rows from the right table (<code>Y<\/code>) and matching rows from the left table (X); if there are no matching rows, it uses <code>null<\/code> for columns of the left table (<code>X<\/code>):<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2025\/02\/sql-right-join-visualization.svg\" alt=\"sql right join visualization\" class=\"wp-image-3522\"\/><\/figure>\n<\/div>\n\n\n<p id=\"block-e35f00e0-40b4-4c61-a1f4-d7a18724a9a1\">The following Venn diagram is another way to illustrate a right join:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2025\/02\/sql-right-join-Venn-diagram.svg\" alt=\"sql right join Venn diagram\" class=\"wp-image-3521\"\/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id='basic-sql-right-join-clause-example'>Basic SQL RIGHT JOIN clause example <a href=\"#basic-sql-right-join-clause-example\" class=\"anchor\" id=\"basic-sql-right-join-clause-example\" title=\"Anchor for Basic SQL RIGHT JOIN clause example\">#<\/a><\/h2>\n\n\n\n<p>Suppose we have two tables <code>employees<\/code> and <code>departments<\/code>.<\/p>\n\n\n\n<p>The <code>employees<\/code> table:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>employee_id<\/th><th>name<\/th><th>department_id<\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td>Jane<\/td><td>1<\/td><\/tr><tr><td>2<\/td><td>Bob<\/td><td>2<\/td><\/tr><tr><td>3<\/td><td>Maria<\/td><td>NULL<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The <code>departments<\/code> table:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>department_id<\/th><th>department_name<\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td>Sales<\/td><\/tr><tr><td>2<\/td><td>Marketing<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The following query uses the <code>RIGHT JOIN<\/code> clause to retrieve the employee ID, name, and department name from the <code>employees<\/code> and <code>departments<\/code> table:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"><span class=\"hljs-keyword\">SELECT<\/span>\n  employee_id,\n  <span class=\"hljs-type\">name<\/span>,\n  department_name\n<span class=\"hljs-keyword\">FROM<\/span>\n  departments\n  <span class=\"hljs-keyword\">RIGHT JOIN<\/span> employees <span class=\"hljs-keyword\">ON<\/span> employees.department_id = departments.department_id;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"> employee_id | <span class=\"hljs-type\">name<\/span>  | department_name\n<span class=\"hljs-comment\">-------------+-------+-----------------<\/span>\n           <span class=\"hljs-number\">1<\/span> | Jane  | Sales\n           <span class=\"hljs-number\">2<\/span> | Bob   | Marketing\n           <span class=\"hljs-number\">3<\/span> | Maria | <span class=\"hljs-keyword\">NULL<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>How the query works:<\/p>\n\n\n\n<p><strong>Step 1<\/strong>. The <code>RIGHT JOIN<\/code> clause examines every row in the <code>employees<\/code> table.<\/p>\n\n\n\n<p>The row #1 (<code>department_id<\/code> 1) matches with the row #1 (<code>department_id<\/code> 1) in the <code>departments<\/code> table. The <code>RIGHT JOIN<\/code> clause merges rows from two tables into a single row:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>employee_id<\/th><th>name<\/th><th>department_id<\/th><th>department_id<\/th><th>department_name<\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td>Jane<\/td><td>1<\/td><td>1<\/td><td>Sales<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The row #2 (<code>department_id<\/code> 2) matches with the row #2 (<code>department_id<\/code> 2) in the <code>departments<\/code> table. The <code>RIGHT JOIN<\/code> clause combines the rows into a new row:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>employee_id<\/th><th>name<\/th><th>department_id<\/th><th>department_id<\/th><th>department_name<\/th><\/tr><\/thead><tbody><tr><td>2<\/td><td>Bob<\/td><td>2<\/td><td>2<\/td><td>Marketing<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The row #3 (department_id <code>NULL<\/code>) does not match any rows in the <code>departments<\/code> table. The <code>RIGHT JOIN<\/code> includes the row from the <code>employees<\/code> table and fills <code>NULL<\/code> for columns of the row from the <code>departments<\/code> table:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>employee_id<\/th><th>name<\/th><th>department_id<\/th><th>department_id<\/th><th>department_name<\/th><\/tr><\/thead><tbody><tr><td>3<\/td><td>Maria<\/td><td>NULL<\/td><td>NULL<\/td><td>NULL<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The <code>RIGHT JOIN<\/code> comes up with the following intermediate result set:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>employee_id<\/th><th>name<\/th><th>department_id<\/th><th>department_id<\/th><th>department_name<\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td>Jane<\/td><td>1<\/td><td>1<\/td><td>Sales<\/td><\/tr><tr><td>2<\/td><td>Bob<\/td><td>2<\/td><td>2<\/td><td>Marketing<\/td><\/tr><tr><td>3<\/td><td>Maria<\/td><td>NULL<\/td><td>NULL<\/td><td>NULL<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Step 2<\/strong>. The <code>SELECT<\/code> clause retrieves the <code>employee_id<\/code>, <code>name<\/code>, and <code>department_id<\/code> from the intermediate result set and returns the following final result set:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>employee_id<\/th><th>name<\/th><th>department_id<\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td>Jane<\/td><td>1<\/td><\/tr><tr><td>2<\/td><td>Bob<\/td><td>2<\/td><\/tr><tr><td>3<\/td><td>Maria<\/td><td>NULL<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id='using-table-aliases'>Using Table Aliases <a href=\"#using-table-aliases\" class=\"anchor\" id=\"using-table-aliases\" title=\"Anchor for Using Table Aliases\">#<\/a><\/h2>\n\n\n\n<p>When joining a table with another table using a <code>RIGHT JOIN<\/code> clause, you can use table aliases. For example:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"><span class=\"hljs-keyword\">SELECT<\/span>\n  employee_id,\n  <span class=\"hljs-type\">name<\/span>,\n  department_name\n<span class=\"hljs-keyword\">FROM<\/span>\n  departments d\n  <span class=\"hljs-keyword\">RIGHT JOIN<\/span> employees e <span class=\"hljs-keyword\">ON<\/span> e.department_id = d.department_id;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/www.sqltutorial.org\/playground\/?db=join&amp;q=U0VMRUNUIGVtcGxveWVlX2lkLCBuYW1lLCBkZXBhcnRtZW50X25hbWUgRlJPTSBkZXBhcnRtZW50cyBkIFJJR0hUIEpPSU4gZW1wbG95ZWVzIGUgT04gZS5kZXBhcnRtZW50X2lkID0gZC5kZXBhcnRtZW50X2lkOw%3D%3D\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='finding-non-matching-rows-from-the-left-table'>Finding non-matching rows from the left table <a href=\"#finding-non-matching-rows-from-the-left-table\" class=\"anchor\" id=\"finding-non-matching-rows-from-the-left-table\" title=\"Anchor for Finding non-matching rows from the left table\">#<\/a><\/h2>\n\n\n\n<p>The <code>RIGHT JOIN<\/code> clause can help find non-matching rows in the right table using the following query pattern:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"><span class=\"hljs-keyword\">SELECT<\/span>\n  column1,\n  column2\n<span class=\"hljs-keyword\">FROM<\/span>\n  left_table\n  <span class=\"hljs-keyword\">RIGHT JOIN<\/span> right_table <span class=\"hljs-keyword\">ON<\/span> right_table.column1 = left_table_column2\n<span class=\"hljs-keyword\">WHERE<\/span> column2 <span class=\"hljs-keyword\">IS<\/span> <span class=\"hljs-keyword\">NULL<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>The <code>condition<\/code> in the <code><a href=\"https:\/\/www.sqltutorial.org\/sql-where\/\">WHERE<\/a><\/code> clause keeps rows whose values in the <code>column2<\/code> are <code>NULL<\/code>. These rows do not have matching rows in the left table.<\/p>\n\n\n\n<p>For example, you can use the <code>RIGHT JOIN<\/code> clause to find the employees who do not belong to any department:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"><span class=\"hljs-keyword\">SELECT<\/span>\n  employee_id,\n  <span class=\"hljs-type\">name<\/span>,\n  department_name\n<span class=\"hljs-keyword\">FROM<\/span>\n  departments d\n  <span class=\"hljs-keyword\">RIGHT JOIN<\/span> employees e <span class=\"hljs-keyword\">ON<\/span> e.department_id = d.department_id\n<span class=\"hljs-keyword\">WHERE<\/span>\n  department_name <span class=\"hljs-keyword\">IS<\/span> <span class=\"hljs-keyword\">NULL<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/www.sqltutorial.org\/playground\/?db=join&amp;q=U0VMRUNUIGVtcGxveWVlX2lkLCBuYW1lLCBkZXBhcnRtZW50X25hbWUgRlJPTSBkZXBhcnRtZW50cyBkIFJJR0hUIEpPSU4gZW1wbG95ZWVzIGUgT04gZS5kZXBhcnRtZW50X2lkID0gZC5kZXBhcnRtZW50X2lkIFdIRVJFIGRlcGFydG1lbnRfbmFtZSBJUyBOVUxMOw%3D%3D\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"> employee_id | <span class=\"hljs-type\">name<\/span>  | department_name\n<span class=\"hljs-comment\">-------------+-------+-----------------<\/span>\n           <span class=\"hljs-number\">3<\/span> | Maria | <span class=\"hljs-keyword\">NULL<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\" id='joining-two-tables-using-a-right-join-clause'>Joining two tables using a RIGHT JOIN clause <a href=\"#joining-two-tables-using-a-right-join-clause\" class=\"anchor\" id=\"joining-two-tables-using-a-right-join-clause\" title=\"Anchor for Joining two tables using a RIGHT JOIN clause\">#<\/a><\/h2>\n\n\n\n<p>We&#8217;ll use the <code>countries<\/code> and <code>locations<\/code> tables from the <a href=\"https:\/\/www.sqltutorial.org\/sql-sample-database\/\">HR sample database<\/a>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"183\" src=\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/countries_locations_tables.png\" alt=\"SQL RIGHT JOIN - countries &amp; locations tables\" class=\"wp-image-253\" srcset=\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/countries_locations_tables.png 450w, https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/countries_locations_tables-300x122.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/figure>\n\n\n\n<p>The following query uses the <code>RIGHT JOIN<\/code> clause to retrieve the <code>country_name<\/code> and <code>city<\/code> from the <code>countries<\/code> and <code>locations<\/code> tables:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"><span class=\"hljs-keyword\">SELECT<\/span>\n  country_name,\n  city\n<span class=\"hljs-keyword\">FROM<\/span>\n  locations l\n  <span class=\"hljs-keyword\">RIGHT JOIN<\/span> countries c <span class=\"hljs-keyword\">ON<\/span> c.country_id = l.country_id\n<span class=\"hljs-keyword\">ORDER<\/span> <span class=\"hljs-keyword\">BY<\/span>\n  city,\n  country_name;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/www.sqltutorial.org\/playground\/?q=U0VMRUNUIGNvdW50cnlfbmFtZSwgY2l0eSBGUk9NIGxvY2F0aW9ucyBsIFJJR0hUIEpPSU4gY291bnRyaWVzIGMgT04gYy5jb3VudHJ5X2lkID0gbC5jb3VudHJ5X2lkIE9SREVSIEJZIGNpdHksIGNvdW50cnlfbmFtZTs%3D\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-10\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\">       country_name       |        city\n<span class=\"hljs-comment\">--------------------------+---------------------<\/span>\n United Kingdom           | London\n Germany                  | Munich\n United Kingdom           | Oxford\n United States <span class=\"hljs-keyword\">of<\/span> America | Seattle\n United States <span class=\"hljs-keyword\">of<\/span> America | South San Francisco\n United States <span class=\"hljs-keyword\">of<\/span> America | Southlake\n Canada                   | Toronto\n Argentina                | <span class=\"hljs-keyword\">NULL<\/span>\n Australia                | <span class=\"hljs-keyword\">NULL<\/span>\n...<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-10\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>The result set includes all country names (from the <code>countries<\/code> table) and <code>cities<\/code>(from the <code>locations<\/code> table). For the country that does not have a city in the <code>locations<\/code> table, the city is <code>NULL<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='joining-three-tables-using-right-join-clauses'>Joining three tables using RIGHT JOIN clauses <a href=\"#joining-three-tables-using-right-join-clauses\" class=\"anchor\" id=\"joining-three-tables-using-right-join-clauses\" title=\"Anchor for Joining three tables using RIGHT JOIN clauses\">#<\/a><\/h2>\n\n\n\n<p>Here are three tables: <code>regions<\/code>, <code>countries<\/code>, and <code>locations<\/code> from the <a href=\"https:\/\/www.sqltutorial.org\/sql-sample-database\/\">HR sample database<\/a>:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"194\" src=\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/location_tables.png\" alt=\"SQL LEFT JOIN - Joining three tables\" class=\"wp-image-258\" srcset=\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/location_tables.png 708w, https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2016\/03\/location_tables-300x82.png 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/figure>\n\n\n\n<p>The following query uses the <code>RIGHT JOIN<\/code> clauses to retrieve data from the three tables:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-11\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"><span class=\"hljs-keyword\">SELECT<\/span>\n  region_name,\n  country_name,\n  city\n<span class=\"hljs-keyword\">FROM<\/span>\n  locations l\n  <span class=\"hljs-keyword\">RIGHT JOIN<\/span> countries c <span class=\"hljs-keyword\">ON<\/span> c.country_id = l.country_id\n  <span class=\"hljs-keyword\">RIGHT JOIN<\/span> regions r <span class=\"hljs-keyword\">ON<\/span> r.region_id = c.region_id\n<span class=\"hljs-keyword\">ORDER<\/span> <span class=\"hljs-keyword\">BY<\/span>\n  region_name;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-11\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/www.sqltutorial.org\/playground\/?q=U0VMRUNUIHJlZ2lvbl9uYW1lLCBjb3VudHJ5X25hbWUsIGNpdHkgRlJPTSBsb2NhdGlvbnMgbCBSSUdIVCBKT0lOIGNvdW50cmllcyBjIE9OIGMuY291bnRyeV9pZCA9IGwuY291bnRyeV9pZCBSSUdIVCBKT0lOIHJlZ2lvbnMgciBPTiByLnJlZ2lvbl9pZCA9IGMucmVnaW9uX2lkIE9SREVSIEJZIHJlZ2lvbl9uYW1lOw%3D%3D\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-12\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\">      region_name       |       country_name       |        city\n<span class=\"hljs-comment\">------------------------+--------------------------+---------------------<\/span>\n Americas               | United States <span class=\"hljs-keyword\">of<\/span> America | South San Francisco\n Americas               | United States <span class=\"hljs-keyword\">of<\/span> America | Southlake\n Americas               | Mexico                   | <span class=\"hljs-keyword\">NULL<\/span>\n Americas               | Canada                   | Toronto\n Americas               | Brazil                   | <span class=\"hljs-keyword\">NULL<\/span>\n Americas               | United States <span class=\"hljs-keyword\">of<\/span> America | Seattle\n Americas               | Argentina                | <span class=\"hljs-keyword\">NULL<\/span>\n Asia                   | Australia                | <span class=\"hljs-keyword\">NULL<\/span>\n Asia                   | HongKong                 | <span class=\"hljs-keyword\">NULL<\/span>\n...<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-12\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\" id='summary'>Summary <a href=\"#summary\" class=\"anchor\" id=\"summary\" title=\"Anchor for Summary\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use a <code>RIGHT JOIN<\/code> clause to select rows to merge rows from two tables. The <code>RIGHT JOIN<\/code> clause always includes rows from the right table in the result set.<\/li>\n\n\n\n<li>Use a <code>RIGHT JOIN<\/code> clause to find unmatching rows in the right table.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id='quiz'>Quiz <a href=\"#quiz\" class=\"anchor\" id=\"quiz\" title=\"Anchor for Quiz\">#<\/a><\/h2>\n\n\n\n<iframe loading=\"lazy\"\n  name=\"quiz\"\n  src=\"\/quiz\/?quiz=right-join\"\n  height=\"700\"\n  width=\"600\"\n  class=\"iframe\"\n><\/iframe>\n\n\n\n<h2 class=\"wp-block-heading\" id='databases'>Databases <a href=\"#databases\" class=\"anchor\" id=\"databases\" title=\"Anchor for Databases\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.pgtutorial.com\/postgresql-tutorial\/postgresql-right-join\/\" target=\"_blank\" rel=\"noreferrer noopener\">PostgreSQL RIGHT JOIN Clause<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-right-join\/\" target=\"_blank\" rel=\"noreferrer noopener\">MySQL RIGHT JOIN Clause<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-right-join\/\" target=\"_blank\" rel=\"noreferrer noopener\">SQLite RIGHT JOIN Clause<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.db2tutorial.com\/db2-basics\/db2-right-join\/\" target=\"_blank\" rel=\"noreferrer noopener\">Db2 RIGHT JOIN Clause<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-right-join\/\" target=\"_blank\" rel=\"noreferrer noopener\">Oracle RIGHT JOIN Clause<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-basics\/sql-server-right-join\/\" target=\"_blank\" rel=\"noreferrer noopener\">SQL Server RIGHT JOIN Clause<\/a><\/li>\n<\/ul>\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful ?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"3258\"\n\t\t\t\tdata-post-url=\"https:\/\/www.sqltutorial.org\/sql-right-join\/\"\n\t\t\t\tdata-post-title=\"SQL RIGHT JOIN\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"3258\"\n\t\t\t\tdata-post-url=\"https:\/\/www.sqltutorial.org\/sql-right-join\/\"\n\t\t\t\tdata-post-title=\"SQL RIGHT JOIN\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you&#8217;ll learn how to use the SQL RIGHT JOIN clause in a SELECT statement to merge rows from two tables.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":18,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3258","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SQL RIGHT JOIN<\/title>\n<meta name=\"description\" content=\"In this tutorial, you&#039;ll learn how to use the SQL RIGHT JOIN clause in a SELECT statement to merge rows from two tables.\" \/>\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.sqltutorial.org\/sql-right-join\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL RIGHT JOIN\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, you&#039;ll learn how to use the SQL RIGHT JOIN clause in a SELECT statement to merge rows from two tables.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqltutorial.org\/sql-right-join\/\" \/>\n<meta property=\"og:site_name\" content=\"SQL Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-09T03:18:37+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqltutorial.org\/sql-right-join\/\",\"url\":\"https:\/\/www.sqltutorial.org\/sql-right-join\/\",\"name\":\"SQL RIGHT JOIN\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqltutorial.org\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.sqltutorial.org\/sql-right-join\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.sqltutorial.org\/sql-right-join\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2025\/02\/x-table.svg\",\"datePublished\":\"2025-02-05T14:22:05+00:00\",\"dateModified\":\"2025-02-09T03:18:37+00:00\",\"description\":\"In this tutorial, you'll learn how to use the SQL RIGHT JOIN clause in a SELECT statement to merge rows from two tables.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.sqltutorial.org\/sql-right-join\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqltutorial.org\/sql-right-join\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqltutorial.org\/sql-right-join\/#primaryimage\",\"url\":\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2025\/02\/x-table.svg\",\"contentUrl\":\"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2025\/02\/x-table.svg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqltutorial.org\/sql-right-join\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqltutorial.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL RIGHT JOIN\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqltutorial.org\/#website\",\"url\":\"https:\/\/www.sqltutorial.org\/\",\"name\":\"SQL Tutorial\",\"description\":\"An Interactive SQL Tutorial\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqltutorial.org\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQL RIGHT JOIN","description":"In this tutorial, you'll learn how to use the SQL RIGHT JOIN clause in a SELECT statement to merge rows from two tables.","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.sqltutorial.org\/sql-right-join\/","og_locale":"en_US","og_type":"article","og_title":"SQL RIGHT JOIN","og_description":"In this tutorial, you'll learn how to use the SQL RIGHT JOIN clause in a SELECT statement to merge rows from two tables.","og_url":"https:\/\/www.sqltutorial.org\/sql-right-join\/","og_site_name":"SQL Tutorial","article_modified_time":"2025-02-09T03:18:37+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqltutorial.org\/sql-right-join\/","url":"https:\/\/www.sqltutorial.org\/sql-right-join\/","name":"SQL RIGHT JOIN","isPartOf":{"@id":"https:\/\/www.sqltutorial.org\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sqltutorial.org\/sql-right-join\/#primaryimage"},"image":{"@id":"https:\/\/www.sqltutorial.org\/sql-right-join\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2025\/02\/x-table.svg","datePublished":"2025-02-05T14:22:05+00:00","dateModified":"2025-02-09T03:18:37+00:00","description":"In this tutorial, you'll learn how to use the SQL RIGHT JOIN clause in a SELECT statement to merge rows from two tables.","breadcrumb":{"@id":"https:\/\/www.sqltutorial.org\/sql-right-join\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqltutorial.org\/sql-right-join\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqltutorial.org\/sql-right-join\/#primaryimage","url":"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2025\/02\/x-table.svg","contentUrl":"https:\/\/www.sqltutorial.org\/wp-content\/uploads\/2025\/02\/x-table.svg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqltutorial.org\/sql-right-join\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqltutorial.org\/"},{"@type":"ListItem","position":2,"name":"SQL RIGHT JOIN"}]},{"@type":"WebSite","@id":"https:\/\/www.sqltutorial.org\/#website","url":"https:\/\/www.sqltutorial.org\/","name":"SQL Tutorial","description":"An Interactive SQL Tutorial","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqltutorial.org\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.sqltutorial.org\/wp-json\/wp\/v2\/pages\/3258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqltutorial.org\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.sqltutorial.org\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqltutorial.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqltutorial.org\/wp-json\/wp\/v2\/comments?post=3258"}],"version-history":[{"count":0,"href":"https:\/\/www.sqltutorial.org\/wp-json\/wp\/v2\/pages\/3258\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqltutorial.org\/wp-json\/wp\/v2\/media?parent=3258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}