<?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 Chamod Kavinda on Medium]]></title>
        <description><![CDATA[Stories by Chamod Kavinda on Medium]]></description>
        <link>https://medium.com/@kavindachamod100?source=rss-a5b51ee9549------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*jxb7eP7LAIQxVX1z</url>
            <title>Stories by Chamod Kavinda on Medium</title>
            <link>https://medium.com/@kavindachamod100?source=rss-a5b51ee9549------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:23:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kavindachamod100/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[Explanation Keys in DBMS]]></title>
            <link>https://medium.com/@kavindachamod100/keys-71c3c9cbc90d?source=rss-a5b51ee9549------2</link>
            <guid isPermaLink="false">https://medium.com/p/71c3c9cbc90d</guid>
            <category><![CDATA[dbms]]></category>
            <category><![CDATA[dbms-keys]]></category>
            <category><![CDATA[keys]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Chamod Kavinda]]></dc:creator>
            <pubDate>Sat, 07 Oct 2023 06:02:38 GMT</pubDate>
            <atom:updated>2023-10-07T06:10:28.130Z</atom:updated>
            <content:encoded><![CDATA[<p>A key in DBMS is an attribute or a set of attributes that help to uniquely identify a tuple (or row) in a relation (or table). Keys are also used to establish relationships between the different tables and columns of a relational database.</p><p><strong>Types of keys:</strong></p><p>· Candidate Key</p><p>· Primary Key</p><p>· Super Key</p><p>· Alternate Key</p><p>· Foreign Key</p><p>· Composite Key</p><p>· Artificial key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NOzmG3EsiwXprmsAqa5sew.png" /></figure><p><strong>Candidate Key</strong></p><p>The minimal set of attributes that can uniquely identify a tuple is known as a candidate key. For Example, STUD_NO in STUDENT relation.</p><p>· A candidate key is an attribute or set of attributes that can uniquely identify a tuple.</p><p>· Except for the primary key, the remaining attributes are considered a candidate key. The candidate keys are as strong as the primary key.</p><p><strong>For example:</strong> In the EMPLOYEE table, id is best suited for the primary key. The rest of the attributes, like SSN, Passport_Number, License_Number, etc., are considered a candidate key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*xauO--cPVO9s5gaUSJYmzg.png" /></figure><p><strong>Primary Key</strong></p><p>· It is the first key used to identify one and only one instance of an entity uniquely. An entity can contain multiple keys, as we saw in the PERSON table. The key which is most suitable from those lists becomes a primary key.</p><p>· In the EMPLOYEE table, ID can be the primary key since it is unique for each employee. In the EMPLOYEE table, we can even select License_Number and Passport_Number as primary keys since they are also unique.</p><p>· For each entity, the primary key selection is based on requirements and developers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*34XBRytvtrvfc43tNy4v-Q.png" /></figure><p><strong>Super Key</strong></p><p>Super key is an attribute set that can uniquely identify a tuple. A super key is a superset of a candidate key.</p><p><strong>For example:</strong> In the above EMPLOYEE table, for(EMPLOEE_ID, EMPLOYEE_NAME), the name of two employees can be the same, but their EMPLYEE_ID can’t be the same. Hence, this combination can also be a key.</p><p>The super key would be EMPLOYEE-ID (EMPLOYEE_ID, EMPLOYEE-NAME), etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*7sWGj7pBFdWQkQXHj7mFqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*-9nnhF0lwrMZkzJhdXiRlQ.jpeg" /></figure><p><strong>Alternate Key(candidate key)</strong></p><p>The candidate key other than the primary key is called an alternate key.</p><p>· All the keys which are not primary keys are called alternate keys.</p><p>· It is a secondary key.</p><p>· It contains two or more fields to identify two or more records.</p><p>· These values are repeated.</p><p>· Eg:- SNAME, and ADDRESS is Alternate keys</p><p><strong>For example :</strong> employee relation has two attributes, Employee_Id and PAN_No, that act as candidate keys. In this relation, Employee_Id is chosen as the primary key, so the other candidate key, PAN_No, acts as the Alternate key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*jRQ-sxZN6yLsd1qQyOKXbg.png" /></figure><p><strong>Foreign Key</strong></p><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</p><p>· 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><p>· For example, DNO is a primary key in the DEPT table and a non-key in EMP</p><p><strong>Example</strong></p><p>Every employee works in a specific department in a company, and employee and department are two different entities. So we can’t store the department’s information in the employee table. That’s why we link these two tables through the primary key of one table.</p><p>We add the primary key of the DEPARTMENT table, Department_Id, as a new attribute in the EMPLOYEE table.</p><p>In the EMPLOYEE table, Department_Id is the foreign key, and both the tables are related.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*6r3yXGk96P3APbU5vsFUkw.png" /></figure><p><strong>Composite Key</strong></p><p>Sometimes, a table might not have a single column/attribute that uniquely identifies all the records of a table. To uniquely identify rows of a table, a combination of two or more columns/attributes can be used. It still can give duplicate values in rare cases. So, we need to find the optimal set of attributes that can uniquely identify rows 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>For example :</strong> in employee relations, we assume that an employee may be assigned multiple roles, and an employee may work on multiple projects simultaneously. So the primary key will be composed of all three attributes, namely Emp_ID, Emp_role, and Proj_ID in combination. So these attributes act as a composite key since the primary key comprises more than one attribute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*yOQi2bjDodMlURulgsOZWg.png" /></figure><p><strong>Artificial key</strong></p><p>The key created using arbitrarily assigned data are known as artificial keys. These keys are created when a primary key is large and complex and has no relationship with many other relations. The data values of the artificial keys are usually numbered in a serial order.</p><p><strong>For example :</strong> the primary key, which is composed of Emp_ID, Emp_role, and Proj_ID, is large in employee relations. So it would be better to add a new virtual attribute to identify each tuple in the relation uniquely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*ZKzG2_ZpQBbDdhLbwX3UFg.jpeg" /></figure><p>In a DBMS, keys play a pivotal role in maintaining data integrity and efficiency. Primary keys ensure each row has a unique identifier, while unique keys offer additional uniqueness constraints. Foreign keys establish relationships between tables, guaranteeing referential integrity. Super keys and candidate keys help identify rows uniquely, with candidate keys being minimal super keys. Composite keys combine multiple columns for identification when needed. Natural keys derive from data, while surrogate keys are artificially generated. Understanding and using these keys effectively is essential for well-structured and high-performing databases</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*UTBQ00U28VIH_iuzC8noGQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71c3c9cbc90d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Big data]]></title>
            <link>https://medium.com/@kavindachamod100/big-data-cbcf56b7cffe?source=rss-a5b51ee9549------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbcf56b7cffe</guid>
            <category><![CDATA[big-data-analytics]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Chamod Kavinda]]></dc:creator>
            <pubDate>Wed, 04 Oct 2023 13:43:24 GMT</pubDate>
            <atom:updated>2023-10-04T13:43:24.288Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is Big data?</strong></p><p>Big data is a term that encapsulates the vast and intricate landscape of modern data in our digitally connected world. At its core, big data refers to the enormous volumes of information generated daily from a multitude of sources, ranging from traditional databases and spreadsheets to social media posts, sensor readings, and multimedia content like images and videos. What makes this data “big” extends beyond sheer volume; it’s characterized by the three Vs: <strong>Volume, Velocity, and Variety.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*gBo5zMwm1zVMe5jflu5sdw.jpeg" /></figure><p><strong>Volume</strong></p><p>Which signifies the sheer scale of data involved. We’re talking about data measured not just in gigabytes or terabytes, but often in petabytes or exabytes. This massive influx of data is unprecedented in human history and necessitates innovative solutions for storage and processing.</p><p><strong>Velocity</strong></p><p>The second V, highlights the speed at which data is generated, collected, and must be acted upon. Real-time or near-real-time processing is a requirement in many domains, from financial trading to monitoring social media trends to predicting equipment failures based on sensor data.</p><p><strong>Variety</strong></p><p>Speaks to the diversity of data types in the big data landscape. Beyond structured data that fits neatly into tables and rows, big data encompasses semi-structured and unstructured data, such as social media posts, customer reviews, and images. Dealing with this variety is a significant challenge because it often requires new tools and approaches for analysis.</p><p>These characteristics are just the tip of the big data iceberg. In practice, big data is also influenced by two additional Vs: Veracity and Value. Veracity concerns the reliability and trustworthiness of the data, as the sheer volume and variety can introduce inaccuracies and biases. Value emphasizes that the ultimate goal of big data isn’t just about having lots of data; it’s about extracting meaningful insights and value from that data to drive decision-making, innovation, and competitive advantage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Q5KpPCfTHgoQvC0gvuFeRw.png" /></figure><p>To harness the potential of big data, organizations leverage technologies like distributed computing frameworks (e.g., Hadoop), NoSQL databases, advanced analytics, and machine learning. These tools empower data scientists and analysts to sift through the vast data oceans, uncover patterns, trends, and correlations, and derive actionable insights that can transform businesses, healthcare, research, and nearly every aspect of our digital lives. In essence, big data is the cornerstone of the data-driven revolution shaping our world today, opening up new possibilities and challenges for individuals, businesses, and society as a whole.</p><p>Data Sources: Big data comes from a wide range of sources, including but not limited to:</p><p>Social Media: Platforms like Facebook, Twitter, and Instagram generate massive amounts of data through posts, comments, likes, and shares.</p><p>IoT Devices: The Internet of Things (IoT) involves sensors and devices that collect data on everything from weather conditions to industrial machinery performance.</p><p>E-commerce: Online retailers gather data on customer purchases, browsing behavior, and preferences.</p><p>Healthcare: Electronic health records, wearable devices, and medical imaging generate extensive healthcare-related data.</p><p>Scientific Research: Fields like genomics, particle physics, and environmental science produce large datasets for analysis.</p><p>Government and Public Data: Government agencies collect data on demographics, transportation, and more.</p><p>Data Processing Challenges: Handling big data involves significant challenges, including:</p><p>Scalability: Traditional databases and systems struggle to scale to handle the volume and velocity of big data.</p><p>Data Integration: Combining data from diverse sources with varying formats can be complex.</p><p>Data Security and Privacy: Protecting sensitive data is a top concern, especially with regulations like GDPR and CCPA.</p><p>Data Quality: Ensuring that data is accurate and reliable is crucial for meaningful analysis.</p><p>Data Analytics Techniques: Big data analytics relies on various techniques, including:</p><p>Descriptive Analytics: Summarizing historical data to gain insights into past trends and events.</p><p>Predictive Analytics: Using statistical and machine learning models to forecast future outcomes.</p><p>Prescriptive Analytics: Recommending actions to optimize future outcomes based on historical and real-time data.</p><p>Data Visualization: Creating visual representations of data to aid in understanding and decision-making.</p><p>Industry Applications: Big data has transformative applications across industries:</p><p>Finance: Detecting fraud, optimizing trading strategies, and managing risk.</p><p>Retail: Personalizing recommendations, managing inventory, and improving supply chain efficiency.</p><p>Healthcare: Diagnosing diseases, predicting patient outcomes, and drug discovery.</p><p>Manufacturing: Predictive maintenance, quality control, and process optimization.</p><p>Marketing: Targeted advertising, customer segmentation, and sentiment analysis.</p><p>Future Trends: The evolution of big data continues with emerging trends:</p><p>Edge Computing: Processing data closer to its source, reducing latency and enabling real-time analytics.</p><p>Artificial Intelligence (AI): AI and machine learning are increasingly integrated into big data analytics for enhanced insights.</p><p>Blockchain: Employing blockchain technology for data security and trust in decentralized data ecosystems.</p><p>Ethical Considerations: Addressing ethical concerns related to data collection, bias in algorithms, and data privacy.</p><p>Quantum Computing: Potential to revolutionize big data analytics by handling complex calculations at incredible speeds.</p><p><strong>Why Is Big Data Important?</strong></p><p>The importance of big data doesn’t simply revolve around how much data you have. The value lies in how you use it. By taking data from any source and analyzing it,</p><p>1) streamline resource management</p><p>2) improve operational efficiencies</p><p>3) optimize product development</p><p>4) drive new revenue and growth opportunities and</p><p>5) enable smart decision making</p><p>When you combine big data with high-performance analytics, you can accomplish business-related tasks such as:</p><p>· Determining root causes of failures, issues and defects in near-real time.</p><p>· Spotting anomalies faster and more accurately than the human eye.</p><p>· Improving patient outcomes by rapidly converting medical image data into insights.</p><p>· Recalculating entire risk portfolios in minutes.</p><p>· Sharpening deep learning models’ ability to accurately classify and react to changing variables.</p><p>· Detecting fraudulent behavior before it affects your organization.</p><p>Data lakes are central to big data management, enabling flexible data exploration. Data governance ensures responsible data handling. Real-time analytics is crucial for applications like fraud detection. The Hadoop ecosystem plays a key role in big data processing.</p><p>Data science is a growing field, employing statistics and machine learning to extract insights. Security measures are vital to protect against data breaches. Big data has diverse applications, from space exploration to sports analytics. It impacts global industries and drives data-driven decision-making.</p><p>In summary, big data is a global phenomenon with far-reaching impacts on technology, science, business, and society, offering immense potential for innovation and insight while posing challenges in data management and security.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbcf56b7cffe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Comparison of DBMS and RDBMS]]></title>
            <link>https://medium.com/@kavindachamod100/a-comparison-of-dbms-and-rdbms-faa007e9f5c9?source=rss-a5b51ee9549------2</link>
            <guid isPermaLink="false">https://medium.com/p/faa007e9f5c9</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[backend]]></category>
            <dc:creator><![CDATA[Chamod Kavinda]]></dc:creator>
            <pubDate>Wed, 16 Aug 2023 14:18:49 GMT</pubDate>
            <atom:updated>2023-08-16T14:18:49.036Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Let’s talk about introduction of database management system and relational database management system</em></p><p>· A database management system (DBMS) is a software application that allows users to create, maintain, and access databases. Databases are collections of data that are organized in a way that makes it easy to find and use the data.</p><p>· A relational database management system (RDBMS) is a type of DBMS that stores data in the form of tables. Each table has a set of columns and rows, and each row represents a single record. RDBMS are the most popular type of DBMS and are used by most businesses and organizations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ly3ly1yGM4_40dkOepo10A.jpeg" /></figure><p><strong>Here are some of the key differences between DBMS and RDBMS</strong></p><p>· Data organization: DBMS can store any type of data, structured or unstructured.RDBMS stores data in the form of tables.</p><p>· Data access: Data elements in DBMS need to be accessed individually.Data in RDBMS can be accessed through relational operations.</p><p>· Data consistency: Data consistency in DBMS is not as good as RDBMS.RDBMS provides more consistent data.</p><p>· Security: DBMS is less secure than RDBMS.RDBMS provides more security features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*id6Qs3XjFRGthW1rFxIekQ.jpeg" /></figure><h4><strong>DBMS</strong></h4><p>The function of DBMS in data storage and retrieval is to provide users with access to and ease of use of data by offering a mechanism to store data in a structured and effective manner. DBMSs do this by giving users access to a variety of tools and capabilities that allow them to build and maintain databases, as well as query and retrieve data from them.</p><p><strong>Some of the key features of a DBMS include:</strong></p><p>· Data modeling: The ability to create a model of the data that is to be stored in the database.</p><p>· Data storage: The ability to store data in the database in a way that is secure and accessible.</p><p>· Data retrieval: The ability to retrieve data from the database quickly and efficiently.</p><p>· Data security: The ability to protect data from unauthorized access, modification, or deletion.</p><p>· Data integrity: The ability to ensure that the data in the database is accurate and consistent.</p><p>· Data backup and recovery: The ability to back up the data in the database and to restore it in case of a disaster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LzMXqnfBG8AoY2MGlfITCg.png" /></figure><p><strong>Here are some of the benefits of using a DBMS:</strong></p><p>· Efficiency: DBMS can store and retrieve data much more efficiently than traditional file systems.</p><p>· Security: DBMS can provide a high level of security for data, including features such as encryption and access control.</p><p>· Scalability: DBMS can be scaled to handle large amounts of data.</p><p>· Reliability: DBMS can provide a high level of reliability for data, including features such as backup and recovery.</p><p>· Flexibility: DBMS can be used to store and manage a variety of data types.</p><h4><strong>RDBMS</strong></h4><p>An advanced software tool called a relational database management system, or RDBMS for short, is designed to effectively store, manage, and manipulate structured data according to the principles of the relational database model. This approach is based on tables, where data is placed in rows and columns to make it easier to represent real-world things and their relationships.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*cx0vqabpy0nCGqejQhoR9Q.png" /></figure><p><strong>Some of the key features of a RDBMS include:</strong></p><p>· Tabular Structure: Data is organized into tables,each with rows and columns,providing a clear and structured way to store and retrieve data.</p><p>· Data Integrity: To maintain correct and trustworthy data, RDBMS maintains data integrity using a variety of constraints, including primary keys, unique keys, foreign keys, and data type validations.</p><p>· Structured Query Language : Usual method of communication between RDBMS and the database. Data manipulation is easier with SQL since users can create queries to obtain, edit, insert, and delete data.</p><p>· Scalability: To meet expanding data quantities and escalating user needs, many RDBMS systems provide horizontal and vertical scalability options.</p><p><strong>Here are some of the benefits of using a RDBMS:</strong></p><p>· Data accuracy and integrity : enforced by RDBMS constraints, guaranteeing that data is correct, trustworthy, and consistent. For the stored information to be of high quality, this is crucial.</p><p>· Data organization : made simple by RDBMS, which arranges data in an organized tabular format that is simple to maintain and access. The structure of the organization improves the accessibility and clarity of the data.</p><p>· Relationships between Tables: RDBMS facilitates the creation of relationships between tables, making it easier to express complicated data links and to perform insightful queries.</p><p>· Data Consistency: Through its relational model and transaction management, RDBMS ensures that data remains consistent, regardless of concurrent access and modifications.</p><p><strong>Key Differences Between DBMS and RDBMS</strong></p><p>· Data organization: DBMS are capable of storing both organized and unstructured data. RDBMS utilize tables to store data.</p><p>· Data access: Each individual data element in a DBMS must be accessed. Relational operations can be used to access data in RDBMS.</p><p>· Data consistency: RDBMS has better data consistency than DBMS. RDBMS offers data that is more reliable.</p><p>· Scalability: RDBMS offers greater scalability than DBMS. Large volumes of data can be handled with RDBMS at scale.</p><p>· Security: Compared to RDBMS, DBMS is less secure. RDBMS has more security features available.</p><p>· Performance: RDBMS is more effective than DBMS. RDBMS can process more transactions and queries per second.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wvcBE4bKjxzwHbDyu6wmTw.png" /></figure><p><strong>DBMS Applications</strong></p><p>· Customer relationship management (CRM)</p><p>· Enterprise resource planning (ERP)</p><p>· Supply chain management (SCM)</p><p>· Financial applications</p><p>· Human resources (HR) applications</p><p>· Manufacturing applications</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*rcBAQ3TLfKQyGof960IsYA.png" /></figure><p><strong>DBMS: Adapting to Simplicity</strong></p><p>Data organization is made flexible by database management systems (DBMS). DBMS options adapt to a variety of data formats, from file-based systems to hierarchical databases. They excel in situations where complexity is subordinated to complement simple data requirements and small-scale applications. Although they do not focus as much on data relationships and organizational organization as RDBMS, DBMS satisfy the need for simplicity and adaptability.</p><p><strong>RDBMS: Embracing Structure and Integrity</strong></p><p>RDBMS, or relational database management systems, are in charge of taking care of structured data. The foundation for effective data storage and querying is the relational model, which uses a table structure and key-based associations. RDBMS excel at handling complex data relationships, enforcing data integrity, and handling enterprise-level applications. They provide a uniform approach to ensure that data is accurate, reliable and logically organized.</p><p>Depending on the requirements of your application, you should choose between a DBMS and an RDBMS. A DBMS may be the flexible option you are looking for if your project is well organized and does not call for complex data relationships. On the other hand, an RDBMS is the way to go if your project requires tight data organization, the ability to manage complex relationships, and an uncompromising commitment to data integrity.</p><p>Ultimately, the choice depends on the contours of your data landscape and the goals of your application. Understanding the nuances and capabilities of both DBMS and RDBMS empowers you to use the right tool for the right job. Whether you’re implementing a composite system or organizing a data-driven enterprise, your choice will shape the efficiency, reliability, and longevity of your data management efforts.</p><p>💬 Let me know in the comment section what have I missed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faa007e9f5c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>