<?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 Sapun Anuranga on Medium]]></title>
        <description><![CDATA[Stories by Sapun Anuranga on Medium]]></description>
        <link>https://medium.com/@sapunanu98?source=rss-b833a73a6246------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*e1173bkRQ9Km1W4J</url>
            <title>Stories by Sapun Anuranga on Medium</title>
            <link>https://medium.com/@sapunanu98?source=rss-b833a73a6246------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:16:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sapunanu98/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[What is the difference between an RDBMS and a DBMS]]></title>
            <link>https://medium.com/@sapunanu98/what-is-the-difference-between-an-rdbms-and-a-dbms-3d84bc91075c?source=rss-b833a73a6246------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d84bc91075c</guid>
            <category><![CDATA[dbms-vs-rdbms]]></category>
            <category><![CDATA[dbms]]></category>
            <category><![CDATA[rdbms]]></category>
            <dc:creator><![CDATA[Sapun Anuranga]]></dc:creator>
            <pubDate>Sun, 08 Oct 2023 02:00:41 GMT</pubDate>
            <atom:updated>2023-10-08T02:00:41.069Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*idfKNfA0_F2MeXqgenCr-Q.png" /></figure><p>Database management systems (DBMSs) and relational database management systems (RDBMSs) are both software applications that store, retrieve, and manage data. However, there are some key differences between the two.</p><blockquote><strong><em>What is a DBMS?</em></strong></blockquote><p>A DBMS is a general-purpose software application that can be used to store and manage any type of data, including structured, semi-structured, and unstructured data. DBMSs typically use a file-based data storage model, where data is stored in separate files.</p><blockquote><strong>What is an RDBMS?</strong></blockquote><p>An RDBMS is a specific type of DBMS that stores data in a relational database. A relational database is a collection of tables, where each table represents a different entity, such as customers, orders, or products. Tables are related to each other through foreign key constraints, which ensure that the data in the database is consistent and accurate.</p><blockquote><strong>Key differences between DBMSs and RDBMSs</strong></blockquote><p>The following table summarizes the key differences between DBMSs and RDBMS:</p><p>The key difference between DBMSs and RDBMSs is the way they store and organize data. DBMSs typically use a file-based data storage model, where data is stored in separate files. This can make it difficult to retrieve and manage complex data.</p><p>RDBMSs, on the other hand, use a relational data storage model. A relational database is a collection of tables, where each table represents a different entity, such as customers, orders, or products. Tables are related to each other through foreign key constraints, which ensure that the data in the database is consistent and accurate.</p><p>RDBMSs also offer a number of other benefits over DBMSs, including:</p><ul><li>Data integrity: RDBMSs use foreign key constraints to ensure that the data in the database is consistent and accurate. This helps to prevent data errors and corruption.</li><li>Query language: RDBMSs support the SQL query language, which is a powerful and flexible way to retrieve and manipulate data. SQL is also a standard language, so it can be used with any RDBMS.</li><li>Performance: RDBMSs are designed to handle large and complex datasets efficiently. They also support indexing, which can significantly improve the performance of queries.</li></ul><blockquote><strong>Common use cases</strong></blockquote><p>DBMSs are commonly used in a variety of applications,</p><ul><li>General-purpose data management: DBMSs can be used to store and manage any type of data, including structured, semi-structured, and unstructured data.</li><li>Content management: DBMSs are often used to store and manage the content of websites and other digital media platforms.</li></ul><p>RDBMSs are commonly used used in a variety of applications,</p><ul><li>Transactional data processing: RDBMSs are ideal for applications that need to process large numbers of transactions, such as e-commerce websites and banking systems.</li><li>Analytics: RDBMSs can be used to store and analyze large datasets. This data can be used to generate reports, trends, and insights.</li></ul><blockquote><strong>Which type of system is right for you?</strong></blockquote><p>The best way to choose between a DBMS and an RDBMS is to consider the specific needs of your application. If you need to store and manage a variety of data types, or if you have complex data relationships, then a DBMS may be a good choice. If you need to process large and complex datasets efficiently, or if you need to ensure the integrity of your data, then an RDBMS may be a better choice.</p><blockquote><strong>Benefits of using an RDBMS</strong></blockquote><p>RDBMS offer a number of benefits over DBMS,</p><ul><li>Data integrity: RDBMSs use foreign key constraints to ensure that the data in the database is consistent and accurate. This helps to prevent data errors and corruption.</li><li>Query language: RDBMSs support the SQL query language, which is a powerful and flexible way to retrieve and manipulate data. SQL is also a standard language, so it can be used with any RDBMS.</li><li>Performance: RDBMSs are designed to handle large and complex datasets efficiently. They also support indexing, which can significantly improve the performance of queries.</li></ul><blockquote><strong>Examples of RDBMS</strong></blockquote><p>Some popular RDBMS</p><ul><li>MySQL</li><li>PostgreSQL</li><li>Oracle Database</li><li>Microsoft SQL Server</li><li>IBM Db2</li></ul><blockquote><strong>Examples of DBMS</strong></blockquote><p>Some popular DBMS</p><ul><li>SQL</li><li>Oracle</li><li>dBasee</li><li>MS Access</li><li>FoxPro</li></ul><blockquote><strong>Additional information</strong></blockquote><p>In addition to the key differences listed above, there are a number of other factors to consider when choosing between a DBMS and an RDBMS. These factors include:</p><ul><li>Cost: RDBMSs can be more expensive than DBMSs, both in terms of the initial purchase price and the cost of maintenance and support.</li><li>Scalability: RDBMSs are typically more scalable than DBMSs, meaning that they can handle larger and more complex datasets.</li><li>Security: RDBMSs offer a number of security features, such as encryption and access control. This can be important for applications that store sensitive data.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d84bc91075c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Big Data: What Is It and Why Should You Care]]></title>
            <link>https://medium.com/@sapunanu98/big-data-what-is-it-and-why-should-you-care-b201c6a0cc7c?source=rss-b833a73a6246------2</link>
            <guid isPermaLink="false">https://medium.com/p/b201c6a0cc7c</guid>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Sapun Anuranga]]></dc:creator>
            <pubDate>Mon, 02 Oct 2023 16:51:35 GMT</pubDate>
            <atom:updated>2023-10-02T17:41:18.458Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*6SmM1RC1zxcyvwRd3dlZcA.jpeg" /></figure><p><strong>Big data is the data in huge size. In simple terms, it can be defined as the vast amount of data so complex and unorganized which can’t be handled with the traditional database management systems.</strong></p><blockquote>Importance of Big data</blockquote><p><strong><em>1. Cost Savings :</em> </strong>Big Data tools like Apache Hadoop, Spark, etc. bring cost-saving benefits to businesses when they have to store large amounts of data.</p><p><strong><em>2. Time-Saving :</em> </strong>Real-time in-memory analytics helps companies to collect data from various sources.</p><p><strong><em>3. Social Media Listening :</em> </strong>Companies can perform sentiment analysis using Big Data tools. These enable them to get feedback about their company, that is, who is saying what about the company.</p><p><strong><em>4. Boost Customer Acquisition and Retention :</em> </strong>Customers are a vital asset on which any business depends on.</p><p><strong><em>5. Solve Advertisers Problem and Offer Marketing Insights :</em> </strong>Big data analytics shapes all business operations.</p><p><strong><em>6. The driver of Innovations and Product Development : </em></strong>Big data makes companies capable to innovate and redevelop their products.</p><blockquote><strong>Types Of Big Data</strong></blockquote><p><strong><em>Structured</em> : </strong>Structured data are defined as the data which can be stored, processed and accessed in a fixed format. Structured data has a fixed schema and thus can be processed easily. We can use SQL to manage structured data.</p><p><strong><em>Semi-Structured</em> : </strong>Semi-Structured data are the data that do not have any formal structure like table definition in RDBMS, but they have some organizational properties like markers and tags to separate semantic elements thus, making it easier for analysis.</p><p><strong><em>Unstructured</em> : </strong>Unstructured data have unknown form or structure and cannot be stored in RDBMS. We cannot analyze unstructured data until they are transformed into a structured format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*-LKxaPMosQMM4oWJ2en4cA.png" /></figure><blockquote><strong>Big Data Characteristics</strong></blockquote><p><strong><em>Volume :</em> </strong>The prominent feature of any dataset is its size. Volume refers to the size of data generated and stored in a Big Data system.</p><p><strong><em>Variety :</em> </strong>Variety entails the types of data that vary in format and how it is organized and ready for processing. Big names such as Facebook, Twitter, Pinterest, Google Ads, CRM systems produce data that can be collected, stored, and subsequently analyzed.</p><p><strong><em>Velocity :</em> </strong>Velocity refers to the speed at which different sources are generating big data every day. This flow of data is continuous and massive.</p><p><strong><em>Value :</em> </strong>The data without information is meaningless. Big data is useless until we turn it into value. Just collecting big data and storing it is worthless until the data get analyzed and a useful output is generated.</p><p><strong><em>Veracity :</em> </strong>Veracity refers to the trustworthiness and quality of the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*IY6neGyCWXNiWECUj82XSg.png" /></figure><blockquote><strong>How Big Data Works</strong></blockquote><p><strong><em>Data Collection :</em> </strong>The first step in the big data process is data collection.</p><p><strong><em>Data Storage :</em> </strong>Once the data is collected, it needs to be stored so that it can be processed.</p><p><strong><em>Data Processing :</em> </strong>With the data stored, the next step is to process it into a format that can be analyzed.</p><p><strong><em>Data Analysis :</em> </strong>Once the data is processed, it’s ready to be analyzed.</p><p><strong><em>Insight and Decision Making :</em> </strong>The ultimate goal of the big data process is to provide insights that can drive decision-making.</p><p><strong><em>Data Security &amp; Management : </em></strong>Throughout all these stages, it’s crucial to ensure that the data is secure and well-managed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*ls94LrIkLZlfOjSb65J8uA.jpeg" /></figure><blockquote><strong>Applications of Big Data</strong></blockquote><p><strong><em>1. Finance and Banking:</em> </strong>Banks and financial institutions leverage big data for fraud detection and prevention, customer segmentation, risk management, personalized offerings, and regulatory compliance.</p><p><strong><em>2. Education:</em> </strong>Educational institutions can use big data to improve student success rates by identifying at-risk students, making personalized course recommendations, and improving curriculum based on student performance.</p><p><strong><em>3. Media and Entertainment:</em> </strong>Companies like Netflix and Spotify use big data to make personalized recommendations, understand viewing/listening patterns, and drive customer engagement.</p><p><strong><em>4. Healthcare: </em></strong>Big data is used to predict epidemics, cure diseases, improve quality of life, and avoid preventable deaths. It aids in patient care and health record management and can even be used for genomic analysis to develop personalized treatment plans.</p><p><strong><em>5. Agriculture:</em> </strong>In agriculture, big data is used for precision farming — using data about weather patterns, soil conditions, and crop information to make smarter decisions about crop growth and harvesting.</p><p><strong><em>6. Travel:</em> </strong>Big Data plays an intrinsic role in shaping transportation in a more perfect and effective manner. Be it managing the revenue earned, maintaining the reputation gained, or following strategic marketing, Big Data has influenced this sector.</p><p><strong><em>7. Manufacturing:</em> </strong>Big data helps in predicting machine failures, improving supply chain efficiency, enhancing product quality, and managing inventory in the manufacturing sector.</p><p><strong><em>8. Government:</em> </strong>Governments use big data to improve service delivery, increase transparency, reduce crime, and make cities safer and smarter.</p><p><strong><em>9. Retail:</em> </strong>Retailers can use big data to better understand their customer preferences, to optimize pricing, to manage inventory, and to improve sales. Personalized marketing campaigns are often driven by insights gained from big data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1V0X49X4Xc5-rd6KaLpmPg.png" /></figure><blockquote><strong>Big Data examples</strong></blockquote><p>01. Learning about consumer shopping habits</p><p>02. Customized marketing</p><p>03. Discovering new customer leads</p><p>04. Fuel optimization devices for the industry of transportation</p><p>05. Prediction of user demand for ridesharing businesses</p><p>06. Observing health conditions via data from wearables</p><p>07. Live road mapping for independent vehicles</p><p>08. Streamlined media streaming</p><p>09. Predictive inventory ordering</p><p>10. Customized health plans for cancer patients</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b201c6a0cc7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keys in DBMS]]></title>
            <link>https://medium.com/@sapunanu98/keys-in-dbms-f89416111cb2?source=rss-b833a73a6246------2</link>
            <guid isPermaLink="false">https://medium.com/p/f89416111cb2</guid>
            <category><![CDATA[types-of-keys-in-dbms]]></category>
            <category><![CDATA[keys-in-dbms]]></category>
            <dc:creator><![CDATA[Sapun Anuranga]]></dc:creator>
            <pubDate>Sat, 23 Sep 2023 04:38:20 GMT</pubDate>
            <atom:updated>2023-09-23T04:44:10.498Z</atom:updated>
            <content:encoded><![CDATA[<p>— In relational databases, Keys play an important role.</p><p>— It helps to identify the row or a tuple uniquely from the table, in the other hand it helps to identify the relationships between tables.</p><p><strong>Why we need keys:</strong></p><p>· Keys introduced to avoid redundancy in data.</p><p>· It helps to uniquely identify the records.</p><p>· Using all attributes as a key is less efficient than choosing the minimum combination of attributes.</p><p><strong>Keys are of seven broad types in DBMS:</strong></p><p>1. Candidate Key</p><p>2. Primary Key</p><p>3. Foreign Key</p><p>4. Super Key</p><p>5. Alternate Key</p><p>6. Composite Key</p><p>7. Unique key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*srX9oXXw6vo5kqgtusb6Sg.jpeg" /></figure><p><strong>1.Foreign key</strong></p><p>The foreign key is an attribute or set of attributes that reference to primary key of the same table or another table(relation).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*OvlELYYz2KyGSdWW_nccqA.jpeg" /></figure><p>If an attribute can only take the values which are present as values of some other attribute, it will be a foreign key to the attribute to which it refers. The relation which is being referenced is called referenced relation and the corresponding attribute is called referenced attribute the relation which refers to the referenced relation is called referencing relation and the corresponding attribute is called referencing attribute. The referenced attribute of the referenced relation should be the primary key to it.</p><p>· It is a key it acts as a primary key in one table and it acts as <br> secondary key in another table.</p><p>· It combines two or more relations (tables) at a time.</p><p>· They act as a cross-reference between the tables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*5zBt7rkyIdX9GrTNeEekHw.jpeg" /></figure><p><strong>2.Super key</strong></p><p>A super key is a combination of all possible attributes that can uniquely identify two tuples in a table.</p><p>The super set of any Candidate key is the super key.</p><p><strong>3.Primary key</strong></p><p>-unique.</p><p>-Not Null.</p><p>-The primary key can be simple or it can be composite.</p><p>-A primary key is nothing but a candidate key which has given the right to tell it as a primary key.</p><p>-All candidate key can be used as the primary key but the database administrator only choose single key out of those candidate keys.</p><p>-A primary key, also called a primary keyword, and primary key is a column in a relational database table that’s distinctive for each record. It’s a unique identifier.</p><p>The following are the main benefits of a primary key:</p><p>· helps identify unique data.</p><p>· prevents duplication of records in a table;</p><p>· helps with updating or deleting only specific records;</p><p>· helps ensure that fields aren’t null;</p><p>· helps set up relationships between tables; and</p><p>· ensures row-level accessibility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*w4oA1Lp4qapLHN9gUQRU3g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*EC1GII3g0tFsQ3s9ZXN-RA.jpeg" /></figure><p><strong>4.Composite Key</strong></p><p>Composite key can be denoted as a key that consists of two or more attributes that uniquely identify any record in a table.</p><p>· It acts as a primary key if there is no primary key in a table</p><p>· Two or more attributes are used together to make a composite key.</p><p>· Different combinations of attributes may give different accuracy in terms of identifying the rows uniquely.</p><p><strong>5.Candidate key</strong></p><p>Candidate keys are defined as the minimal set of fields that can uniquely identify each record in a table.</p><p>Candidate key can act as a primary key for a table to uniquely identify each record in a table.</p><p>· It is a minimal super key.</p><p>· It is a super key with no repeated data is called a candidate key.</p><p>· The minimal set of attributes that can uniquely identify a record.</p><p>· It must contain unique values.</p><p>· It can contain NULL values.</p><p>· Every table must have at least a single candidate key.</p><p>· A table can have multiple candidate keys but only one primary key.</p><p>· The value of the Candidate Key is unique and may be null for a tuple.</p><p>· There can be more than one candidate key in a relationship.</p><p>From all the super keys available, the candidate key is the one whose proper subset is not a super key.</p><p><strong>6.Alternative key</strong></p><p>Alternate keys are nothing but candidate keys that don’t get right of the primary key.</p><p>Sometimes more than one column has the capability to uniquely identify a row but they might not be taken as the primary key, keys we can tell as the alternative key.</p><p><strong>7.Unique key</strong></p><p>A unique key refers to a column/a set of columns that identify every record uniquely in a table. All the values in this key would have to be unique. Remember that a unique key is different from a primary key. It is because it is only capable of having one null value. A primary key, on the other hand, cannot have a null value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*JSO0xBMJ02fZSwQRzPON6A.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f89416111cb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>