<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Akash Chawan</title>
    <description>The latest articles on DEV Community by Akash Chawan (@akash_chawan).</description>
    <link>https://dev.to/akash_chawan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1646669%2Fa6bc5815-a3df-4f00-934c-e47daa15bd18.png</url>
      <title>DEV Community: Akash Chawan</title>
      <link>https://dev.to/akash_chawan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/akash_chawan"/>
    <language>en</language>
    <item>
      <title>How to join tables data already exist in table</title>
      <dc:creator>Akash Chawan</dc:creator>
      <pubDate>Tue, 18 Jun 2024 16:19:57 +0000</pubDate>
      <link>https://dev.to/akash_chawan/how-to-join-tables-data-already-exist-in-table-2j80</link>
      <guid>https://dev.to/akash_chawan/how-to-join-tables-data-already-exist-in-table-2j80</guid>
      <description>&lt;p&gt;getting below error&lt;/p&gt;

&lt;p&gt;[Nest] 15320  - 18/06/2024, 9:48:15 pm   ERROR [ExceptionHandler] Cannot add or update a child row: a foreign key constraint fails (&lt;code&gt;shipping&lt;/code&gt;.&lt;code&gt;#sql-220c_403&lt;/code&gt;, CONSTRAINT &lt;code&gt;FK_ce723b9c7f1fbc4a9a1cf4d8865&lt;/code&gt; FOREIGN KEY (&lt;code&gt;present_rank&lt;/code&gt;) REFERENCES &lt;code&gt;rank&lt;/code&gt; (&lt;code&gt;id&lt;/code&gt;) ON DELETE NO ACTION ON UPDATE NO ACTION)&lt;br&gt;
QueryFailedError: Cannot add or update a child row: a foreign key constraint fails (&lt;code&gt;shipping&lt;/code&gt;.&lt;code&gt;#sql-220c_403&lt;/code&gt;, CONSTRAINT &lt;code&gt;FK_ce723b9c7f1fbc4a9a1cf4d8865&lt;/code&gt; FOREIGN KEY (&lt;code&gt;present_rank&lt;/code&gt;) REFERENCES &lt;code&gt;rank&lt;/code&gt; (&lt;code&gt;id&lt;/code&gt;) ON DELETE NO ACTION ON UPDATE NO ACTION)&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@Column()
present_rank: string;

@OneToOne(() =&amp;gt; Rank,rank=&amp;gt;rank.id)
@JoinColumn({ name: 'present_rank' })
rank: Rank;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
    </item>
  </channel>
</rss>
