<?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: Saiful Islam</title>
    <description>The latest articles on DEV Community by Saiful Islam (@saiful00769).</description>
    <link>https://dev.to/saiful00769</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%2F696876%2Fdb87b519-07e6-4d12-8f30-02912345cd3c.png</url>
      <title>DEV Community: Saiful Islam</title>
      <link>https://dev.to/saiful00769</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/saiful00769"/>
    <language>en</language>
    <item>
      <title>i can not covert this query</title>
      <dc:creator>Saiful Islam</dc:creator>
      <pubDate>Tue, 31 Aug 2021 17:38:30 +0000</pubDate>
      <link>https://dev.to/saiful00769/i-can-not-covert-this-query-10bc</link>
      <guid>https://dev.to/saiful00769/i-can-not-covert-this-query-10bc</guid>
      <description>&lt;p&gt;SELECT s1.product_id,s1.totalstock,s2.totalstock as assign,s3.totalstock as warrenty,s4.totalstock as damage,s5.totalstock as missing,s6.totalstock as returnProduct  FROM stock_details as s &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        left JOIN (SELECT sum(s.quantity) as totalstock,s.product_id FROM stock_details as s WHERE s.status_type=1 GROUP BY s.product_id) as s1 ON s1.product_id = s.product_id
        left JOIN (SELECT sum(s.quantity) as totalstock,s.product_id FROM stock_details as s WHERE s.status_type=2 GROUP BY s.product_id) as s2 ON s2.product_id = s.product_id
        left JOIN (SELECT sum(s.quantity) as totalstock,s.product_id FROM stock_details as s WHERE s.status_type=3 GROUP BY s.product_id) as s3 ON s3.product_id = s.product_id
        left JOIN (SELECT sum(s.quantity) as totalstock,s.product_id FROM stock_details as s WHERE s.status_type=4 GROUP BY s.product_id) as s4 ON s4.product_id = s.product_id
        left JOIN (SELECT sum(s.quantity) as totalstock,s.product_id FROM stock_details as s WHERE s.status_type=5 GROUP BY s.product_id) as s5 ON s5.product_id = s.product_id
        left JOIN (SELECT sum(s.quantity) as totalstock,s.product_id FROM stock_details as s WHERE s.status_type=6 GROUP BY s.product_id) as s6 ON s6.product_id = s.product_id

        GROUP BY s.product_id
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

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