<?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 Tharindu Madhusanka on Medium]]></title>
        <description><![CDATA[Stories by Tharindu Madhusanka on Medium]]></description>
        <link>https://medium.com/@buddhikawgt?source=rss-ef773420cc99------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RL5VB5XeBA3sWWNgD5R9xg.jpeg</url>
            <title>Stories by Tharindu Madhusanka on Medium</title>
            <link>https://medium.com/@buddhikawgt?source=rss-ef773420cc99------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:58:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@buddhikawgt/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[KEYS IN DATABASES]]></title>
            <link>https://medium.com/@buddhikawgt/keys-in-databases-d7de8e61e8f?source=rss-ef773420cc99------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7de8e61e8f</guid>
            <category><![CDATA[keys-in-dbms]]></category>
            <category><![CDATA[dbms-and-rdbms]]></category>
            <dc:creator><![CDATA[Tharindu Madhusanka]]></dc:creator>
            <pubDate>Sun, 01 Oct 2023 15:57:56 GMT</pubDate>
            <atom:updated>2023-10-01T15:57:56.386Z</atom:updated>
            <content:encoded><![CDATA[<p>Keys in Database Use</p><p>Keys in a database are used to uniquely identify rows (or tuples) in a table (or relation). They are essential for ensuring the integrity and accuracy of data and for enabling efficient data retrieval and manipulation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*c6FadKo82fW6rt0aQQdyrQ.png" /></figure><p>There are several different types of keys in a database, each with its own specific purpose. The most common types of keys are:</p><ul><li>Candidate keys: A candidate key is a set of attributes that uniquely identify each row in a table.</li><li>Primary key: The primary key is a single candidate key that is chosen to be the primary identifier for a table.</li><li>Foreign key: A foreign key is a column in one table that references the primary key of another table. This creates a relationship between the two tables, allowing data to be linked and shared.</li><li>Alternate key: An alternate key is a candidate key that is not chosen to be the primary key. It can still be used to uniquely identify rows in the table, but it is not enforced by the database management system (DBMS).</li><li>Composite key: A composite key is a key that consists of two or more attributes.</li><li>Surrogate key: A surrogate key is a column that is added to a table to serve as the primary key, even if it is not a natural identifier for the rows in the table.</li></ul><h3>Candidate Keys</h3><p>A candidate key is a set of attributes that uniquely identify each row in a table. For example, in a table of customer records, the candidate keys might be the customer ID, the customer name, or the customer email address.</p><h3>Primary Key</h3><p>The primary key is a single candidate key that is chosen to be the primary identifier for a table. The primary key is enforced by the DBMS, meaning that no two rows in the table can have the same primary key value.</p><p>The primary key is typically used to index the table, which allows the DBMS to quickly find rows in the table based on their primary key values.</p><h3>Foreign Key</h3><p>A foreign key is a column in one table that references the primary key of another table. This creates a relationship between the two tables, allowing data to be linked and shared.</p><p>For example, a customer orders table might have a foreign key that references the customer ID column in the customer table. This allows the database to track which orders belong to which customers.</p><h3>Alternate Key</h3><p>An alternate key is a candidate key that is not chosen to be the primary key. It can still be used to uniquely identify rows in the table, but it is not enforced by the DBMS.</p><p>Alternate keys can be useful for creating secondary indexes on tables, which can improve the performance of certain database queries.</p><h3>Composite Key</h3><p>A composite key is a key that consists of two or more attributes. For example, a table of product records might have a composite key consisting of the product ID and the product category.</p><p>Composite keys can be useful when there is no single attribute that uniquely identifies each row in the table.</p><h3>Surrogate Key</h3><p>A surrogate key is a column that is added to a table to serve as the primary key, even if it is not a natural identifier for the rows in the table. Surrogate keys are often used in data warehouses and other data integration systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dUvHMBHgV9x25VpEqVTgww.png" /></figure><h3><strong>Benefits of Using Keys in Databases</strong></h3><p>There are several benefits to using keys in databases:</p><ul><li>Data integrity: Keys help to ensure the integrity of data by preventing duplicate rows from being inserted into a table and by ensuring that foreign key values are valid.</li><li>Efficient data retrieval and manipulation: Keys can be used to create indexes on tables, which can improve the performance of database queries and other data manipulation operations.</li><li>Data sharing and integration: Keys can be used to create relationships between tables, which allows data to be shared and integrated more easily.</li></ul><h3>Best Practices for Using Keys in Databases</h3><p>When using keys in databases, it is important to follow certain best practices:</p><ul><li>Choose the right key type: When choosing a key type for a table, it is important to consider the specific needs of the database application. For example, if the key will be used to index the table, then a composite key should be avoided, as composite keys can make indexes less efficient.</li><li>Enforce key constraints: It is important to enforce key constraints in the database to ensure the integrity of data. This can be done using the DBMS or by writing application code to enforce the constraints.</li><li>Use surrogate keys for primary keys. When possible, it is best to use surrogate keys for primary keys. This is because surrogate keys are less likely to change than natural keys, which can improve the performance and maintainability of the database.</li></ul><h3>Why are keys important in databases?</h3><p>Keys are important in databases for a number of reasons:</p><ul><li>Data integrity: Keys help to ensure the integrity of data by preventing duplicate rows from being inserted into a table and by ensuring that foreign key values are valid. For example, if the primary key for a table of customer records is the customer ID, then the database will not allow two rows to be inserted with the same customer ID. This helps to ensure that the data in the table is accurate and consistent.</li><li>Efficient data retrieval and manipulation: Keys can be used to create indexes on tables, which can improve the performance of database queries and other data manipulation operations. For example, if a table of product records has an index in the product ID column, then the database can quickly find the row for a particular product by its product ID value. This can improve the performance of queries that return specific products, such as a query to find all products in a particular category.</li><li>Data sharing and integration: Keys can be used to create relationships between tables, which allows data to be shared and integrated more easily. For example, a table of customer orders might have a foreign key that references the customer ID column in the customer table. This allows the database to track which orders belong to which customers. This information can then be used to create reports and other analyses that combine data from both tables.</li></ul><p>Example</p><p>Consider the following table of customer records:</p><pre>customer_id | customer_name | customer_email<br>------------- | -------------- | --------------<br>1            | Alice Smith   | alice.smith@example.com<br>2            | Bob Jones     | bob.jones@example.com<br>3            | Carol Williams | carol.williams@example.com</pre><p>The primary key for this table is the customer_id column. This is because thecustomer_id value uniquely identifies each customer in the table.</p><p>Thecustomer_email column is a candidate key for this table because it also uniquely identifies each customer in the table. However, it is not the primary key.</p><p>Now, consider the following table of order records:</p><pre>order_id | customer_id | product_id<br>-------- | -------------- | ----------<br>1        | 1            | 100<br>2        | 2            | 200<br>3        | 3            | 300</pre><p>The foreign key in this table is the customer_id column. This column references the primary key in the customer table. This creates a relationship between the two tables, allowing us to track which orders belong to which customers.</p><p><strong>Here is a nice video I found on Keys in DBMS</strong></p><p><a href="https://www.youtube.com/watch?v=JkwbhFUftSc">https://www.youtube.com/watch?v=JkwbhFUftSc</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qIP7yBYt7U4i6L8jshBNaw.jpeg" /></figure><h3>Conclusion</h3><p>Keys are an essential part of database design. By understanding the different types of keys and how to use them effectively, database designers can create databases that are efficient, reliable, and secure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7de8e61e8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BIG DATA]]></title>
            <link>https://medium.com/@buddhikawgt/big-data-63a89e8c9443?source=rss-ef773420cc99------2</link>
            <guid isPermaLink="false">https://medium.com/p/63a89e8c9443</guid>
            <dc:creator><![CDATA[Tharindu Madhusanka]]></dc:creator>
            <pubDate>Wed, 23 Aug 2023 09:49:58 GMT</pubDate>
            <atom:updated>2023-08-23T09:54:06.380Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*IAwa167JPxAoAMr2askUEQ.jpeg" /></figure><h3><strong><em>Big Data: The Next Frontier of Data Analytics</em></strong></h3><p>Big data is a term used to describe the large and complex datasets that are collected and analyzed by organizations. These datasets can be structured, semi-structured, or unstructured, and they can come from a variety of sources, such as social media, sensors, and financial transactions.</p><p><strong>The three main characteristics of big data are:</strong></p><h4>Volume: Big data sets are often very large, with billions or even trillions of data points.</h4><h4>Velocity: Big data is often generated at a high speed, meaning that it needs to be processed quickly.</h4><h4>Variety: Big data can come in a variety of formats, including text, images, videos, and audio.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Jsf7-ILI8tl5mq7ItTzSVQ.png" /></figure><p>Big data has transformed into an important element in establishing growth for any business.</p><p>The term is used to describe a crucial and massive volume of data to be processed by any software technique.</p><p>It can also be referred to as a hi-tech tool used to handle large amounts of data. Big data is imperative to a business as it produces a more accurate analysis due to the large amounts of <a href="https://www.cram.com/subjects/data">data</a>.</p><p>Consequently, users can make better decisions that can be helpful in reducing risks and greater operational efficiencies.</p><p>This paper explains about big data and big <a href="https://www.cram.com/subjects/data-analysis">data analysis</a>, characteristic of big data and advantages and disadvantages of big data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2wQUZ2UsW_GTUuz6k63_0A.jpeg" /></figure><h3><strong>Why is Big Data Important?</strong></h3><p>Big data is important because it can be used to gain insights into a wide range of business and operational challenges. For example, big data can be used to:</p><blockquote><strong>Identify new market opportunities</strong></blockquote><blockquote><strong>Improve customer service</strong></blockquote><blockquote><strong>optimize supply chains</strong></blockquote><blockquote><strong>predict customer churn</strong></blockquote><blockquote><strong>detect fraud</strong></blockquote><blockquote><strong>improve product development</strong></blockquote><p>As our society has progressed, we have adopted the mindset of “the bigger the better”. This is reflected in the houses we own, the food we consume, and the salaries that we hope to earn. In the recent past there has been an industry that has also begun to adapt this philosophy through data collection. The term “big <a href="https://www.cram.com/subjects/data">data</a>” has become a buzzword in numerous industries to refer to the large amount of data that is being stored, analyzed, and reported on in the world today. Many individuals have become enraptured with this phenomenon, this possibly includes those who are enrolled in this course. While interest in this field is growing and “big data” has shown to sometimes reap huge rewards</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*GM7YcmIq1cTtZxpepeCvCg.jpeg" /></figure><h3><strong>How is Big Data Used?</strong></h3><p>Big data is used by a wide range of organizations, including businesses, governments, and healthcare providers. Some of the most common ways that big data is used include:</p><h4>Data mining: Data mining is the process of extracting patterns and insights from large datasets. This can be used to identify trends, make predictions, and improve decision-making.</h4><h4>Machine learning: Machine learning is a type of artificial intelligence that allows computers to learn without being explicitly programmed. This can be used to develop models that can predict future events or make decisions based on data.</h4><h4>Data visualization: Data visualization is the process of displaying data in a way that makes it easy to understand. This can be used to communicate insights from big data to stakeholders.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OKCl7fgwSwgcRiTevw-_Eg.png" /></figure><p>The Challenges of Big Data</p><p>Despite the many benefits of big data, there are also some challenges associated with it. These challenges include:</p><ul><li><strong>Data storage:</strong> Big data sets can be very large, and storing them can be expensive.</li><li><strong>Data processing:</strong> Big data sets can be difficult to process, and this can require specialized hardware and software.</li><li><strong>Data security:</strong> Big data sets can contain sensitive information, and this needs to be protected from unauthorised access.</li><li><strong>Data ethics: </strong>Big data can be used to make decisions that affect people’s lives, and it is important to use it ethically.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JzN1Q0ekEZfc1hCo8MPfiw.jpeg" /></figure><h3>The Future of Big Data</h3><p>Big data is still a relatively new field, and its full potential is not yet known. However, it is clear that big data has the potential to revolutionize the way we live and work. In the future, big data is likely to be used to solve some of the world’s most pressing problems, such as climate change and poverty.</p><p>Here are some specific examples of how big data is being used today:</p><ul><li>In healthcare, big data is being used to develop personalized treatment plans, predict disease outbreaks, and improve patient care.</li><li>In finance, big data is being used to detect fraud, manage risk, and make investment decisions.</li><li>In retail, big data is being used to personalize recommendations, optimize inventory, and improve customer service.</li><li>In manufacturing, big data is being used to improve quality control, optimize production, and reduce costs.</li><li>In transportation, big data is being used to improve traffic management, optimize routes, and reduce emissions.</li></ul><p>These are just a few examples of how big data is being used today. As big data technology continues to develop, we can expect to see even more innovative and impactful applications of big data in the future.</p><h3>Conclusion</h3><p>Big data is a powerful tool that can be used to solve some of the world’s most pressing problems. However, it is important to use big data responsibly and ethically. We need to make sure that big data is used to benefit all of society, not just a select few.</p><p>If you are interested in learning more about big data, there are many resources available online and in libraries. You can also find courses and training programs on big data at universities and other educational institutions.</p><p>I hope this article has given you a better understanding of big data and its potential impact on the world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*68oexgeAoEI7VdZyLaTSfQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63a89e8c9443" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THE WORLD OF RDBMS & DBMS]]></title>
            <link>https://medium.com/@buddhikawgt/the-world-of-rdbms-dbms-499568f6ed20?source=rss-ef773420cc99------2</link>
            <guid isPermaLink="false">https://medium.com/p/499568f6ed20</guid>
            <dc:creator><![CDATA[Tharindu Madhusanka]]></dc:creator>
            <pubDate>Wed, 16 Aug 2023 16:28:08 GMT</pubDate>
            <atom:updated>2023-08-16T16:28:08.001Z</atom:updated>
            <content:encoded><![CDATA[<p>This modern technological world consists of Databases everywhere. Data has become the most valuable asset in the world of digital technology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KmTRGm5nuIq1g3ffUspBFw.jpeg" /></figure><h3>Introduction</h3><p>In the world of data management, choosing the right database management system (DBMS) is crucial for efficient and effective data storage, retrieval, and manipulation. Two popular options are Relational Database Management Systems (RDBMS) and non-relational DBMS (DBMS). While both serve the same purpose, their underlying structures and functionalities differ significantly. In this article, we will explore the differences between RDBMS and DBMS, their advantages, and when to use each system.</p><h3>1. Understanding <strong>DBMS</strong>:</h3><p>DBMS, or non-relational databases, are designed to store and manage unstructured or semi-structured data. Unlike RDBMS, DBMS does not rely on a tabular structure or follow strict data relationships. Instead, DBMS uses various data models such as hierarchical, network, or key-value pairs to organize data. This flexibility allows for easy scalability and handling of large volumes of data.</p><h4>Advantages of DBMS:</h4><p>- Flexible data models: DBMS can accommodate different types of data, making it suitable for complex data structures.</p><p>- Scalability: DBMS offers horizontal scalability, allowing seamless expansion as data volume grows.</p><p>- High performance: Due to their simplified nature, DBMS can handle large amounts of data with lower latency.</p><h3>2. Understanding RDBMS</h3><p>RDBMS, or Relational Database Management Systems, are based on the relational model, using tables with rows and columns to store and organize data. RDBMS enforces strict data relationships and integrity constraints, ensuring data consistency and reliability. This structured approach makes RDBMS ideal for applications that require complex querying, data integrity, and strong data relationships.</p><h4>Advantages of RDBMS:</h4><p>- Data organization: The tabular structure of RDBMS allows for efficient organization, making it easier to access and analyze data.</p><p>- Data integrity: RDBMS enforces ACID (Atomicity, Consistency, Isolation, Durability) properties, ensuring data consistency and reliability.</p><p>- Security features: RDBMS provides robust security mechanisms to protect sensitive data from unauthorized access.</p><ul><li>Performance optimization: RDBMS optimizes query execution, resulting in faster and more efficient data retrieval.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ag3sD6n0RjW-fse-DgDMTQ.jpeg" /></figure><h3>3. Key Differences between RDBMS and DBMS:</h3><h4>Data Structure:</h4><p>RDBMS uses a tabular structure with predefined relationships, while DBMS relies on flexible data models.</p><h4>Data Integrity:</h4><p>RDBMS enforces strict data integrity constraints, while DBMS offers more flexibility but with potentially less data consistency.</p><h4>Scalability:</h4><p>DBMS provides horizontal scalability, while RDBMS excels in vertical scalability.</p><h4>Performance:</h4><p>RDBMS offers optimized query execution and indexing, leading to faster data retrieval compared to DBMS.</p><h4>Cost:</h4><p>RDBMS is generally more expensive due to its advanced features, while DBMS is a more cost-effective option for basic data storage needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ly3ly1yGM4_40dkOepo10A.jpeg" /></figure><h3>4. Choosing the Right System:</h3><h4>When to choose RDBMS:</h4><p>- Complex data relationships: RDBMS is ideal for applications with complex data relationships that require strict data integrity.</p><p>- Security requirements: If your data contains sensitive information, RDBMS provides robust security features to protect against unauthorized access.</p><p>- Performance-sensitive applications: RDBMS is suitable for applications that require high-performance data retrieval and complex querying.</p><p>When to choose DBMS:</p><p>- Unstructured or semi-structured data: DBMS is a better choice when dealing with unstructured data, such as social media feeds, sensor data, or multimedia content.</p><p>- Scalability and flexibility: If your data volume is expected to grow rapidly or if you need a flexible data model, DBMS offers better scalability and adaptability.</p><ul><li>Cost considerations: For basic data storage and retrieval needs, DBMS is a more cost-effective option compared to RDBMS.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C8jKa5O-o9kmfmoHW3KoMw.png" /></figure><h3>Why People Use Databases</h3><p>A database is a collection of data that is organized so that it can be easily accessed, managed, and updated. Databases are used in a wide variety of applications, from small businesses to large enterprises.</p><p>There are many reasons why people use databases. Here are some of the most common reasons:</p><ul><li>To store large amounts of data. Databases can store much more data than a spreadsheet or other traditional data storage method. This makes them ideal for applications that need to store large amounts of data, such as e-commerce websites, customer relationship management (CRM) systems, and financial systems.</li><li>To keep data organized and consistent. Databases are designed to keep data organized and consistent. This is important for applications that need to ensure that the data is accurate and reliable. For example, a CRM system needs to ensure that customer data is accurate and up-to-date.</li><li>To make data accessible to multiple users. Databases can be shared by multiple users, which makes them ideal for applications that need to be accessed by many people, such as a company’s intranet or a customer support system.</li><li>To protect data from unauthorized access. Databases can be secured with passwords and other security measures, which helps to protect data from unauthorized access. This is important for applications that need to protect sensitive data, such as financial information or medical records.</li><li>To automate tasks. Databases can be used to automate tasks, such as sending out emails or generating reports. This can save businesses time and money.</li></ul><p>In addition to these general reasons, there are also specific reasons why people use databases in different industries. For example, in the retail industry, databases are used to track inventory, manage orders, and track customer purchases. In the healthcare industry, databases are used to store patient records, track medical appointments, and manage billing. And in the financial industry, databases are used to track transactions, manage customer accounts, and generate financial reports.</p><p>Overall, databases are a powerful tool that can be used to store, organize, and access data in a variety of ways. They are used by businesses of all sizes and in a wide variety of industries. If you have data that needs to be stored, organized, and accessed efficiently, then you should consider using a database.</p><p>Here are some additional benefits of using databases:</p><h4>Scalability: Databases can be scaled to meet the needs of your business. As your business grows, you can add more data to your database without having to worry about performance issues.</h4><h4>Reliability: Databases are designed to be reliable and secure. Your data is protected from unauthorized access and corruption.</h4><h4>Flexibility: Databases are flexible and can be used to store a variety of data types. You can also create custom queries to extract the data that you need.</h4><h4>Cost-effectiveness: Databases are a cost-effective way to store and manage data. They are typically less expensive than other data storage solutions, such as mainframe computers.</h4><h3>If you are looking for a reliable, scalable, and flexible way to store and manage your data, then you should consider using a database.</h3><p>Conclusion:</p><p>Choosing the right database management system is crucial for effective data management. While RDBMS and DBMS serve similar purposes, their underlying structures, advantages, and use cases differ significantly. RDBMS offers better data organization, integrity, security, scalability, and performance but comes at a higher cost. On the other hand, DBMS provides flexibility, scalability, and cost-effectiveness, making it suitable for handling unstructured or semi-structured data. Understanding your data requirements and application needs will help you make an informed decision when choosing between RDBMS and DBMS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=499568f6ed20" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>