<?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 Payal Rathod on Medium]]></title>
        <description><![CDATA[Stories by Payal Rathod on Medium]]></description>
        <link>https://medium.com/@payal.rathod21?source=rss-432bf2f260c6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*I8E44EakqJeJvpfS</url>
            <title>Stories by Payal Rathod on Medium</title>
            <link>https://medium.com/@payal.rathod21?source=rss-432bf2f260c6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 07:09:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@payal.rathod21/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[Active Databases and Triggers]]></title>
            <link>https://medium.com/@payal.rathod21/active-databases-and-triggers-22155a435144?source=rss-432bf2f260c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/22155a435144</guid>
            <dc:creator><![CDATA[Payal Rathod]]></dc:creator>
            <pubDate>Tue, 18 Apr 2023 16:31:54 GMT</pubDate>
            <atom:updated>2023-04-18T16:31:54.647Z</atom:updated>
            <content:encoded><![CDATA[<p>Active databases and triggers are two important concepts in the field of database management systems.</p><p><strong>What are Active Databases?</strong></p><p>Active databases are database systems that can actively monitor and respond to events in real-time. These systems can detect changes in the database and automatically trigger actions or workflows based on predefined rules or conditions. In other words, active databases are capable of reacting to events or stimuli in real-time and can take actions to maintain data consistency and integrity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*lRUkfQSbiA7UgormECXXbA.png" /></figure><p>Triggers, a class of stored procedures that are executed automatically when a specified event takes place, are how active databases function. Triggers are defined using SQL commands and are attached to database tables, views, or other database objects. When a predefined event occurs, the trigger is executed, and it can perform a variety of actions, such as modifying data in the database, executing other procedures, or sending notifications.</p><p><strong>Features of Active Database:</strong></p><ul><li>It is equipped with all the features found in a typical database, including query language capabilities and data modeling tools.</li><li>It provides all of the typical database functions, including data definition, data manipulation, storage management, etc.</li><li>ECA rules can be defined and managed with its assistance.</li><li>It finds the occurrence of events.</li><li>It must have the capacity to assess situations and carry out actions.</li><li>It follows that rule execution must be put into practise.</li></ul><p><strong>Benefits of Active Databases:</strong></p><p>Active databases offer several benefits, such as real-time monitoring, automated response, improved data integrity, and reduced workload for database administrators. Active databases can assist in ensuring that the database always remains consistent and up-to-date by automating repetitive processes and enforcing business standards.</p><p><strong>Triggers</strong></p><p>Triggers are used to automate tasks such as enforcing data integrity constraints, updating related tables when data is inserted, updated or deleted, and generating notifications or alerts based on certain conditions.</p><p>Triggers are used extensively in active databases to implement various functionalities. There are four types of triggers that can be used in active databases:</p><ul><li>Data manipulation language (DML) triggers — These triggers execute when an INSERT, UPDATE, or DELETE statement is executed on a table.</li><li>Data definition language (DDL) triggers — These triggers execute when a DDL statement is executed, such as creating or modifying a table.The acronym DDL stands for Data Definition Language, which includes statements like CREATE, ALTER, and DROP.</li><li>Logon triggers — These triggers execute when a user logs on to the database.</li><li>Logoff triggers — These triggers execute when a user logs off from the database.</li></ul><p>There are numerous uses for triggers, including auditing, logging, preserving data integrity, and enforcing business rules. A trigger can be used, for instance, to send an email message when a certain condition is satisfied or to automatically update the inventory whenever a new product is added to the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZMaWo5sJZJq_UBNq" /></figure><p><strong>Fig. 2: Triggers in SQL</strong></p><p><strong>Source: edureka</strong></p><p>Triggers can also be used to implement complex data processing and analysis tasks, such as data mining and predictive analytics. By automatically executing predefined code in response to specific events or conditions, triggers can enable an active database to analyse patterns and trends in the data, and to make intelligent decisions and recommendations based on that analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/0*s3egHcWatyML6uOD" /></figure><p><strong>Fig. 3: Trigger operations</strong></p><p><strong>Source: Oracle</strong></p><p>trigger is a special type of stored procedure that is automatically executed in response to certain events, such as INSERT, UPDATE, or DELETE statements being executed on a table.</p><p><strong>Trigger Operations:</strong></p><ul><li>Insert Trigger</li><li>Delete Trigger</li><li>Update Trigger</li></ul><ol><li><strong>Insert Trigger</strong></li></ol><p>Firstly we have to create a table named “product”, next we will insert some records into this table and then execute the select statement to see the table. Again we will create a new table named “product_backup”, next we will use the create trigger statement to create an insert trigger on the table product. The trigger is fired following an insert operation on the table. If the trigger is created successfully, we will get the output by running select statements on “product_backup” table. We can see that on inserting values into the product table, the product_backup table will automatically fill the records by invoking a trigger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KhTdi1Rnrvv-S3eo" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/0*CvvAqwMKfqRBAhA9" /></figure><p><strong>Fig. 4 : Insert Trigger</strong></p><p><strong>2. Delete Trigger</strong></p><p>In this trigger we perform the delete operation. The process remains the same as the above trigger till the creation of the trigger. After that we have to use the delete trigger statement to perform the delete trigger operation. After executing the select statement on the product_table we can see that whichever value we want to delete is deleted from the table as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/0*UxPvUMo7FX6IsW3R" /></figure><p><strong>Fig. 5 : Delete Trigger</strong></p><p><strong>3. Update Trigger</strong></p><p>In this trigger we perform an update trigger operation. Same as above triggers firstly we have to create a table and use select statements to display the table and we also create another table and insert the values in that table. For performing an update trigger operation we have to use the update trigger statement as shown in below screenshot. So in this trigger we update the values in the table for below example we update the product id. The old product id was 105 so we have updated it from 105 to the new product id as 106. After executing the statements we can see that product id is updated in the table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/0*m-o4_c9Mks8u1TxP" /></figure><p><strong>Fig. 6 : Update Trigger</strong></p><p>This trigger is defined on the “product_backup” table and is triggered after any insert, update or delete operation is performed on the table.</p><p>Active databases and triggers are powerful tools for managing and analyzing large volumes of data in real-time, and they are widely used in a variety of industries and applications, including finance, healthcare, logistics, and more.</p><p>Active databases and triggers are an essential part of modern database management systems. They enable real-time monitoring and automated responses to events, helping to maintain data integrity and consistency. By using triggers, active databases can execute predefined actions or workflows automatically, reducing the workload for database administrators and improving the overall efficiency of the database system.</p><p><strong>References:</strong></p><ul><li>Paton, Norman W., and Oscar Diaz. “Active database systems.” <em>ACM Computing Surveys (CSUR)</em> 31.1 (1999): 63–103.</li><li>Dayal, Umeshwar. “Ten years of activity in active database systems: What have we accomplished?.” <em>Active and Real-Time Database Systems (ARTDB-95) Proceedings of the First International Workshop on Active and Real-Time Database Systems, Skövde, Sweden, 9–11 June 1995</em>. Springer London, 1996.</li><li>Sistla, A. Prasad, and Ouri Wolfson. “Temporal triggers in active databases.” <em>IEEE Transactions on Knowledge and Data Engineering</em> 7.3 (1995): 471–486.</li><li>Widom, Jennifer, and Stefano Ceri, eds. <em>Active database systems: Triggers and rules for advanced database processing</em>. Morgan Kaufmann, 1995.</li><li>Halse, Gambhir, and Malakappa Shirdhonkar. “An Overview of Active Database: Model, Architecture and Challenges.”</li><li>Active Database Systems: Triggers and Rules for Advanced Database Processing (The Morgan Kaufmann Series in Data Management Systems) Hardcover — Import, 4 October 1995 by <a href="https://www.amazon.in/Jennifer-Widom/e/B000APBU54/ref=dp_byline_cont_book_1">Jennifer Widom</a> (Editor), <a href="https://www.amazon.in/Stefano-Ceri/e/B000APEURY/ref=dp_byline_cont_book_2">Stefano Ceri</a> (Editor).</li></ul><p><strong>Authors: Payal Rathod, Himaja Pujari, Chaitanya Phad, Gaurav R.Patil, Gaurav N. Patil</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22155a435144" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Virtual Memory]]></title>
            <link>https://medium.com/@payal.rathod21/virtual-memory-e62aba3f0872?source=rss-432bf2f260c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e62aba3f0872</guid>
            <dc:creator><![CDATA[Payal Rathod]]></dc:creator>
            <pubDate>Fri, 25 Nov 2022 17:10:05 GMT</pubDate>
            <atom:updated>2022-11-25T17:10:05.176Z</atom:updated>
            <content:encoded><![CDATA[<p>A computer system has a limited amount of memory. It is physically costly to add more memory. Therefore most modern computers use a combination of both hardware and software to allow the computer to address more memory than the amount physically present on the system. This extra memory is actually called Virtual Memory.</p><p>Virtual Memory makes the memory appear larger than actually present which helps in the execution of programs that are larger than the physical memory.</p><p><strong>Background</strong></p><p>All larger programmes back in the 1950s required to have logic for maintaining primary and secondary storage, like overlaying. Therefore, virtual memory was created to both enlarge primary memory and make it as simple as possible for programmers to use. Many early systems, such as early iterations of the PDP-10, partitioned memory between numerous applications without virtual memory to support multiprogramming and multitasking.</p><p>The Intel 80286 processor’s protected mode brought virtual memory to the x86 architecture, but its segment swapping method did not scale well to greater segment sizes. Underneath the current segmentation layer, the Intel 80386 added paging functionality, allowing the page fault exception to chain with other exceptions without causing a double fault. Operating system designers chose to rely only on paging as opposed to a hybrid of paging and segmentation since loading segment descriptors was an expensive process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*gS6An1CzO1NHs0ma" /></figure><h3>How virtual memory works</h3><p>Hardware and software are both used to operate virtual memory. Data from a programme is stored in RAM at a physical address when it is running. The address is automatically translated and mapped to RAM by a memory management unit (MMU). For instance, the MMU is capable of mapping a logical address space to a corresponding physical address.</p><p>Data can be switched out of RAM and into virtual memory at any time if it becomes necessary for the RAM space to be used for something more urgent. The task of monitoring the changes between physical and virtual memory is performed by the computer’s memory manager. The MMU of the computer will use a context switch to resume execution if that data is needed once more.</p><p><strong>Types of Virtual Memory</strong></p><ol><li>Paging</li></ol><p>A virtual memory technique called paging divides memory into chunks called paging files. When a computer’s RAM capacity is reached, it moves any unused RAM pages into the portion of its hard drive that serves as virtual memory. This operation is carried out by the computer via a swap file, a location set aside on the hard drive for increasing the RAM’s virtual memory. The computer avoids running out of real memory by shifting unnecessary files to its hard drive, which frees up RAM space for other memory-intensive operations.</p><p>2.Segmentation</p><p>Another technique for controlling virtual memory is segmentation. Virtual memory is divided into segments of varied lengths by a segmentation system, which then copies any portions that aren’t being used to the computer’s hard drive. Segment tables keep track of whether a segment is stored in memory or at a physical location, similar to page tables. As opposed to paging, which divides memory into units of uniform size, segmentation splits memory into portions of various lengths. While the length of a segment in a segmentation system can be chosen by the user, the size of a section in paging is determined by the hardware.</p><p><strong>Advantages of Virtual Memory:</strong></p><ul><li>Allows more than one program to be executed at the same time.</li><li>Common data or code may be shared between memory.</li><li>Offloading tasks from main memory.</li><li>Virtual memory increases the overall memory on a system without adding RAM.</li><li>Eliminates external fragmentation.</li><li>Less input/output is required</li></ul><p><strong>Disadvantages of Virtual Memory:</strong></p><ul><li>If the system relies too much on virtual memory, it makes cause a decrease in performance.</li><li>The more virtual memory that’s being used, the less disk space a user has for storage.</li><li>Time it takes to read from a magnetic disk is greater than the time to access RAM, therefore swapping should be avoided wherever performance is important. Ultimately meaning that it would take greater time to switch between applications.</li></ul><p>Author:</p><p>Payal Rathod, Yogita Lad, Chaitanya Phad, Sakshi Kulkarni</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e62aba3f0872" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blog on Hilberts 10th Problem]]></title>
            <link>https://medium.com/@payal.rathod21/blog-on-hilberts-10th-problem-199e24b089da?source=rss-432bf2f260c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/199e24b089da</guid>
            <dc:creator><![CDATA[Payal Rathod]]></dc:creator>
            <pubDate>Thu, 24 Nov 2022 11:04:16 GMT</pubDate>
            <atom:updated>2022-11-24T11:04:16.790Z</atom:updated>
            <content:encoded><![CDATA[<p>German mathematician David Hilbert released his 23 proposed mathematical puzzles in 1900. They were all unsolvable at the time, and a few of them had a significant impact on mathematics in the 20th century. Ten of the issues — 1, 2, 6, 7, 8, 13, 16, 19, and 22 — were conveyed by Hilbert at the International Congress of Mathematicians conference in Paris on August 8 at the Sorbonne. Later, Mary Frances Winston Newson published the entire list of 23 problems in English translation in the American Mathematical Society’s bulletin in 1902. The German mathematician David Hilbert posed 10 mathematical problems in 1900, the tenth of which is known as Hilbert’s tenth problem.</p><p><strong>What is Hilbert’s 10th Problem?</strong></p><p>Given a Diophantine equation with rational integral numerical coefficients and any number of unknown quantities: To create a method through which it is possible to determine if an equation may be solved using rational integers in a finitely many operations.</p><p><strong>Diophantine Equation: </strong>A Diophantine equation is a polynomial problem that often has equal or more than two variables and only integer solutions are of interest.</p><p>The simplest linear Diophantine equation:</p><p>a*x + b*y = c.</p><p>There may be a few algorithms to assess whether the provided set is empty or non-empty, according to Hilbert’s tenth problem.</p><p>It was difficult to develop a universal algorithm to determine whether a given Diophantine problem has a solution.</p><p>Finding the answers is not the focus of Hilbert’s issue. It only inquires as to whether we can determine whether one or more solutions exist in general. In the sense that no “method can be established” for answering that issue, the solution to this problem is non-positive. The tenth problem of Hilbert is what is known as an undecidable issue today. Hilbert did presciently remark, though it is unlikely that he had thought of such a possibility, before listing the issues:</p><p><em>“Occasionally it happens that we seek the solution under insufficient hypotheses or in an incorrect sense, and for this reason do not succeed. The problem then arises: to show the impossibility of the solution under the given hypotheses or in the sense contemplated.”</em></p><p>When the tenth question is shown to be intractable, the question of whether there is a solution even in Hilbert’s terms arises because it establishes “the impossibility of the solution”.</p><p><strong>Examples:</strong></p><p>The Diophantine polynomials were one set of polynomials that piqued Hilbert’s curiosity.</p><p>5*x²-3.2*x+7</p><p>is an example of a polynomial, on the other hand,</p><p>3*x²-3*x+1/2</p><p>is not a polynomial since there are negative and non-integer exponents.</p><p>Diophantine equations further restricted the concept by putting restrictions on the coefficients, despite exponent limitations.</p><p><strong>Applications:</strong></p><p>It has some unexpected repercussions. The presence of a universal Diophantine equation may be the most astonishing finding. According to this theorem, either a wrong assertion of this type is proven or a right one is left unproven in the system issue.</p><p><strong>Hilbert’s 10th Problem is Unsolvable</strong></p><p>There is no method to check whether the problem can be solved using natural numbers. As a result, Hilbert’s planned method cannot be realised, and his tenth issue is shown to be intractable. Yuri Matiyasevich completed a proof that such an algorithm doesn’t exist in 1970.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=199e24b089da" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>