<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Piyush Kulkarni on Medium]]></title>
        <description><![CDATA[Stories by Piyush Kulkarni on Medium]]></description>
        <link>https://medium.com/@piyush-kulkarni?source=rss-e0915f4594a4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*F_96yeCwpYpulrKv</url>
            <title>Stories by Piyush Kulkarni on Medium</title>
            <link>https://medium.com/@piyush-kulkarni?source=rss-e0915f4594a4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 06:19:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@piyush-kulkarni/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Insights from ‘Financial Intelligence' by Joe + Karen.]]></title>
            <link>https://piyush-kulkarni.medium.com/insights-from-financial-intelligence-by-joe-karen-b16cc5977ec0?source=rss-e0915f4594a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b16cc5977ec0</guid>
            <category><![CDATA[accounting]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[net-profit]]></category>
            <category><![CDATA[revenue]]></category>
            <category><![CDATA[sales]]></category>
            <dc:creator><![CDATA[Piyush Kulkarni]]></dc:creator>
            <pubDate>Tue, 31 Jan 2023 09:38:01 GMT</pubDate>
            <atom:updated>2023-01-31T09:40:58.944Z</atom:updated>
            <content:encoded><![CDATA[<p>Insights from ‘Financial Intelligence&#39; by Joe + Karen.</p><p>You might be surprised to learn that numbers could lie.</p><ol><li>Accounting &amp; finance are not reality, they are a reflection of reality. The accuracy of that reflection depends on the ability of accountants &amp; finance professionals to make reasonable assumptions &amp; to calculate reasonable estimates. This leads to bias in numbers.</li></ol><p>2. When is the revenue or sales recorded? Choose the correct one from the following 4 options:</p><p>A. When a contract is signed.</p><p>B. When the product or service is delivered.</p><p>C. When the invoice is sent out.</p><p>D. When the bill is paid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KKEN7TcfhwAAK6Y07BZTFg.jpeg" /><figcaption>Find the answer in the book for yourself.</figcaption></figure><p>If you sell a product with 12 months maintenance, how much of the Sales or Revenue should be recorded on the books of each month?</p><p>‘When is a sale a sale?’ That’s a source of many fraud cases.</p><p>To be continued.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b16cc5977ec0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Normalization (5 NF)]]></title>
            <link>https://piyush-kulkarni.medium.com/normalization-5-nf-9ab25756b112?source=rss-e0915f4594a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ab25756b112</guid>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[rdbms]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[normalization]]></category>
            <dc:creator><![CDATA[Piyush Kulkarni]]></dc:creator>
            <pubDate>Tue, 22 Mar 2022 09:10:46 GMT</pubDate>
            <atom:updated>2022-03-22T09:10:46.486Z</atom:updated>
            <content:encoded><![CDATA[<p>We have seen conditions for 4NF in the last article. Now let’s move on to 5NF.</p><p>Let’s say, different brands make different flavors of ice cream.</p><blockquote><strong>Brand A : </strong>Vanilla and Strawberry flavor</blockquote><blockquote><strong>Brand B : </strong>Chocolate, Vanilla and Strawberry flavor</blockquote><blockquote><strong>Brand C :</strong> Strawberry and Chocolate flavor</blockquote><p><em>Ron likes Brand A and Brand B’s ice cream. He likes vanilla and chocolate flavors only.</em></p><p><em>Sam likes Brand B and C. He likes vanilla and strawberry flavors only.</em></p><p>How would we make a database with this information? What if we make a table as shown below? Is there a scope of any anomaly?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/0*JYhgvxZPcl9J0bED.png" /></figure><p>If Sam starts liking Brand A then we’ll need to add this information into the database. How would we do that? We’ll need to add Sam’s favorite flavors which Brand A produces into the database. This implies, there is a possibility that an Update Anomaly can occur if we don’t add the right flavors that Sam likes and is produced by Brand A.</p><blockquote><strong>5NF Rule:</strong> Data should be in 4NF form and data can’t be thought of as a result of joins of two or more tables.</blockquote><p><strong>How can we add data in 5NF?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/0*kpaRGY_jq0xzcjTs.png" /><figcaption>5 NF</figcaption></figure><p>How can we represent the same data in 5NF?</p><p>Writer: <a href="https://www.linkedin.com/in/piyush-kulkarni-12502480/">Piyush Kulkarni</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ab25756b112" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Normalization (4NF)]]></title>
            <link>https://piyush-kulkarni.medium.com/normalization-4nf-5aa03662ca7f?source=rss-e0915f4594a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5aa03662ca7f</guid>
            <category><![CDATA[4nf]]></category>
            <category><![CDATA[primary-key-sql]]></category>
            <category><![CDATA[rdbms]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[normalization]]></category>
            <dc:creator><![CDATA[Piyush Kulkarni]]></dc:creator>
            <pubDate>Tue, 22 Mar 2022 09:06:36 GMT</pubDate>
            <atom:updated>2022-03-22T09:06:36.598Z</atom:updated>
            <content:encoded><![CDATA[<p>We have seen conditions for 3NF in the last article. Now let’s move on to 4NF.</p><blockquote><strong>Model #1</strong></blockquote><blockquote><strong>Color:</strong> Yellow, Green</blockquote><blockquote><strong>Shape:</strong> Circle, Square</blockquote><blockquote><strong>Model #2</strong></blockquote><blockquote><strong>Color:</strong> Blue</blockquote><blockquote><strong>Shape:</strong> Triangle, Square</blockquote><p>Here, we have 2 models, and we know their color and shapes as well. We now need to think about how we can design a database to store this information.</p><p>Let us make a table with this information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/0*ExcPL9ow56vr2SoI.png" /></figure><p>Model No, Color and Shape together, has formed the <strong>primary key</strong>.</p><p>Though this data is in 3NF form, there are still chances of anomalies.</p><p>Ex. If model no. 2 also is available in green color, 2 rows will need to be added, but while updating the database if only one row gets added then it will lead to a logical inconsistency.</p><p>In this example, multivalued dependency is present.</p><blockquote><em>{model} ↠{Color}</em></blockquote><blockquote><em>{model} ↠{shape}</em></blockquote><blockquote><strong><em>4NF rule</em></strong><em>: If there are multivalued dependencies, attributes must depend on the entire primary key.</em></blockquote><p>We can store the data in 4NF form as here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/0*erb8lekzQUrQ9XDw.png" /><figcaption>4 NF</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/0*Y98B3wLlvcbEglEU.png" /><figcaption>4 NF</figcaption></figure><p>This way of storing the data now complies with 4NF rules. .</p><p>Let’s see 5NF in the next post.</p><p>Writer: <a href="https://www.linkedin.com/in/piyush-kulkarni-12502480/">Piyush Kulkarni</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5aa03662ca7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Normalization (3NF)]]></title>
            <link>https://piyush-kulkarni.medium.com/normalization-3nf-3252b93414d3?source=rss-e0915f4594a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/3252b93414d3</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[3nf]]></category>
            <category><![CDATA[rdbms]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Piyush Kulkarni]]></dc:creator>
            <pubDate>Mon, 21 Mar 2022 21:13:53 GMT</pubDate>
            <atom:updated>2022-03-21T21:13:53.354Z</atom:updated>
            <content:encoded><![CDATA[<p>We examined conditions for 2 NF in the last post. Let’s move on to 3 NF, also known as Boyce-Code form.</p><p>Here identifying <em>transitive dependency</em> is vital.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*gdvYtS_o9u2y3rSxN4mrrA.png" /><figcaption><strong>Logical Inconsistency</strong></figcaption></figure><p>Although the table is already in 2 NF but still there is a possibility of anomaly. A person of age 5 can either be in Small or Medium age group. Otherwise, it’s a <strong><em>logical inconsistency</em></strong>.</p><p>That’s why usually it’s recommended to keep the database at least in 3 NF form. Higher forms are rarely observed in practice.</p><p>Age group actually depends directly on age. The primary key attribute name is not determining the age group.</p><p>{ Name } ⤍ { Age } ⤍ { Age group }</p><p>This is the transitive dependency and it violates the 3 NF.</p><p>3 NF Rule: The data has to be in 2 NF and every attribute should depend only on Key Attribute.</p><p>How would a 3 NF look like?</p><p>Make sure to remove all the <strong><em>transitive dependencies.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*wO0lvFyyTXmLwDkcYnC0KQ.png" /><figcaption><strong>3 NF</strong></figcaption></figure><p>Now data complies with 2 NF as well as 3 NF.</p><p>Let’s go through 4 NF &amp; 5 NF the next time.</p><p>Writer: <a href="https://www.linkedin.com/in/piyush-kulkarni-12502480/">Piyush Kulkarni</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3252b93414d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Normalization ( 2 NF)]]></title>
            <link>https://piyush-kulkarni.medium.com/normalization-2-nf-a62eed579161?source=rss-e0915f4594a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/a62eed579161</guid>
            <category><![CDATA[normalization]]></category>
            <category><![CDATA[primary-key-sql]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[rdbms]]></category>
            <category><![CDATA[dbms]]></category>
            <dc:creator><![CDATA[Piyush Kulkarni]]></dc:creator>
            <pubDate>Fri, 18 Mar 2022 21:37:21 GMT</pubDate>
            <atom:updated>2022-03-18T21:37:21.153Z</atom:updated>
            <content:encoded><![CDATA[<p>We talked about 1NF in the previous post.</p><p>We need to understand <strong><em>Functional Dependencies</em></strong> first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*4AnaklnYM8h97VngLM3AgA.png" /><figcaption>Not in 2 NF</figcaption></figure><p>There are many Rons across many departments. That’s why Name and Dept together can form a Primary Key here. Key attributes are Name &amp; Dept. Age and Dept Head are non-key attributes.</p><p>Functional Dependency :</p><p>{ Name ,Dept } ⤍ Age</p><p>Just Name or Dept is not enough to determine age. Together Name &amp; Dept determines one definite value of Age. That’s <strong><em>functional dependency.</em></strong></p><p>Age is dependent on the entire key.</p><blockquote>2 NF Rule: Data is already on 1 NF form and additionally, all non key attributes must be functionally dependent on entire key (not partial key).</blockquote><p>{ Dept } ⤍ Dept Head</p><p>Dept Head is not dependent on the entire key, but only partial key. That’s a violation of 2 NF form.</p><p>What could bring it into 2 NF form?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*Jg2DpX_xx_qRHll7DJvAFg.png" /><figcaption>2 NF</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*WlY4ZLPokEwdPNzw0y8dYw.png" /><figcaption>2 NF</figcaption></figure><blockquote>{ Name, Dept } ⤍ age</blockquote><blockquote>{ Dept } ⤍ Dept Head</blockquote><p>Now all non-key attributes depend on entire key attributes.</p><p>This complies with 2 NF form.</p><p>Writer: <a href="https://www.linkedin.com/in/piyush-kulkarni-12502480/">Piyush Kulkarni</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a62eed579161" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Normalization (1 NF )]]></title>
            <link>https://piyush-kulkarni.medium.com/normalization-1-nf-1a636cd42a4b?source=rss-e0915f4594a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a636cd42a4b</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[dbms]]></category>
            <category><![CDATA[rdbms]]></category>
            <category><![CDATA[database-design]]></category>
            <category><![CDATA[1nf]]></category>
            <dc:creator><![CDATA[Piyush Kulkarni]]></dc:creator>
            <pubDate>Fri, 18 Mar 2022 19:42:31 GMT</pubDate>
            <atom:updated>2022-03-18T19:43:38.427Z</atom:updated>
            <content:encoded><![CDATA[<p>We saw<a href="https://piyush-kulkarni.medium.com/database-anomalies-5a0cd437f368"> the anomalies</a> that could sweep in a design, making to a bad data base design. Let’s see what we can do to avoid them or at least reduce the chances.</p><p>There are Normal forms ranging from 1 NF to 5 NF ensuring higher safety levels.</p><blockquote><em>First rule:</em> Every table has to have a Primary Key.</blockquote><p>Primary Key would imply that the column or columns that form the Primary Key can’t have any NULL value across any of its records and all values are unique.</p><p>Multiple columns together can be assigned a Primary Key.</p><blockquote><em>Second rule:</em> In a column, don’t keep mixed info.</blockquote><p>Ex: Don’t keep Birth Date and Name just in one column together.</p><blockquote><em>Third Rule:</em> Don’t repeat the same type of info groups.</blockquote><p>Ex: Ram got 5 $, 10 € and 500 ₹.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*vp80K5PKZcz3b9wSSUM-Lg.png" /><figcaption>Not in 1 NF</figcaption></figure><p>Currency is repeating in every row and violates the 1 NF rule.</p><p>How do we make it comply with 1 NF?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*De0Dd1AiGnJDLCtGK3MBow.png" /><figcaption>1 NF</figcaption></figure><p>Let’s examine 2 NF to 5 NF the next time!</p><p>Written by: <a href="https://www.linkedin.com/in/piyush-kulkarni-12502480/">Piyush Kulkarni</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a636cd42a4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Database Anomalies]]></title>
            <link>https://piyush-kulkarni.medium.com/database-anomalies-5a0cd437f368?source=rss-e0915f4594a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a0cd437f368</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[rdbms]]></category>
            <category><![CDATA[database-design]]></category>
            <category><![CDATA[normalization]]></category>
            <dc:creator><![CDATA[Piyush Kulkarni]]></dc:creator>
            <pubDate>Fri, 18 Mar 2022 19:11:27 GMT</pubDate>
            <atom:updated>2022-03-18T21:56:42.113Z</atom:updated>
            <content:encoded><![CDATA[<p><em>If you want the same concepts explained in </em><a href="https://marathit.info/%E0%A4%A1%E0%A5%87%E0%A4%9F%E0%A4%BE%E0%A4%AC%E0%A5%87%E0%A4%B8-%E0%A4%85-%E0%A5%85%E0%A4%A8%E0%A5%85%E0%A4%AE%E0%A4%B2%E0%A4%BF%E0%A4%9C-a6c22e287936"><em>Marathi</em></a><em>, its here.</em></p><p>In order to design a good database, we need to learn some rules in order to avoid anomalies.</p><p>Typically, following anomalies are often found.</p><blockquote>Insertion anomaly</blockquote><blockquote>Update anomaly</blockquote><blockquote>Deletion anomaly</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*HousUNV7wAuUZl316XLZfA.png" /><figcaption>What’s wrong with this table?</figcaption></figure><p>Here, rows are repeated, causing <strong><em>Redundancy</em></strong>.</p><p><strong>Update anomaly</strong></p><p>Let’s assume one person works just in one department at a time. Any employee changing a department would imply we need to update multiple rows. If one row stays, un-updated you will run into <strong><em>Logical Inconsistency</em></strong><em>.</em></p><p><strong>Deletion anomaly</strong></p><p>Say Project # 3 is completed and you want to remove the project from data base. Deleting the rows containing project 3 will also remove the other info like Dept and Name and the corresponding Emp ID. This will lead to <strong><em>Deletion Anomaly.</em></strong></p><p><strong>Insertion anomaly</strong></p><p>Let’s assume the table can’t be updated with NULL value in project #. Now any employee who is on-boarded but not assigned a project can not be stored here. Thus, leading to <strong>Insertion Anamoly.</strong></p><p>Then how do we avoid anomalies exactly?</p><p>Stay tuned for the next post!</p><p><a href="https://www.linkedin.com/in/piyush-kulkarni-12502480/">Piyush Kulkarni</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a0cd437f368" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why standardize the variables and how to interpret the standardized coefficients?]]></title>
            <link>https://piyush-kulkarni.medium.com/why-standardize-the-variables-and-how-to-interpret-the-standardized-coefficients-412947929?source=rss-e0915f4594a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/412947929</guid>
            <dc:creator><![CDATA[Piyush Kulkarni]]></dc:creator>
            <pubDate>Sat, 11 Dec 2021 20:01:26 GMT</pubDate>
            <atom:updated>2022-03-18T13:36:00.891Z</atom:updated>
            <content:encoded><![CDATA[<p>You can <a href="https://i4dible.thinkific.com/enroll/1719794?price_id=2266513">enroll here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qPodyPIphTbsaD2yYxsglQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=412947929" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Variabilty & R2]]></title>
            <link>https://piyush-kulkarni.medium.com/variabilty-r2-335ab8d7540b?source=rss-e0915f4594a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/335ab8d7540b</guid>
            <dc:creator><![CDATA[Piyush Kulkarni]]></dc:creator>
            <pubDate>Fri, 10 Dec 2021 21:43:43 GMT</pubDate>
            <atom:updated>2021-12-10T21:43:43.402Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j02ktpiNTBiHUPN-IgiEFA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vUji1WxGl8x1GVtKpZYnLQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=335ab8d7540b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CV]]></title>
            <link>https://piyush-kulkarni.medium.com/cv-f9064d6d570f?source=rss-e0915f4594a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9064d6d570f</guid>
            <category><![CDATA[cv-writing]]></category>
            <dc:creator><![CDATA[Piyush Kulkarni]]></dc:creator>
            <pubDate>Wed, 08 Dec 2021 13:37:24 GMT</pubDate>
            <atom:updated>2021-12-08T13:37:24.755Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JqJY0jfd3dSzy_MhXpIxXA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9064d6d570f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>