<?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 Chamodi Piyumika on Medium]]></title>
        <description><![CDATA[Stories by Chamodi Piyumika on Medium]]></description>
        <link>https://medium.com/@chamopiyumi?source=rss-1643c0728bac------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qXRPTR_MZfpIK6hxnhdBVQ.jpeg</url>
            <title>Stories by Chamodi Piyumika on Medium</title>
            <link>https://medium.com/@chamopiyumi?source=rss-1643c0728bac------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:49:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chamopiyumi/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[Types of keys in DBMS]]></title>
            <link>https://medium.com/@chamopiyumi/types-of-keys-in-dbms-687012d02401?source=rss-1643c0728bac------2</link>
            <guid isPermaLink="false">https://medium.com/p/687012d02401</guid>
            <dc:creator><![CDATA[Chamodi Piyumika]]></dc:creator>
            <pubDate>Thu, 21 Sep 2023 11:03:35 GMT</pubDate>
            <atom:updated>2023-09-21T11:03:35.634Z</atom:updated>
            <content:encoded><![CDATA[<h3>Road map</h3><p>· <strong>What is the Key in DBMS ?</strong></p><p>· <strong>Types of keys</strong></p><p>· <strong>Why do we need Keys in DBMS?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*JSiH4TBF9Ta6uiAlsMi3IA.png" /></figure><h3>What is the Key in dbms ?</h3><p>· Keys play an important role in the relational database.</p><p>· It is used to uniquely identify any record or row of data from the table. It is also used to establish and identify relationships between tables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/1*i6nTYY87EautBNAtYplGiQ.png" /></figure><h3><strong>Types of keys</strong></h3><p>1. Primary key.</p><p>2. Candidate key.</p><p>3. Super key.</p><p>4. Foreign key.</p><p>5. Alternate key.</p><p>6. Unique key.</p><p>7. Composite key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*gwsxpxwC9EPXuqc1mhZxfg.png" /></figure><h3>1. Primary key</h3><p>A primary key is a special relational database table column (or combination of columns) designated to uniquely identify each table record.</p><p>A primary key is used as a unique identifier to quickly parse data within the table. A table cannot have more than one primary key.</p><p><strong>A primary key’s main features are:</strong></p><p>· It must contain a unique value for each row of data.</p><p>· It cannot contain null values.</p><p>· Every row must have a primary key value.</p><p>A primary key might use one or more fields already present in the underlying data model, or a specific extra field can be created to be the primary key.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*1DbMtuEhuEAkLjVLQaPt0g.png" /></figure><h3>2. Candidate Key.</h3><p>Candidate key is a single key or a group of multiple keys that uniquely identify rows in a table. A candidate key is a column or a combination of columns that uniquely identifies each row in a table. It is used to ensure that there are no duplicate or ambiguous records in a table.</p><p><strong>A candidate key’s main features are:</strong></p><p>· Candidate key can uniquely identify all the other attributes of a table.</p><p>· The candidate key should not have redundant attributes.</p><p>· Candidate keys are a subset of the super key. …</p><p>· The attributes of a candidate key can contain null values.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*7m02U3wwFa1UgGNBL16xxw.png" /></figure><h3>3. Super key</h3><p>A super key is either a single key or a group of keys that aid in distinguishing between different rows in a given table. For distinct identification, a super key in DBMS may include additional qualities that are redundant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*iwprURKMwXzKrP2hJDikSA.png" /></figure><h3>4. Foreign key</h3><p>A foreign key is a column or group of columns in a relational database table that provides a link between data in two tables. It acts as a cross-reference between tables because it references the primary key of another table, thereby establishing a link between them.</p><p><strong>A foreign key’s main features are:</strong></p><p>A foreign key is a column (or combination of columns) in a table whose values must match values of a column in some other table. FOREIGN KEY constraints enforce referential integrity, which essentially says that if column value A refers to column value B, then column value B must exist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*2Oh8dZbbRDVz7KhmdtCv6w.png" /></figure><h3>5. Alternate key</h3><p>A column or group of columns in a table that uniquely identify every row in that table. A table can have multiple choices for a primary key but only one can be set as the primary key. All the keys which are not primary key are called an Alternate Key.</p><p><strong>A alternate key’s main features are:</strong></p><p>· A Primary Key can’t be an Alternate Key. …</p><p>· A Foreign Key can’t be an Alternate Key as it is only used to reference another table.</p><p>· The alternate Key should be unique.</p><p>· An Alternate Key can be a set of a single attribute or multiple attributes.</p><p>· It can be NULL as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*Lv3HLdSw94r1BF7WB4rflg.png" /></figure><h3>6. Unique key</h3><p>Unique keys can consist of multiple columns. Unique keys are also called alternate keys. Unique keys are an alternative to the primary key of the relation. In SQL, the unique keys have a UNIQUE constraint assigned to them in order to prevent duplicates (a duplicate entry is not valid in a unique column).</p><p><strong>A unique key’s main features are:</strong></p><p>· We can construct the unique key from one or more table fields.</p><p>· We can define more than one unique key in the table.</p><p>· A unique key can be easily referenced by a foreign key.</p><p>· We can store NULL values in the Unique Key, but only one NULL is allowed null per column.</p><h3>7. Composite key</h3><p>A Composite Key is a combination of one or more attributes. If a single column alone fails to be served as a primary key then combination columns would help to uniquely access a record from table such type of keys or nothing but composite keys.</p><p><strong>A composite key’s main features are:</strong></p><p>In database design, a composite key is a candidate key that consists of two or more attributes (table columns) that together uniquely identify an entity occurrence (table row). A compound key is a composite key for which each attribute that makes up the key is a foreign key in its own right.</p><h3>Why do we need Keys in DBMS?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NOzmG3EsiwXprmsAqa5sew.png" /></figure><p>We know that there are countless data in the real world. For storing the data in DBMS, a large number of tables are required. These tables may contain thousands of duplicates, sorted, and unsorted records. Now, to fetch any particular or specific record, without any constraints/ restrictions from these tables is a very difficult process. To overcome all the difficulties, a new concept of Keys arose. Keys ensure that there are no rows with duplicate records in a table.</p><h3>Finally…</h3><p>I hope this blog post has helped you to understand what are the keys in DBMS and their features.</p><p>If you find it useful give it a comment.</p><h4>Thank you……</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=687012d02401" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Big Data]]></title>
            <link>https://medium.com/@chamopiyumi/big-data-b7ddac223679?source=rss-1643c0728bac------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7ddac223679</guid>
            <dc:creator><![CDATA[Chamodi Piyumika]]></dc:creator>
            <pubDate>Wed, 23 Aug 2023 10:04:35 GMT</pubDate>
            <atom:updated>2023-08-23T10:04:35.785Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*tN7bXUF_erV_smYBQyu55w.png" /></figure><h3><strong>In this article….</strong></h3><p>01.What is Big Data</p><p>02.Types of Big Data</p><p>03.What are the characteristics of Big Data</p><p>04.Benefits of Big Data</p><p>05.Advantages and Disadvantages of Big data</p><h3><strong>What is Big Data?</strong></h3><p>Big data is larger, more complex data sets, especially from new data sources. These data sets are so voluminous that traditional data processing software just can’t manage them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*HuIfOXV17rMM5TwpJrFNsg.png" /></figure><h3><strong>Types of Big Data</strong></h3><p>Following are the types of Big Data:</p><p>1. <strong>Structured</strong></p><p>2. <strong>Unstructured</strong></p><p>3. <strong>Semi-structured</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*bz0wy5Li2P9pACwTKYap8w.png" /></figure><h4><strong>01.Structured</strong></h4><p>Structured data is the easiest to work with. It is highly organized with dimensions defined by set parameters.</p><p>Think spreadsheets; every piece of information is grouped into rows and columns. Specific elements defined by certain variables are easily discoverable.</p><p>It’s all your quantitative data:</p><ul><li>Age</li><li>Billing</li><li>Contact</li><li>Address</li><li>Expenses</li><li>Debit/credit card numbers</li></ul><p>Because structured data is already tangible numbers, it’s much easier for a program to sort through and collect data.</p><p>Structured data follows : essentially road maps to specific data points. These schemas outline where each datum is and what it means.</p><h4><strong>02.Unstructured</strong></h4><p>Not all data is as neatly packed and sorted with instructions on how to use as structured data is.</p><p>What’s the remaining four-fifths of all the information out there? Since it isn’t structured, we naturally call this unstructured data.</p><p>Unstructured data is all your unorganized data:</p><p>You might be able to figure out why it constitutes so much of the modern data library. Almost everything you do with a computer generates unstructured data. No one is transcribing their phone calls or assigning semantic tags to every tweet they send.</p><p>While structured data saves time in an analytical process, taking the time and effort to give unstructured data some level of readability is cumbersome.</p><p>For structured data, the ETL process is very simple. It is simply cleansed and validated in the transform stage before loading into a database. But for unstructured data, that second step is much more complicated.</p><p>To gain anything resembling useful information, the dataset needs to be interpretable. But the effort can be much more rewarding than processing unstructured data’s simpler counterpart. As they say in sports, you get out what you put in.</p><h4><strong>03.Semi-structured</strong></h4><p>Semi-structured data toes the line between structured and unstructured. Most of the time, this translates to unstructured data with metadata attached to it. This can be inherent data collected, such as time, location, device ID stamp or email address, or it can be a semantic tag attached to the data later.</p><h3>What are the characteristics of Big Data?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TY5FQoMvwyzGit6zQDuxXw.png" /></figure><h4>· Volume</h4><p>Volume is defined as the space occupied within the boundaries of an object in three-dimensional space. It is also known as the capacity of the object.</p><h4>· Velocity</h4><p>Velocity is a physical vector quantity: both magnitude and direction are needed to define it. The scalar absolute value (magnitude) of velocity is called speed, being a coherent derived unit whose quantity is measured in the SI (metric system) as meters per second.</p><h4>· Variety</h4><p>Today, we can base our decisions on the prescriptive data obtained through this<strong> </strong>method. Thanks to this technology, every action of customers, competitors, suppliers, etc, will generate prescriptive information that will range from structured and easily managed data to unstructured information that is difficult to use for decision making.</p><p>Each piece of data, or core information, will require specific treatment. In addition, each type of data will require specific storage needs (the storage of an e-mail will be much less than that of a video)</p><h4>· Veracity</h4><p>This V will refer to both data quality and availability. When it comes to traditional business analytics, the source of the data is going to be much smaller in both quantity and variety.</p><p>However, the organization will have more control over them, and their veracity will be greater.</p><p>When we talk about the Big D, variety is going to mean<strong> </strong>greater uncertainty<strong> </strong>about the quality of that data and its availability. It will also have implications in terms of the data sources we may have.</p><h3>Benefits of Big Data</h3><p>· Better customer insight</p><p>· Increased market intelligence</p><p>· Agile supply chain management</p><p>· Smarter recommendations and audience targeting</p><p>· Data driven innovation.</p><p>· Diverse use cases for data sets</p><p>· Improved business operations</p><p>· Future proofing data and analytics platforms</p><p>· Improvement in pricing</p><h3>Advantages and Disadvantages of Big data</h3><h4>Advantages</h4><p>· Improved business decisions</p><p>· Improved business process</p><p>· Competitive advantage</p><p>· Business can utilize outside intelligence</p><p>· Improved customer service</p><p>· Fraud detection</p><p>· Early identification of risk</p><h4>Disadvantages</h4><p>· Big data violates the privacy principle</p><p>· Data can be used for manipulating</p><p>· Big data may increase social stratification</p><p>· Big data is not useful in short run</p><p>· Faces difficulties in parsing and interpreting</p><p>· Big data is difficult to handle</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*mu0zg28wq8Tz5eB4883XDQ.jpeg" /></figure><h4><strong>Finally…</strong></h4><p>I hope this blog post has helped you to understand what a big data.</p><p>If you find it useful give it a comment.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7ddac223679" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comparison of DBMS and RDBMS]]></title>
            <link>https://medium.com/@chamopiyumi/comparison-of-dbms-and-rdbms-d28067e025e5?source=rss-1643c0728bac------2</link>
            <guid isPermaLink="false">https://medium.com/p/d28067e025e5</guid>
            <dc:creator><![CDATA[Chamodi Piyumika]]></dc:creator>
            <pubDate>Wed, 16 Aug 2023 11:05:28 GMT</pubDate>
            <atom:updated>2023-08-16T11:05:28.217Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*5zVE1IENLFkVZ4yAWEokPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*4FxU4f4d06fT75DnlkeuhA.jpeg" /></figure><h3>To Understand DBMS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/241/1*zioSdMlsJqwYY7GVdvGJfg.png" /></figure><h4><strong>What is DBMS?</strong></h4><p>A database management system (DBMS) is system software for creating and managing databases. A DBMS makes it possible for end users to create, protect, read, update and delete data in a database.</p><p>The most prevalent type of data management platform, the DBMS essentially serves as an interface between databases and users or application programs, ensuring that data is consistently organized and remains easily accessible.</p><h4><strong>Components of a DBMS</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*d3oN1lMZCWZP3rqsGaTBHQ.png" /></figure><h4>Hardware</h4><p>The hardware is the actual computer system used for keeping and accessing the database. The conventional DBMS hardware consists of secondary storage devices such as hard disks. Databases run on the range of machines from microcomputers to mainframes</p><h4>Software</h4><p>Software is the actual DBMS between the physical database and the users of the system. All the requests from the user for accessing the database are handled by DBMS.</p><h4>Data</h4><p>It is an important component of the database management system. The main task of DBMS is to process the data.Databases are used to store the data, retrieved, and updated to and from the databases.</p><h4>Database Access Language</h4><p>Database Language is a special type of programming language used to define and manipulate a database. These are four different types: DDL, DML, DCL, and TCL.</p><p><strong><em>DDL -</em></strong>commands are used to alter/create schema and metadata of the database.</p><p><strong><em>DML - </em></strong>commands are used to access and manipulate data stored in existing schema objects.</p><p><strong><em>DCL -</em></strong>used to access the stored data. It is mainly used for revoke and to grant the user the required access to a database.</p><p><strong><em>TCL</em></strong> -Transaction Control Language. TCL commands are basically used for managing and controlling the transactions in a database to maintain consistency.</p><h4>Procedures</h4><p>Procedures refer to the instructions used in a database management system and encompass everything from instructions to setup and install, login and logout, manage the day-to-day operations, take backups of data, and generate reports.</p><h4>Users</h4><p>There are a number of users who can access or retrieve the data on demand using the application and the interfaces provided by the DBMS.</p><h3>Types of DBMS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*cC9l6wGInu-7SA0lLTX89A.jpeg" /></figure><p><strong>01.</strong>Relational Database Management System (RDBMS)</p><p>These DBMS employ parent and child relationships to store the data. Hierarchical DBMS is wide.They store data in a tree-like structure so that it is easy to find and use. Similarly, the configuration of the DBMS is present in the nodes of the tree.</p><p><strong>02.</strong>Object oriented Data Base Management System</p><p>Network DBMS supports many-to-many relations which results in complex database structures. RDM Server is a major example of the network DBMS.</p><p><strong>03.</strong>Hierarchical Data Base Management System</p><p>Relational DBMS stores data using the database relationships in the form of tables, also known as relations or tuples.They do not support many to many relationships and have pre-defined data types that they can support. They are the most popular DBMS type in the industry.</p><p>Example: Oracle, MySQL, MS SQL, etc.</p><p><strong>04.</strong>Network Data Base Management System</p><p>This DBMS supports the storage of miscellaneous data types. They store data in the form of objects. The object has attributes (i.e., name, id, gender, etc.) and the logic for what needs to be done with the data.</p><p>Example: PostgreSQL.</p><h3>To Understand RDBMS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*NXsSAhACK2pdRQYHOa1bpA.jpeg" /></figure><h4>What is RDBMS?</h4><p>The software used to store, manage, query, and retrieve data stored in a relational database is called a relational database management system (RDBMS).</p><p>A relational database management system is a database that stores data sets based on how it relates to other items in the system. These database management systems use tables to show the relationships between different pieces of data, which can help make organizing large sets of data with multiple items simple. The format of tables within a relational database can help professionals because it stores data in a way that’s easy for users to access later. Using an RDBMS in modern IT systems and applications for computers and mobile devices can be essential to ensure efficient data management.</p><h4>Component of RDBMS</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*5psibqOIA7lXwDf_CHsx0A.jpeg" /></figure><p><strong>Tables:</strong> Relational databases store data in tables that comprise a collection of related data organized in rows and columns. The rows represent different entries in the database and the columns represent those entries’ features.</p><p><strong>Records:</strong> A record in RDBMS is also called a tuple, a group of related data in the same structure. This record is a collective term for an entity represented in a row and its attributes in the corresponding columns.</p><p><strong>Domain:</strong> A database domain is a column’s data type, which you can customize to define the data constraints. For example, this field may accept only a specified number of digits in a phone number column and can show an error message if you make an invalid entry.</p><p><strong>Schemas:</strong> Schema is a list of logical data structures describing how the database stores data. It has three types of schemas. There are logical, physical and view schemas. A logical schema defines all the logical constraints on data, a physical one describes the actual storage of data and its storage forms, such as files and indices, and a view schema defines how an end user interacts with the database.</p><p><strong>Keys:</strong> This is an attribute or collection of features that help you uniquely identify a tuple in a table and establish a relationship between different tables and columns of a relational database. The various types of keys can include primary, super, alternate, composite and foreign keys.</p><h4><strong>Basic Features of RDBMS</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*yNC0rfLHSY73Sls3MfuEWw.jpeg" /></figure><p>Offers information to be saved in the tables.</p><p>Numerous users can access it together which is managed by a single user.</p><p>Virtual tables are available for storing the insightful data.</p><p>In order to exclusively find out the rows, the primary key is used.</p><p>The data are always saved in rows and columns.</p><p>To retrieve the information the indexes are used.</p><p>Columns are being shared between tables using the keys.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d28067e025e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>