<?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 Ravichandran harini on Medium]]></title>
        <description><![CDATA[Stories by Ravichandran harini on Medium]]></description>
        <link>https://medium.com/@ravichandranharini65?source=rss-e4e2b11a7ad6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0NpMfGqPUH1KyOeDkGGWIA.jpeg</url>
            <title>Stories by Ravichandran harini on Medium</title>
            <link>https://medium.com/@ravichandranharini65?source=rss-e4e2b11a7ad6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:30:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ravichandranharini65/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[Schema refinement]]></title>
            <link>https://medium.com/@ravichandranharini65/schema-refinement-09414f7db52d?source=rss-e4e2b11a7ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/09414f7db52d</guid>
            <dc:creator><![CDATA[Ravichandran harini]]></dc:creator>
            <pubDate>Sun, 08 Mar 2026 01:29:55 GMT</pubDate>
            <atom:updated>2026-03-08T01:29:55.164Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hi there! 👋<br>Let’s explore SQL Schema Refinement and why it’s important in database design. We’ll keep it simple and easy to understand.</h3><h3>SQL Database Design steps</h3><p>The process of designing a database usually follows these steps:</p><ol><li><strong>Requirement Analysis</strong> — Understand what data is needed, the objects, relationships, transactions, technical limitations, and constraints.</li><li><strong>Conceptual Database Design</strong> — Convert the high-level description into an <strong>ER (Entity-Relationship) model</strong>.</li><li><strong>Logical Database Design</strong> — Transform the ER diagram into a <strong>database schema</strong>.</li><li><strong>Schema Refinement</strong> — Improve the schema to remove anomalies and ensure consistency.</li><li><strong>Physical Database Design</strong> — Decide how data is stored physically on the system.</li><li><strong>Security Design</strong> — Define access control, encryption, and other security measures.</li></ol><p>We will focus on <strong>Schema Refinement</strong> in this article.</p><h3>What is Schema Refinement?</h3><p>After converting an ER diagram into a database schema, you may encounter <strong>data anomalies</strong>. These are problems that can occur when inserting, deleting, or updating data. Schema refinement helps fix these issues.</p><h3>Common Data Anomalies</h3><ol><li><strong>Insertion Anomaly</strong></li></ol><ul><li>Example: Adding a new employee in the Emp table might require repeating the department ID and details.</li><li>Problem: Adding a new department without employees can result in a null employee ID, which is invalid.</li></ul><ol><li><strong>Deletion Anomaly</strong></li></ol><ul><li>Example: If Amal is the only employee in a department, deleting Amal’s record also deletes the department details.</li></ul><ol><li><strong>Update Anomaly</strong></li></ol><ul><li>Example: Changing a department’s location requires updating all employee records in that department. Missing any record leads to inconsistent data.</li></ul><h3>How to Solve Anomalies</h3><p>To avoid these anomalies, we <strong>split tables</strong> into smaller, related tables. This process is part of <strong>normalization</strong>, which ensures:</p><ul><li>Data consistency</li><li>Reduced redundancy</li><li>Easier maintenance</li></ul><h3>Splitting Tables: Don’t Do It Randomly</h3><p>When we <strong>split tables</strong> during schema refinement, we <strong>cannot do it randomly</strong>. There are important rules to follow to make sure we don’t lose data or dependencies.</p><p>The two main properties to consider are:</p><h3>1. Lossless Join Property</h3><ul><li><strong>Meaning:</strong> After splitting a table into smaller tables, we must be able to <strong>join them back</strong> to get the original table <strong>without losing any data</strong>.</li><li><strong>Why it matters:</strong> If this property is not maintained, joining the tables later may produce missing or extra rows.</li></ul><h3>2. Dependency Preservation</h3><ul><li><strong>Meaning:</strong> After splitting the tables, we should still be able to enforce <strong>all functional dependencies</strong> without needing to join tables unnecessarily.</li><li><strong>Example:</strong></li><li>Original table: Course(CourseID, CourseName, Instructor)If we split into:</li></ul><p>CourseInfo(CourseID, CourseName)</p><p>CourseInstructor(CourseID, Instructor)</p><ul><li>We can <strong>still figure out which CourseID belongs to which CourseName</strong> or which Instructor teaches which course.</li></ul><h3>Finding Key Attributes Using Functional Dependencies</h3><p>To determine <strong>key attributes</strong> of a relation, we use <strong>functional dependencies (FDs)</strong>. There are some important rules, called <strong>Armstrong’s Axioms</strong>:</p><h3>1. Reflexivity Rule</h3><ul><li>If <strong>Y</strong> is a subset of <strong>X</strong>, then <strong>X → Y</strong></li><li>Example: If X = {A, B} and Y = {A}, then {A} → {A,B} is true.</li></ul><h3>2. Augmentation Rule</h3><ul><li>If <strong>X → Y</strong>, then <strong>XZ → YZ</strong> for any Z.</li><li>Example: If A → B, then {A, C} → {B, C} is also true.</li><li><strong>Tip:</strong> If you change one side of the dependency, the other side must <strong>change accordingly</strong>.</li></ul><h3>3. Transitivity Rule</h3><ul><li>If <strong>X → Y</strong> and <strong>Y → Z</strong>, then <strong>X → Z</strong>.</li><li>Example: If A → C and C → D, then A → D.</li></ul><h3>1. Union (Additivity) Rule</h3><ul><li>If <strong>X → Y</strong> and <strong>X → Z</strong>, then we can <strong>combine them</strong> into:<br><strong>X → YZ</strong></li></ul><p>Example:</p><ul><li>Given: A → B and A → C</li><li>Using union: A → BC</li></ul><h3>2. Decomposition Rule</h3><ul><li>This is the <strong>opposite of Union</strong></li><li>If <strong>X → YZ</strong>, we can <strong>split it</strong> into two separate dependencies:</li><li>X → Y and X → Z</li></ul><p>Example:</p><ul><li>Given: A → BC</li><li>Using decomposition: A → B and A → C</li></ul><h3>Normal Forms and Normalization</h3><p><strong>Normalization</strong> is the process of <strong>reducing anomalies</strong> in a database by organizing tables properly. The result is a set of tables that minimize redundancy and maintain data consistency.</p><h3>Main Normal Forms</h3><p><strong>First Normal Form (1NF)</strong></p><ul><li>Ensures that all attributes are <strong>atomic</strong> (indivisible).</li><li>Removes <strong>repeating groups</strong> or multi-valued attributes</li></ul><p><strong>Second Normal Form (2NF)</strong></p><ul><li>Builds on 1NF.</li><li>Ensures that <strong>every non-key attribute is fully functionally dependent on the primary key</strong>.</li><li>Removes <strong>partial dependency</strong>.</li></ul><p><strong>Third Normal Form (3NF)</strong></p><ul><li>Builds on 2NF.</li><li>Ensures that <strong>no non-key attribute depends on another non-key attribute</strong>.</li><li>Removes <strong>transitive dependency</strong>.</li></ul><p><strong>Boyce-Codd Normal Form (BCNF)</strong></p><ul><li>Stronger version of 3NF.</li><li>Ensures that <strong>every determinant is a candidate key</strong>.</li><li>Helps remove anomalies that 3NF might not cover in some rare cases.</li></ul><p><strong>Memory Trick (1NF → BCNF):</strong></p><ul><li><strong>1NF:</strong> Atomic</li><li><strong>2NF:</strong> Full dependency</li><li><strong>3NF:</strong> No transitive</li><li><strong>BCNF:</strong> Determinant = key</li></ul><p>Database design is not just about creating tables — it’s about ensuring data is <strong>consistent, reliable, and free from anomalies</strong>. Schema refinement and normalization help achieve this by applying rules step by step: <strong>1NF (atomic data), 2NF (full dependency), 3NF (no transitive dependency), and BCNF (every determinant is a key)</strong>. By following these principles, we can build databases that are <strong>efficient, easy to maintain, and free from insertion, deletion, and update problems</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=09414f7db52d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sequence diagram]]></title>
            <link>https://medium.com/@ravichandranharini65/sequence-diagram-7e2fec2b6516?source=rss-e4e2b11a7ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e2fec2b6516</guid>
            <dc:creator><![CDATA[Ravichandran harini]]></dc:creator>
            <pubDate>Sun, 08 Mar 2026 01:28:27 GMT</pubDate>
            <atom:updated>2026-03-08T01:28:27.748Z</atom:updated>
            <content:encoded><![CDATA[<p>In software engineering, a <strong>sequence diagram</strong> is one of the most important interaction diagrams used in the behavioral model. A behavioral model explains how the system behaves in response to events, and we represent this using interaction diagrams. Interaction diagrams are of two main types: <strong>sequence diagrams</strong> and <strong>communication diagrams</strong>. A sequence diagram shows the <strong>time-ordered interaction</strong> between objects and actors, whereas a communication diagram focuses on the participants in the system and their collaborations.</p><p>Interaction diagrams are important because they help us <strong>understand object collaboration</strong>, <strong>validate requirements</strong>, <strong>refine design</strong>, provide a <strong>time-sequenced view of interactions</strong>, and act as a <strong>bridge between use cases and design</strong>.</p><p>The <strong>main components</strong> of a sequence diagram include:</p><ol><li><strong>Frame Rectangle</strong> — represents the boundary of the diagram</li><li><strong>Participants</strong> — which include actors and objects.</li></ol><p><strong>Actors</strong> are external users, hardware, or services represented by a stick figure.</p><p><strong>Objects</strong> are instances of classes represented by rectangles. Objects can be of two types:</p><ul><li><strong>Named Object</strong> — written as objectName : ClassName</li><li><strong>Anonymous Object</strong> — written as : ClassName (without a specific name).</li></ul><p><strong>Lifeline</strong> — shown as a vertical dotted line that represents the existence of an object or actor during the interaction. An <strong>activation bar</strong> (a thin vertical rectangle) indicates the time when an object is active.</p><p><strong>Messages</strong> — arrows that illustrate communication between objects. The main types are:</p><p><strong>Synchronous message</strong> — the sender waits for a response (solid arrow).</p><p><strong>Asynchronous message</strong> — the sender does not wait (open arrow).</p><p><strong>Return message</strong> — shown as a dashed arrow.</p><p><strong>Self-message</strong> — when an object calls itself.</p><ol><li><strong>Stereotypes</strong> — which describe the roles of objects:</li></ol><ul><li><strong>Boundary object</strong> (&lt;&lt;boundary&gt;&gt;) connects the actor to the system.</li><li><strong>Controller object</strong> (&lt;&lt;controller&gt;&gt;) manages communication between objects.</li><li><strong>Entity object</strong> (&lt;&lt;entity&gt;&gt;) represents information and behavior within the application.</li></ul><ol><li><strong>Fragments</strong> — used to structure complex scenarios:</li></ol><ul><li><strong>Reference fragment (ref)</strong> — refers to another diagram, useful for splitting large diagrams.</li><li><strong>Alternative fragment (alt)</strong> — represents choices based on guard conditions [ ].</li><li><strong>Optional fragment (opt)</strong> — represents an action that happens only if a condition is true.</li><li><strong>Loop fragment</strong> — represents repetition, often with minimum and maximum conditions.</li></ul><p>When evaluating a sequence diagram, it is important to check whether all actors and objects are included, whether the messages are well-ordered and logical, whether the diagram is readable and reusable, and whether it reflects the real-world scenario correctly. Mistakes such as missing messages, wrong logic, or poor readability may lead to costly errors in the system design.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e2fec2b6516" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When Our Heroes Grow Old]]></title>
            <link>https://medium.com/@ravichandranharini65/when-our-heroes-grow-old-3386b2c0c3bb?source=rss-e4e2b11a7ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3386b2c0c3bb</guid>
            <dc:creator><![CDATA[Ravichandran harini]]></dc:creator>
            <pubDate>Sat, 04 Oct 2025 14:41:18 GMT</pubDate>
            <atom:updated>2025-10-04T14:41:18.484Z</atom:updated>
            <content:encoded><![CDATA[<p>Having our parents is the most beautiful gift, yet watching them grow old quietly breaks our hearts — because one day, we’ll have to walk this world without them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3386b2c0c3bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[life journey]]></title>
            <link>https://medium.com/@ravichandranharini65/life-journey-c4625e1c0a21?source=rss-e4e2b11a7ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4625e1c0a21</guid>
            <dc:creator><![CDATA[Ravichandran harini]]></dc:creator>
            <pubDate>Sat, 20 Sep 2025 15:21:59 GMT</pubDate>
            <atom:updated>2025-09-20T15:21:59.616Z</atom:updated>
            <content:encoded><![CDATA[<p>I am here to share a part of my life journey. When you feel down, maybe my words will give you the strength to rise again.</p><p>The first step is to challenge yourself. Start by breaking your bad habits. It will not be easy, but every challenge you face has the power to change you. Remember, nothing changes until you challenge yourself.</p><p>When it feels too difficult, try doing something that refreshes your mind and soul. Play chess, read a book, listen to an audiobook, draw, or paint something new with bright colors. It doesn’t matter if it looks perfect or not — what matters is that you express yourself. Creativity heals.</p><p>You can also go outside, spend time with your friends, or simply enjoy the peaceful beauty of nature. Don’t overload yourself with stress. Slowly, you will find that you can recover from negativity and create a brighter version of yourself.</p><p>Life is a journey of ups and downs. Challenges are not here to stop us — they are here to shape us. With every new habit, every creative step, and every positive choice, you move closer to becoming the best version of yourself.</p><p>Today, I have decided to start with new things, and this article is the first step in that direction.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4625e1c0a21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Red Car Theory]]></title>
            <link>https://medium.com/@ravichandranharini65/red-car-theory-dd1a2becbbfe?source=rss-e4e2b11a7ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd1a2becbbfe</guid>
            <dc:creator><![CDATA[Ravichandran harini]]></dc:creator>
            <pubDate>Fri, 19 Sep 2025 13:15:08 GMT</pubDate>
            <atom:updated>2025-09-19T13:15:08.922Z</atom:updated>
            <content:encoded><![CDATA[<p>The <strong>Red Car Theory</strong> says that we start to notice more of what we focus on. For example, if you buy a red car, you will suddenly see red cars everywhere, even though the number of red cars did not really increase. This happens because our mind pays more attention to what is important to us. The same rule applies in life: if you focus on problems, you will see more problems, but if you focus on good things, you will find more reasons to be happy. As the saying goes, <em>“What you focus on grows.”</em> So, choose to focus on positivity, dreams, and opportunities. Remember, <em>“Your mind is like a magnet — it attracts what you think about most.”</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F-ta8UiO0anQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fshorts%2F-ta8UiO0anQ%3Fsi%3DVDn6r5oQC3LE5ieo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F-ta8UiO0anQ%2Fhq2.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c83d32c2e2e79a45e3a013bda3b4c63/href">https://medium.com/media/4c83d32c2e2e79a45e3a013bda3b4c63/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd1a2becbbfe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[life journey]]></title>
            <link>https://medium.com/@ravichandranharini65/life-journey-8c864565b6b7?source=rss-e4e2b11a7ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c864565b6b7</guid>
            <dc:creator><![CDATA[Ravichandran harini]]></dc:creator>
            <pubDate>Fri, 19 Sep 2025 03:51:02 GMT</pubDate>
            <atom:updated>2025-09-19T03:51:02.583Z</atom:updated>
            <content:encoded><![CDATA[<p>In life, some people belong to us for specific reasons. They may come to us when they need help, but when we need them, they might not be there. This teaches us an important lesson: we must learn to stand on our own. Being independent and relying on ourselves shapes who we truly are. Those who remain by our side, supporting us genuinely, are the ones who truly matter in our journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*1CPhQZ6LVfHoTfAE.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c864565b6b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Journey of Life Lessons]]></title>
            <link>https://medium.com/@ravichandranharini65/the-journey-of-life-lessons-ac9fc9021aa1?source=rss-e4e2b11a7ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac9fc9021aa1</guid>
            <dc:creator><![CDATA[Ravichandran harini]]></dc:creator>
            <pubDate>Thu, 18 Sep 2025 13:40:10 GMT</pubDate>
            <atom:updated>2025-09-18T13:40:10.035Z</atom:updated>
            <content:encoded><![CDATA[<p>Sometimes I realize that even when things seem to be going well, unexpected situations can happen. In those moments, I understand who truly stands by my side. Before, I used to think that helping others was the greatest thing. But then I realized that while I was helping them, they were moving forward and growing in their own way. From that moment, I decided that I would also focus on growing by myself. Still, I believe that helping others is meaningful, but I will never forget to value my own growth too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac9fc9021aa1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>