<?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 Sivalingam sivosan on Medium]]></title>
        <description><![CDATA[Stories by Sivalingam sivosan on Medium]]></description>
        <link>https://medium.com/@sivos311?source=rss-205622452b84------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*fYNZRkXn49NPGT9X</url>
            <title>Stories by Sivalingam sivosan on Medium</title>
            <link>https://medium.com/@sivos311?source=rss-205622452b84------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:43:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sivos311/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[Understanding the importance of keys in Relational Databases.]]></title>
            <link>https://medium.com/@sivos311/understanding-the-importance-of-keys-in-relational-databases-560310e7561f?source=rss-205622452b84------2</link>
            <guid isPermaLink="false">https://medium.com/p/560310e7561f</guid>
            <dc:creator><![CDATA[Sivalingam sivosan]]></dc:creator>
            <pubDate>Wed, 20 Sep 2023 17:34:04 GMT</pubDate>
            <atom:updated>2023-09-20T17:34:04.764Z</atom:updated>
            <content:encoded><![CDATA[<h3>INTRODUCTION:</h3><p>A Database Management System (DBMS) is a software system that is designed to manage and organize data in a structured manner. It allows users to create, modify, and query a database, as well as manage the security and access controls for that database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oYkWW0KiX6RrFu2m.png" /></figure><p>Relations are Two-Dimensional Tables. It is easy to implement and easy to simplification in the operations to manipulate the data. This is the most popular data model. It is simple to implement. It uses the primary key and secondary key to connect any two files.</p><p>Keys are one of the basic requirements of a relational database model. It is widely used to identify the tuples(rows) uniquely in the table. We also use keys to set up relations amongst various columns and tables of a relational database.</p><h3>Types of Keys in Relational Model</h3><h3><strong>1.Primary Key: The primary key is a unique identifier for each record in a database table. It ensures that no two records have the same value for this key, and is often used for indexing and maintaining data integrity.</strong></h3><p><strong>Characteristics of primary key:</strong></p><ul><li><strong>It is a unique key.</strong></li><li><strong>It can identify only one tuple (a record) at a time.</strong></li><li><strong>It has no duplicate values, it has unique values.</strong></li><li><strong>It cannot be NULL.</strong></li><li><strong>Primary keys are not necessarily to be a single column; more than one column can also be a primary key for a table.</strong></li></ul><p><strong>Example: Student table</strong></p><p>Student(STUD_NO, SNAME, ADDRESS, PHONE) ,</p><p>STUD_NO is a primary key.</p><h3>2.<strong>Foreign Key: A foreign key is a field in a database table t hat is used to establish a link between two tables. It typically reference the primary key of another table and enforces referential integrity.</strong></h3><p><strong>Characteristics of foreign key:</strong></p><ul><li>It is a key it acts as a primary key in one table and it acts as <br>secondary key in another table.</li><li>It combines two or more relations (tables) at a time.</li><li>They act as a cross-reference between the tables.</li></ul><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*1Cgbrk_6nNk3f2jJ.png" /><figcaption><em>Relation between Primary Key and Foreign Key</em></figcaption></figure><h3>3.<strong>Composite Key: A composite key is a key that consists of two or more columns in a database table. Together, these columns create a unique identifier for records, even if each column individually may not be unique.</strong></h3><p><strong>Characteristics of composite key:</strong></p><ul><li>It acts as a primary key if there is no primary key in a table</li><li>Two or more attributes are used together to make a composite key.</li><li>Different combinations of attributes may give different accuracy in terms of identifying the rows uniquely.</li></ul><h3>4.<strong>Super Key: A super key is a set of one or more attributes(columns) that can uniquely identify records within a table. It’s a broader concept than a primary key and can include more attributes than necessary for uniqueness.</strong></h3><p><strong>Characteristics of super key:</strong></p><ul><li>Adding zero or more attributes to the candidate key generates the super key.</li><li>A candidate key is a super key but vice versa is not true.</li><li>Super Key values may also be NULL.</li></ul><h3><strong>5.Candidate Key: A candidate key is a minimal super key, meaning it is a subset of attributes from a super key that can uniquely identify records in a table.</strong></h3><p><strong>Characteristics of candidate key:</strong></p><ul><li>It is a minimal super key.</li><li>It is a super key with no repeated data is called a candidate key.</li><li>The minimal set of attributes that can uniquely identify a record.</li><li>It must contain unique values.</li><li>It can contain NULL values.</li><li>Every table must have at least a single candidate key.</li><li>A table can have multiple candidate keys but only one primary key.</li><li>The value of the Candidate Key is unique and may be null for a tuple.</li><li>There can be more than one candidate key in a relationship.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*1jOWHjbBQ-mis55W.jpg" /><figcaption><em>Relation between Primary Key, Candidate Key, and Super Key</em></figcaption></figure><h3>6.Unique key: A unique key is constraint the enforces the uniqueness of value in one or more columns of a database table. unlike a primary key , it allows for null values.</h3><p><strong>Characteristics of unique key:</strong></p><ul><li>One or more table fields can be used to create the unique key.</li><li>There may be several distinct key columns defined in a table.</li><li>Unclustered unique indexes are where a unique key is, by default, found.</li><li>The column with the unique constraint may store a NULL value, but only one NULL is permitted per column.</li></ul><h3>7. Alternate Key: An alternate key is a candidate key that was not chosen at the primary key. It serves as an alternative unique identifier for records.</h3><p><strong>Characteristics of alternate key:</strong></p><ul><li>All the keys which are not primary keys are called alternate keys.</li><li>It is a secondary key.</li><li>It contains two or more fields to identify two or more records.</li><li>These values are repeated.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*pAuWwmAX2aoCU9xJ.png" /><figcaption><em>Primary Key, Candidate Key, and Alternate Key</em></figcaption></figure><h3>Why keys are necessary for DBMS?</h3><p><strong><em>Keys are one of the important aspects of DBMS. Keys help us to find the tuples(rows) uniquely in the table. It is also used in developing various relations amongst columns or tables of the database.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*jgEApuUCNuMdIX9e.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=560310e7561f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“3W FACTS OF DATABASE!….”What]]></title>
            <link>https://medium.com/@sivos311/3w-facts-of-database-what-a94dc880f95?source=rss-205622452b84------2</link>
            <guid isPermaLink="false">https://medium.com/p/a94dc880f95</guid>
            <dc:creator><![CDATA[Sivalingam sivosan]]></dc:creator>
            <pubDate>Tue, 15 Aug 2023 18:19:22 GMT</pubDate>
            <atom:updated>2023-08-15T18:42:16.513Z</atom:updated>
            <content:encoded><![CDATA[<h3>“3W FACTS OF DATABASE!….”What is the database system ?<strong>What are the types of database system? Which is the best?</strong></h3><p>A database is a collection of <strong>organized</strong> or <strong>arranged</strong> data that can be easily accessed, updated/ modified or controlled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/0*0bcXv4TD2kGx_JjA" /></figure><p>we have classified database management methods that include:</p><ul><li>Database Management System (DBMS)</li><li>Relational Database Management System (RDBMS)</li></ul><p>Database Management System and Relational Database Management System are both systems used to manage and store data.</p><h3>What is a Database Management System (DBMS)?</h3><p>A DBMS is a software system that manages, stores, retrieves, and manipulates data in various formats.</p><p><strong>Key features of a DBMS :</strong></p><p><strong>Data Definition</strong>: It allows users to define the structure of the data, including tables, columns, data types, and relationships between tables.</p><p><strong>Data Manipulation</strong>: Users can insert, update, delete, and query data using languages like SQL (Structured Query Language).</p><p><strong>Data Retrieval</strong>: It enables users to retrieve specific data based on conditions and criteria using queries.</p><p><strong>Data Security</strong>: DBMS systems offer various levels of access control to ensure that only authorized users can access and modify data.</p><p><strong>Data Integrity</strong>: DBMS enforces rules and constraints to maintain the accuracy and reliability of data.</p><p><strong>Data Relationships</strong>: In relational DBMS, data can be related through keys, enabling the creation of complex structures without duplicating data.</p><p><strong>Concurrency Control</strong>: DBMS handles multiple users accessing and modifying data simultaneously, ensuring data consistency and preventing conflicts.</p><p><strong>Data Recovery and Backup</strong>: DBMS provides mechanisms to recover data in case of system failures and allows for regular backups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vwsDQdREip4DsIaA.png" /></figure><p><strong>Advantages of DBMS:</strong></p><ul><li><strong>Flexibility</strong>: DBMS can handle different data models and structures.</li><li><strong>Performance</strong>: For certain types of data and workloads, non-relational DBMS can provide higher performance.</li><li><strong>Scalability</strong>: Some DBMS are built to scale horizontally and accommodate large amounts of data.</li></ul><p>DBMS is a crucial component for managing data efficiently, maintaining data integrity, and providing a structured approach to data management for various applications and industries.</p><p><strong>Examples of DBMS</strong></p><ul><li><strong>MongoDB</strong>: A popular NoSQL DBMS that uses a document-oriented model.</li><li><strong>Redis</strong>: A high-performance in-memory NoSQL DBMS used for caching and real-time data processing.</li><li><strong>XML</strong></li><li><strong>Window Registry</strong></li><li><strong>Forxpro</strong></li><li><strong>dbaseIIIplus etc.</strong></li></ul><h3>What is a Relational Database Management System (RDBMS)?</h3><p>Relational Database Management System (RDBMS) is a more advanced version of a DBMS system that allows access to data in a more efficient way. It is used to store or manage only the data that are in the form of tables.</p><p><strong>Key features of an RDBMS :</strong></p><p><strong>Tabular Structure</strong>: Data is organized into tables with rows and columns, creating a structured and easily comprehensible format.</p><p><strong>Data Integrity</strong>: RDBMS enforces data integrity by allowing the definition of constraints, such as unique values, data types, and referential integrity between tables.</p><p><strong>SQL Language</strong>: RDBMS systems use SQL (Structured Query Language) for data manipulation, querying, and retrieval.</p><p><strong>ACID Properties</strong>: RDBMS transactions adhere to the ACID properties (Atomicity, Consistency, Isolation, Durability), ensuring reliable and consistent data management.</p><p><strong>Data Relationships</strong>: Relationships between tables are established using keys (primary and foreign keys), allowing data to be linked and related across different tables.</p><p><strong>Normalization</strong>: RDBMS supports normalization techniques to minimize data redundancy and ensure efficient storage.</p><p><strong>Flexible Querying</strong>: SQL allows complex queries that can retrieve and manipulate data from multiple tables using joins, filtering, and sorting.</p><p><strong>Structured Schema</strong>: The database schema, which defines the structure and organization of the data, is predefined and maintained through data definition language (DDL) statements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JSbHnv79XvnwE-7k.png" /></figure><p><strong>Advantages of RDBMS:</strong></p><ul><li>Data Integrity: RDBMS enforces data integrity rules through constraints and normalization.</li><li>ACID Compliance: RDBMS ensures transactions are atomic, consistent, isolated, and durable, making it suitable for applications requiring strict data consistency.</li><li>Mature Query Language: RDBMS use SQL (Structured Query Language), which is standardized and well-supported.</li></ul><p>RDBMS systems are commonly used in applications where structured data is predominant, such as accounting systems, inventory management, customer relationship management (CRM) systems, and various enterprise-level applications. They excel at maintaining data integrity and ensuring consistent access to data across multiple users and applications</p><p><strong>Examples of RDBMS</strong></p><ul><li><strong>MySQL</strong>: An open-source RDBMS that is widely used for web applications and various types of software.</li><li><strong>Oracle Database</strong>: A commercial RDBMS known for its scalability, performance, and robust features.</li><li><strong>Microsoft SQL Server</strong>: A RDBMS by Microsoft that integrates well with Microsoft’s software ecosystem.</li><li><strong>PostgreSQL</strong>: An open-source RDBMS known for its advanced features and support for complex data types.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ByK6StkCIbOMKJKk.png" /></figure><h3>Advantages of RDBMS over DBMS?</h3><p><em>Because RDBMS has tables and tables are related to one other, complicated queries may be solved using RDBMS and in a timely manner, allowing scalability as well as data integrity, and RDBMS has the idea of key constraints as well as schemas, allowing data security.</em></p><h3>What is the main Difference between DBMS and RDBMS?</h3><p>In DBMS, the data is stored as a file, whereas in RDBMS, data is stored in the form of tables.</p><h3>How do DBMS and RDBMS differ in terms of data organization?</h3><p><em>DBMS can handle any kind of data, like it may be structured or semi structured or unstructured also, and there is no concept of relations in DBMS, but RDBMS on the other hand composed of tuples and tables and tables are related to each other with key constraints.</em></p><p><strong>DBMS</strong></p><ul><li>Data stored is in the file format.</li><li>No connection between data</li><li>DBMS supports a single user</li><li>The software and hardware requirements are low</li><li>There is only low security while handling data</li></ul><p><strong>RDBMS</strong></p><ul><li>Data stored is in table format</li><li>Data in the form of a table are linked together</li><li>RDBMS supports multiple users</li><li>The software and hardware requirements are higher</li><li>It features multiple layers of security while handling data</li></ul><p><strong>WHICH IS THE BEST DATABASE SYSTEM?</strong></p><p>Choosing Between DBMS and RDBMS: The choice between a DBMS and an RDBMS depends on the specific requirements of your project:</p><ul><li>Choose a DBMS when you need flexibility in data modeling, and the data doesn’t naturally fit into a structured, tabular format.</li><li>Choose an RDBMS when your application requires strong data integrity, structured relationships, and ACID compliance.</li></ul><p><strong>The choice depends on the nature of your data, the requirements of your application, and your team’s familiarity with the technology. In many cases, a combination of both might be suitable, with an RDBMS for structured data and a NoSQL DBMS for more flexible and unstructured data needs.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a94dc880f95" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>