<?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 Dussanthansuren on Medium]]></title>
        <description><![CDATA[Stories by Dussanthansuren on Medium]]></description>
        <link>https://medium.com/@dussanthansuren?source=rss-2ef401837752------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*heP_iXUGIbM9WtpH3MyKuA.jpeg</url>
            <title>Stories by Dussanthansuren on Medium</title>
            <link>https://medium.com/@dussanthansuren?source=rss-2ef401837752------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:26:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dussanthansuren/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[In the beginning study of the DBMS keys, we are confused about the DBMS keys concepts because there…]]></title>
            <link>https://medium.com/@dussanthansuren/in-the-beginning-study-of-the-dbms-keys-we-are-confused-about-the-dbms-keys-concepts-because-there-a034bdfe3f5c?source=rss-2ef401837752------2</link>
            <guid isPermaLink="false">https://medium.com/p/a034bdfe3f5c</guid>
            <dc:creator><![CDATA[Dussanthansuren]]></dc:creator>
            <pubDate>Wed, 31 Aug 2022 13:12:05 GMT</pubDate>
            <atom:updated>2022-08-31T13:12:05.603Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*joYN-yTPy1Jy6Bziv0FeMQ.jpeg" /></figure><p><em>In the beginning study of the DBMS keys, we are confused about the DBMS keys concepts because there are many different types of DBMS keys, and almost all are related to each other with a slight difference, which makes it very difficult to get a clear understanding of the time. In this blog, you will learn the following concepts.</em></p><ol><li><em>What are DBMS keys?</em></li><li><em>Why we need DBMS keys?</em></li><li><em>What the different types of DBMS keys?</em></li></ol><p><strong><em>What are DBMS keys?</em></strong></p><p><strong><em>Keys</em></strong><em> </em><strong><em>in DBMS</em></strong><em> are an attribute or set of attributes in a database table to uniquely identify a row in the table.</em></p><p><strong><em>Why we need DBMS keys?</em></strong></p><ul><li><em>Without a DBMS key, we can’t retrieve the records uniquely from the table. Because without a key, we will either retrieve multiple records or incorrect records.</em></li><li><em>To maintain the integrity of data and identity of data. By making an attribute as a key and making it mandatory, we can enforce that anything inserted in the table is identifiable.</em></li><li><em>To generate relationships among different database tables and identify a relationship between tables.</em></li></ul><p><strong><em>What the different types of DBMS keys?</em></strong></p><p><em>The database supports the following types of </em><strong><em>keys</em></strong><em>.</em></p><ol><li><em>Super key</em></li></ol><p><em>2. Candidate key</em></p><p><em>3. Primary key</em></p><p><em>4. Alternate key</em></p><p><em>5. Foreign key</em></p><p><em>6. Composite key</em></p><p><em>7. Compound key</em></p><p><em>8. Unique key</em></p><p><em>9. Natural key</em></p><p><em>10. Surrogate key</em></p><h3>Super key</h3><p><em>The set of attributes that can uniquely identify a tuple is known as Super Key. Also, it is a combination of Candidate keys that uniquely identify a record.</em></p><h3>Candidate key</h3><p><em>Candidate keys are the subset of super keys, which have a minimal number of columns to define a row uniquely. A candidate key is like a unique key to identify the row. A candidate key is a super key but vice versa not possible.</em></p><p><em>It allows NULL values.</em></p><p><em>For example, we have so many options for super keys but some of the forms are an unnecessary pairing of keys such as {Customer_Id, SSN}, {Email, SSN}, {Email, Phone_No}, {SSN, Phone_No} but {Customer_Id}, {Email}, {Phone_No} and {SSN} can individually uniquely identify a row of data so this four data are the minimal set of candidate keys.</em></p><h3>Primary key</h3><p><em>There can be more than one candidate key in relation. From those keys, you will make one key a primary key. Here we have four candidate keys so we can make anyone a primary key.</em></p><p><em>The user and system both can insert the records with some conditions. A primary key can be a surrogate key, but the reverse is not possible.</em></p><p><em>It doesn’t allow duplicate and NULL values.</em></p><h3>Alternate key</h3><p><em>All the remaining candidate keys which are not selected as a primary key are called alternate keys.</em></p><p><em>It allows duplicate and any number of NULL values.</em></p><h3>Foreign key</h3><p><em>A foreign key helps to define the relationship with another table. It shows the relationship between two tables. It also helps to maintain data integrity for tables in the relationship. For example, {Customer_id} is a foreign key because it shows which customer has placed the order.</em></p><h3>Composite key</h3><p><em>Any key with more than one attribute is called a composite key. When we don’t have a primary key at that time we can choose multiple columns to find unique records. For example, {Customer_FirstName, Customer_LastName, Customer_city} is a composite key. We can take any number of columns, but a minimum of two columns are required to make a composite key.</em></p><p><em>It allows null and duplicate values.</em></p><h3>Compound key</h3><p><em>If a foreign key is present in a composite key, then it is called a Compound key.</em></p><h3>Unique key</h3><p><em>It shouldn’t have a duplicate value, but it allows only one NULL value.</em></p><h3>Natural key</h3><p><em>Sometimes the primary key is made up of real data is referred to as a natural key. For example, {SSN} or {Email} we can take as a natural key.</em></p><h3>Surrogate key</h3><p><em>When a primary key is generated at runtime, it is called a surrogate key. It doesn’t allow a duplicate value, but it might have a NULL value. It is typically a numeric value. When a primary key is not present, we can use a surrogate key. For example, you place one order to buy a laptop then in your purchase bill you can see one system generated invoice number, it is known as a surrogate key. For example, we can take {Customer_id} as a surrogate key if it is generated by the system.</em></p><p><em>I hope after reading this blog, you have a better understanding of DBMS keys.</em></p><p><strong><em>Thank you.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a034bdfe3f5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data modeling and databases evolved together, and their history dates back to the 1960’s.]]></title>
            <link>https://medium.com/@dussanthansuren/data-modeling-and-databases-evolved-together-and-their-history-dates-back-to-the-1960s-2e3909741fae?source=rss-2ef401837752------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e3909741fae</guid>
            <dc:creator><![CDATA[Dussanthansuren]]></dc:creator>
            <pubDate>Wed, 20 Jul 2022 11:40:53 GMT</pubDate>
            <atom:updated>2022-07-20T11:40:53.873Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bodwe7G2aoB4X7h862_PAQ.jpeg" /></figure><p>Data modeling and databases evolved together, and their history dates back to the 1960’s.</p><p>The database evolution happened in five “waves”:</p><ul><li>The first wave consisted of network, hierarchical, inverted list, and (in the 1990’s) object-oriented DBMSs; it took place from roughly 1960 to 1999.</li><li>The relational wave introduced all of the SQL products (and a few non-SQL) around 1990 and began to lose users around 2008.</li><li>The decision support wave introduced Online Analytical Processing (OLAP) and specialized DBMSs around 1990, and is still in full force today.</li><li>The graph wave began with The Semantic Web stack from the Worldwide Web Consortium in 1999, with property graphs appearing around 2008</li><li>The NoSQL wave includes big data and much more; it began in 2008.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/0*iEXxf63WC07sF-0E.png" /></figure><p>There are various database management systems available in the market. Each type has its features and can be used for varied purposes. The large number of DBMS makes it difficult to choose the DBMS that should be implemented to solve our problem. To choose the most suitable DBMS, we need to evaluate from various systems. We perform a structured approach to evaluate the database systems.</p><h3><strong>Components of DBMS</strong></h3><ol><li>Software</li><li>Hardware</li><li>Procedures</li><li>Data</li><li>Users</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*nPC0WqJ43gyo7gok.png" /></figure><h3>Software</h3><ul><li>The main component of a <a href="https://www.tutorialandexample.com/dbms-tutorial/">Database management system</a> is the software. It is the set of programs which is used to manage the database and to control the overall computerized database.</li><li>The DBMS software provides an easy-to-use interface to store, retrieve, and update data in the database.</li><li>This software component is capable of understanding the Database Access Language and converts it into actual database commands to execute or run them on the database.</li></ul><h3>Hardware</h3><ul><li>This component of DBMS consists of a set of physical electronic devices such as computers, I/O channels, storage devices, etc that create an interface between computers and the users.</li><li>This DBMS component is used for keeping and storing the data in the database.</li></ul><h3>Procedures</h3><ul><li>Procedures refer to general rules and instructions that help to design the database and to use a database management system.</li><li>Procedures are used to setup and install a new database management system (DBMS), to login and logout of DBMS software, to manage DBMS or application programs, to take backup of the database, and to change the structure of the database, etc.</li></ul><h3>Data</h3><ul><li>It is the most important component of the database management system.</li><li>The main task of DBMS is to process the data. Here, databases are defined, constructed, and then data is stored, retrieved, and updated to and from the databases.</li><li>The database contains both the metadata (description about data or data about data) and the actual (or operational) data.</li></ul><h3>Users</h3><ul><li>The users are the people who control and manage the databases and perform different types of operations on the databases in the <em>database management system</em>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e3909741fae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Difference Between files & Database Management System]]></title>
            <link>https://medium.com/@dussanthansuren/difference-between-files-database-management-system-bf567d18ff9?source=rss-2ef401837752------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf567d18ff9</guid>
            <dc:creator><![CDATA[Dussanthansuren]]></dc:creator>
            <pubDate>Mon, 04 Jul 2022 13:58:35 GMT</pubDate>
            <atom:updated>2022-07-07T15:50:00.728Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L0KmQvG1LwNrFE087zW1cg.jpeg" /></figure><h4><strong>File Management System</strong></h4><p>In computing, file system or filesystem is a method and data structure that the operating system uses to control how data is stored and retrieved. Without a file system, data placed in a storage medium would be one large body of data with no way to tell where one piece of data stopped and the next began, or where any piece of data was located when it was time to retrieve it.</p><p><strong>Types of file systems</strong></p><ul><li>Disk file systems. A disk file system takes advantages of the ability of disk storage media to randomly address data in a short amount of time.</li><li>Flash file systems. A flash file system considers the special abilities, performance and restrictions of flash memory devices.</li><li>Tape file systems. A tape file system is a file system and tape format designed to store files on tape. …</li><li>Database file systems. Another concept for file management is the idea of a database-based file system. …</li><li>Transactional file systems. Some programs need to either make multiple file system changes, or, if one or more of the changes fail for any reason, make none of the changes.</li></ul><h3>Advantage of File-oriented system:</h3><h4>1. Backup:</h4><ul><li>It is possible to take faster and automatic back-up of database stored in files of computer-based systems.</li><li>computer systems provide functionalities to serve this purpose.it is also possible to develop specific application program for this purpose.</li></ul><h4>2. Compactness:</h4><ul><li>It is possible to store data compactly.</li></ul><h4>3. Data Retrieval:</h4><ul><li>Computer-based systems provide enhanced data retrieval techniques to retrieve data stored in files in easy and efficient way.</li></ul><h4>4. Editing:</h4><ul><li>It is easy to edit any information stored in computers in form of files.</li><li>Specific application programs or editing software can be used for this purpose.</li></ul><h4>5. Remote Access:</h4><ul><li>In computer-based systems.it is possible to access data remotely.</li><li>to access data it is not necessary for a user to remain present at location where these data are kept.</li></ul><h4>6. Sharing:</h4><ul><li>Data stored in files of computer-based systems ca be shared among multiple users at a same time.</li></ul><h3>Disadvantage of File-oriented system:</h3><h4>1. Data Redundancy:</h4><ul><li>It is possible that the same information may be duplicated in different files. This leads to data redundancy results in memory wastage.</li></ul><h4>2. Data Inconsistency:</h4><ul><li>Because of data redundancy.it is possible that data may not be in consistent state.</li></ul><h4>3. Difficulty in Accessing Data:</h4><ul><li>Accessing data is not convenient and efficient in file processing system.</li></ul><h4>4. Limited Data Sharing:</h4><ul><li>Data are scattered in various files. also different files may have different formats and these files may be stored in different folders may be of different departments.</li><li>So, due to this data isolation, it is difficult to share data among different applications.</li></ul><h4>5. Integrity Problems:</h4><ul><li>Data integrity means that the data contained in the database in both correct and consistent. for this purpose the data stored in database must satisfy correct and constraints.</li></ul><h4>6. Atomicity Problems:</h4><ul><li>Any operation on database must be atomic.</li><li>this means, it must happen in its <strong>entirely</strong> or not at all.</li></ul><h4>7. Concurrent Access Anomalies:</h4><ul><li>Multiple users are allowed to access data simultaneously. this is for the sake of better performance and faster response.</li></ul><h4>8. Security Problems:</h4><ul><li>Database should be accessible to users in limited way.</li><li>Each user should be allowed to access data concerning his requirements only.</li></ul><h3><strong>Database Management System</strong></h3><p><strong>Database Management System (DBMS)</strong> is a software for storing and retrieving users’ data while considering appropriate security measures. It consists of a group of programs which manipulate the database.</p><p><strong><em>Database management system ( DBMS)</em></strong><em> is basically used to manage the database. And also the data can be easily accessed, modified, updated, controlled, and organized. The DBMS software additionally encompasses the core facilities provided to administer the database. The sum total of the database, the DBMS and the associated applications can be referred to as a “database system”.</em></p><blockquote><em>Some examples of popular database software or DBMSs include </em><strong><em>MySQL</em></strong><em>, </em><strong><em>Microsoft Access</em></strong><em>, </em><strong><em>Oracle Database</em></strong><em> and </em><strong><em>Microsoft SQL</em></strong><em>.</em></blockquote><h4>1. MySQL</h4><p><strong><em>MySQL</em></strong><em> is an open-source ( Open source means that you’re free to use and modify it. ) relational database management system (</em><strong><em>RDBMS</em></strong><em>) with a client-server model. let’s talk briefly about what is client-server. Computers that install and run RDBMS software are called clients. Whenever they need to access data, they connect to the RDBMS server. That’s the “client-server” part.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/0*qUePMZfraybv7i9o.png" /><figcaption>An image of MySQL DBMS</figcaption></figure><h4>2. Microsoft Access</h4><p><strong><em>Microsoft Access</em></strong><em> is a Database Management System (DBMS) from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and software-development tools. It is a member of the Microsoft Office suite of applications, included in the professional and higher editions.</em></p><h4>3. Oracle</h4><p><strong><em>Oracle</em></strong><em> is a relational database management system created and run by the Oracle Corporation. Currently, it supports multiple data models like document, relational and key-value within the single database. The system is built around a relational database framework in which data objects may be directly accessed by users.</em></p><h4>4. MS SQL ( Microsoft SQL )</h4><p><em>As a completely commercial tool, </em><strong><em>Microsoft SQL Server</em></strong><em> is one of the most popular relational Database management systems, in addition to </em><strong><em>MySQL</em></strong><em>, </em><strong><em>PostgreSQL</em></strong><em>, and </em><strong><em>Oracle</em></strong><em>. It copes well with effective storing and managing relational data. To interact with SQL Server databases.</em></p><h3>Characteristics of DBMS</h3><ul><li>It establishes a digital repository on a server to store and manage the data in the database.</li><li>It provides a clear view and a logical view of the process manipulating the data.</li><li>DBMS offers automatic backup and recovery of the data.</li><li>DBMS maintains data in a healthy manner in case of failure due to ACID properties.</li><li>It has the ability to reduce the complicated relationship between the data in the database.</li><li>It is used for processing and manipulation of the data.</li><li>It provides security of data.</li><li>It can view the database from different viewpoints depending on the needs of the users.</li></ul><h3>Advantages of DBMS</h3><ul><li>Controls database redundancy: All the data is stored in one place, and that recorded in the database and hence controls the redundancy in the database.</li><li>Data sharing: DBMS allows users with authority to share the data in the database with multiple users.</li><li>Easy Maintenance: The centralized nature of the database helps in the easy maintenance of the data.</li><li>Reduce time: It reduces the maintenance need and development time.</li><li>Backup: It automatically backs up data to maintain its integrity in case of failure.</li><li>Multiple user interfaces: It offers a number of user interface to multiple users.</li></ul><h3>Disadvantages of DBMS</h3><ul><li>Cost of software and hardware: It requires a number of high powered processors and large size memory to run DBMS.</li><li>Size: a Large amount of storage size is required to run DBMS efficiently.</li><li>Complexity: DBMS adds an additional layer of complexity to the data.</li><li>Higher impact of failure: DBMS faces a higher risk of losing the data since all the data is stored at a single location and a catastrophic failure can wipe it all.</li></ul><h3>Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*MxJRINVzMUEukWPXQFm9sQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf567d18ff9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>