<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rahul Pratap Singh</title>
    <description>The latest articles on DEV Community by Rahul Pratap Singh (@rps15).</description>
    <link>https://dev.to/rps15</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F637964%2Fa083eb1b-ca61-4f05-ad33-7c0e2d4e2bba.png</url>
      <title>DEV Community: Rahul Pratap Singh</title>
      <link>https://dev.to/rps15</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rps15"/>
    <language>en</language>
    <item>
      <title>TYPES OF ERRORS IN PROGRAMMING LANGUAGE.</title>
      <dc:creator>Rahul Pratap Singh</dc:creator>
      <pubDate>Sat, 25 Feb 2023 18:17:31 +0000</pubDate>
      <link>https://dev.to/rps15/types-of-errors-in-programming-language-3200</link>
      <guid>https://dev.to/rps15/types-of-errors-in-programming-language-3200</guid>
      <description>&lt;p&gt;😎🙌Greetings! 😎😎✨ As we delve into the realm of coding🐱‍🐉🐱‍🚀, we often encounter a variety of errors👀🤦‍♂️, be it in our personal projects or in the corporate world. Even as beginners, it is essential for us to foster our curiosity about these common errors that we encounter on a daily basis, in order to gain a deeper understanding of programming skills.&lt;/p&gt;

&lt;p&gt;Well, there are several errors😢😢 you might face while coding. Still, I would like to share &lt;strong&gt;4&lt;/strong&gt; common types of error which are generally encountered by us &amp;amp; should be well known by a programmer &amp;amp; a newbie in-order to debug it quickly to produce more effective &amp;amp; efficient code😃😃.&lt;/p&gt;

&lt;p&gt;I'm going to break down these 4 errors in straightforward steps by providing a clear &amp;amp; simple explanation😎🙌 with a small code snippet for reference purposes.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;COMPILATION ERROR&lt;/strong&gt; -&amp;gt; Compilation errors generally occur due to mistakes in the "syntax" of the programming language.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When the programmer by mistake has left the semicolon (;) or has mistyped any keyword which is not accepted by the grammar(rules) of that specific programming language, we term it as a compilation error. It is relatively easy to fix.&lt;/p&gt;

&lt;p&gt;We can also call it "syntax error" in simple words.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FDFZqKF9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s7ild3w3oz98kcbgk5w9.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FDFZqKF9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s7ild3w3oz98kcbgk5w9.PNG" alt="Image description" width="880" height="314"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here, the programmer has mistyped the "println" keyword to "printnl" which is against the grammar(rules) of the programming language (here, I'm using JAVA), which will give the output.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qCZJNCvG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f8w8jmy3ltwx3409yfxy.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qCZJNCvG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f8w8jmy3ltwx3409yfxy.PNG" alt="Image description" width="880" height="187"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here, the compiler throws the "compilation(syntax) error".&lt;br&gt;
It can be fixed simply by changing the keyword to "println".&lt;/p&gt;

&lt;p&gt;2.&lt;strong&gt;RUN-TIME ERROR&lt;/strong&gt; -&amp;gt; Run-time errors are some of the exceptional types of errors where your code tries to perform or access such operations which are not allowed by the programming language.&lt;br&gt;
The best examples are:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;               - Dividing a number by zero (0), which will 
                 simply throw, "ArithmeticException".
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1RKKon_u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/arkh29tuvt4r4l027yr9.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1RKKon_u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/arkh29tuvt4r4l027yr9.PNG" alt="Image description" width="880" height="308"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;               - Accessing a memory location that is not 
                 allocated, which will 
                 simply throw, 
                 "ArrayIndexOutOfBoundsException".
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Xx94084F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gxpobyogukz4gluc5ruc.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Xx94084F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gxpobyogukz4gluc5ruc.PNG" alt="Image description" width="880" height="314"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here, the compiler throws the "run-time error".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JNW3cWtI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/parw63tca8wwbwuvq1rt.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JNW3cWtI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/parw63tca8wwbwuvq1rt.PNG" alt="Image description" width="880" height="151"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It can be fixed simply by accessing the location that is under the scope of an array.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;              - Invalid input in Java can cause a runtime 
                error when the program is expecting certain 
                types of input, but the input provided by the 
                user is not valid. 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--29-xLaMV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/12b5n4b6pjpjwavgyy6u.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--29-xLaMV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/12b5n4b6pjpjwavgyy6u.PNG" alt="Image description" width="880" height="358"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iM3TzL9Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i7o7hlr5iqecmisdo6h1.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iM3TzL9Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i7o7hlr5iqecmisdo6h1.PNG" alt="Image description" width="880" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.&lt;strong&gt;TIME-LIMIT EXCEEDED&lt;/strong&gt; -&amp;gt; This error is generally thrown by the compiler when your code runs or executes an infinite number of times (goes into an infinite loop). The program will never finish its execution, eventually encountering a "Time Limit Exceeded" error. &lt;/p&gt;

&lt;p&gt;We can fix it by adding a counter variable that counts the number of iterations and exits the loop when it reaches a particular value (say 10), You can also use a condition that depends on the programmer's input.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Dj1RA0K0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ufpjb9kei2lv2rnh0gbj.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Dj1RA0K0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ufpjb9kei2lv2rnh0gbj.PNG" alt="Image description" width="880" height="306"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It will throw the "Time Limit Exceeded" error. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_TInlDCC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ja03hlheopn76t0uodyr.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_TInlDCC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ja03hlheopn76t0uodyr.PNG" alt="Image description" width="880" height="205"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.*&lt;em&gt;SEGMENTATION FAULT *&lt;/em&gt;-&amp;gt; This error occurs when your code tries to access memory that it is not allowed to access by it.&lt;br&gt;
The segmentation error is also one of the runtime errors, so what's the difference peeps👀😒?&lt;/p&gt;

&lt;p&gt;In simple words😃 a segmentation fault is a specific type of runtime error that occurs when a program tries to access memory it is not allowed to access, while a runtime error is a more general term that encompasses a wide range of errors that can occur during program execution like - division by zero, array out-of-bounds access. &lt;/p&gt;

&lt;p&gt;A segmentation fault will lead to a crash of your program in most cases🤷‍♂️🤷‍♂️ (logs of this fault(error) are recorded in the file named "CORE DUMPS" with an extension- .dmp extension).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0_tgCwiW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iowq7xkpl5p8fsj4fj71.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0_tgCwiW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iowq7xkpl5p8fsj4fj71.PNG" alt="Image description" width="880" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yvfXx5py--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gloubxlyxmrfvbhlhr31.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yvfXx5py--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gloubxlyxmrfvbhlhr31.PNG" alt="Image description" width="880" height="214"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I hope😎🙌 this post helps the budding developer community &amp;amp; newbies who want to delve into errors in their code &amp;amp; saves their time by spotting them easily.😃💖✨😎&lt;/p&gt;

&lt;p&gt;Thank You!!!&lt;/p&gt;

</description>
      <category>programming</category>
      <category>computerscience</category>
      <category>errors</category>
      <category>devlopment</category>
    </item>
    <item>
      <title>SQL commands types with examples</title>
      <dc:creator>Rahul Pratap Singh</dc:creator>
      <pubDate>Sun, 19 Feb 2023 17:45:16 +0000</pubDate>
      <link>https://dev.to/rps15/sql-commands-types-with-examples-2c1m</link>
      <guid>https://dev.to/rps15/sql-commands-types-with-examples-2c1m</guid>
      <description>&lt;p&gt;Hello Folks😎, this is my first post✌.&lt;/p&gt;

&lt;p&gt;Just for fun, I would like to share with you all the SQL command types with their examples.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;## What is SQL? *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;1- The SQL language is one of the primary reasons for the success of relational databases in the corporate world. &lt;br&gt;
Because it became a standard for relational&lt;br&gt;
databases for executing queries &amp;amp; fetching data.&lt;/p&gt;

&lt;p&gt;2 - SQL uses some of the technical jargon like table, row(tuple), column(attribute) &amp;amp; schema.&lt;/p&gt;

&lt;p&gt;3 - A SQL table is the basic element of a relational database (RDS). &lt;/p&gt;

&lt;h2&gt;
  
  
  *&lt;em&gt;What are SQL commands? *&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;Structured query language (SQL) commands are specific keywords or SQL statements that developers use to manipulate the data stored in a relational database. We can categorize SQL commands in 5 different ways.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;a -&amp;gt;&lt;/strong&gt; DDL = DDL, which stands for "&lt;em&gt;Data Definition Language&lt;/em&gt;", which is generally responsible for the structure of the relation(table), we can also call it a "paper schema".&lt;br&gt;
We can design our database through the following commands in SQL.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;CREATE -&amp;gt; Used to create the table(schema). Creation of new &lt;br&gt;
           table requires you to specify the table name &lt;br&gt;
           columns &amp;amp; the data type of each column.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;       Syntax: CREATE TABLE TABLE_NAME (COLUMN_NAME 
               DATATYPES[,....]); 
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;DROP   -&amp;gt; The DROP command can be used to drop named &lt;br&gt;
           schema(table) elements, such as tables domains, or &lt;br&gt;
           constraints. In layman's terms, it will delete the &lt;br&gt;
           whole table along with the data stored inside it.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        Syntax: DROP TABLE table_name;  
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;ALTER -&amp;gt; The ALTER command allows you to add/delete or modify &lt;br&gt;
          the columns(attributes) to an existing table in the &lt;br&gt;
          database. &lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        Syntax: ALTER TABLE table_name ADD column_name 
                COLUMN-definition;   
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;TRUNCATE -&amp;gt; The TRUNCATE command simply deletes the whole &lt;br&gt;
             contents of the selected existing &lt;br&gt;
             table. But it will not delete the table itself, &lt;br&gt;
             only the data inside it, will be deleted.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;         Syntax: TRUNCATE TABLE table_name;  
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;COMMENT -&amp;gt; The COMMENT command helps the developer to add &lt;br&gt;
            extra information about their SQL queries, you can &lt;br&gt;
            include a comment in a statement that describes &lt;br&gt;
            the purpose of the statement within your &lt;br&gt;
            application.&lt;br&gt;
            Begin the comment with a slash and an asterisk &lt;br&gt;
            (/&lt;em&gt;) write your text or comment. End the comment &lt;br&gt;
            with an asterisk and a slash (&lt;/em&gt;/).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;RENAME -&amp;gt; There are some situations where we need to change &lt;br&gt;
         the name of the table/ columns or rows. The &lt;br&gt;
         The "RENAME" command is used to rename the &lt;br&gt;
         existing table/columns or the rows of a table.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;     Syntax: RENAME old_table _name To new_table_name;  
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;b -&amp;gt;** DQL =   DQL, stands for "&lt;strong&gt;DATA QUERY LANGUAGE&lt;/strong&gt;". DQL &lt;br&gt;
                consists of instructions, used to fetch data from &lt;br&gt;
                the database. The DQL only uses the "SELECT" &lt;br&gt;
                command.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- SELECT -&amp;gt; It is the most frequently used SQL command, used 
            to select the data from a database. The result or 
            records after executing the query will be stored 
            in a result-set table.

            Syntax: SELECT column1, column2, ...
                    FROM table_name;
            If you want to select all the fields at, once use 
            (*) asterisk.

            Syntax: SELECT * FROM table_name;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;c -&amp;gt;** DML =   DML, stands for "&lt;strong&gt;DATA MANIPULATION LANGUAGE&lt;/strong&gt;". &lt;br&gt;
                DML is used to modify or bring some changes in the &lt;br&gt;
                existing database table. We can update the new &lt;br&gt;
                information or modify existing database records in &lt;br&gt;
                the table.&lt;br&gt;
                The changes made here are not automatically &lt;br&gt;
                saved, it can be rollback when needed. &lt;br&gt;
                We can modify or update our database through the &lt;br&gt;
                following commands in SQL.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;INSERT -&amp;gt; This command is used to insert new records in the &lt;br&gt;
           database table.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;       We can insert the data in two ways-
       a - By specifying column names (You don't need to 
           specify the column name where the data will be 
           inserted, you need only their values.)

           Syntax: INSERT INTO TABLE_NAME    
                   (col1, col2, col3,... col N)  
                   VALUES (value1, value2,..valueN);

       b - Without specifying column names (The second 
           the method needs us to specify both the column 
           name and values that you want to insert.)

             Syntax: INSERT INTO TABLE_NAME    
                     VALUES (value1, value2,...valueN);   
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;UPDATE -&amp;gt; This command is used to update or change the row or &lt;br&gt;
      column value of the table.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  Syntax: UPDATE table_name SET [column_name1= 
          value1,column_nameN = valueN] [WHERE 
          CONDITION]   
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;DELETE -&amp;gt; This command is used to delete one or more &lt;br&gt;
      records(rows) from the database table.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  Syntax: DELETE FROM table_name [WHERE condition];
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;LOCK   -&amp;gt; The command is used to gain Exclusive(X) or &lt;br&gt;
      Shared(S) lock on the specified table. This lock &lt;br&gt;
      persists until the end of the transaction.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  Syntax: LOCK TABLE table-Name IN {SHARE | EXCLUSIVE 
          MODE}
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;MERGE   -&amp;gt; The "MERGE" command is popularly used to &lt;br&gt;
       perform the insert, update &amp;amp; delete operation just &lt;br&gt;
       in a single go. No need to write separate logic &lt;br&gt;
       for each of the operations.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   Syntax: 
          MERGE target_table USING source_table
          ON merge_condition
          WHEN MATCHED
          THEN update_statement
          WHEN NOT MATCHED
          THEN insert_statement
          WHEN NOT MATCHED BY SOURCE
          THEN DELETE;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;d -&amp;gt;** DCL = "DCL", stands for "DATA CONTROL LANGUAGE". This &lt;br&gt;
             command generally deals with the permission &amp;amp; &lt;br&gt;
             rights of a user.&lt;br&gt;
             The Database Administrator (DBA) uses the data &lt;br&gt;
             control language (DCL) to manage or authorize &lt;br&gt;
             the database access for other users in the table.&lt;br&gt;
             We can grant or revoke the permissions in the&lt;br&gt;&lt;br&gt;
             database through the following commands in SQL.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;GRANT -&amp;gt;   "GRANT" command is used to give access &amp;amp; &lt;br&gt;
         privilege to the user, by which he/she can make &lt;br&gt;
         some changes in the table.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;     Syntax: GRANT SELECT, UPDATE ON MY_TABLE TO 
             SOME_USER, ANOTHER_USER;  
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;REVOKE -&amp;gt; "REVOKE" command is used to withdraw user access &amp;amp;&lt;br&gt;&lt;br&gt;
         the privilege of the user.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;     Syntax: REVOKE SELECT, UPDATE ON MY_TABLE FROM 
             USER1, USER2;  
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;e -&amp;gt;** TCL = "TCL" stands for "TRANSACTION CONTROL LANGUAGE".&lt;br&gt;
              Consecutive, Read/Write operations in the &lt;br&gt;
              database is called "TRANSACTION".&lt;br&gt;
              It is used to manage our transactions so that we &lt;br&gt;
              can be sure that it is successfully carried out &lt;br&gt;
              &amp;amp; has not violated the integrity of the &lt;br&gt;
              database.&lt;br&gt;
              The following commands come under the TCL are:&lt;/p&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;COMMIT -&amp;gt;    "COMMIT", command is generally used to save all &lt;br&gt;
               the transaction to a database, after performing &lt;br&gt;
               all the operations on it.&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;           Syntax: COMMIT; 
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;ROLLBACK -&amp;gt;    "ROLLBACK", command is used to undo all the &lt;br&gt;
            transactions(operations) that have not already &lt;br&gt;
            been saved(committed) to the database.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;       Syntax: ROLLBACK; 
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SAVEPOINTS -&amp;gt; "SAVEPOINTS", command works like a marker, used &lt;br&gt;
          to roll the transaction back to a certain point&lt;br&gt;&lt;br&gt;
          without rolling back the entire transaction.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;       Syntax: SAVEPOINT SAVEPOINT_NAME; 
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I hope you've enjoyed😎😎 this simple post on SQL commands.&lt;br&gt;
Thank You! 👍&lt;/p&gt;

</description>
      <category>sql</category>
      <category>sqlcommands</category>
      <category>computerscience</category>
      <category>database</category>
    </item>
  </channel>
</rss>
