<?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: Shikha Gupta</title>
    <description>The latest articles on DEV Community by Shikha Gupta (@shikha_gupta_080e904b317e).</description>
    <link>https://dev.to/shikha_gupta_080e904b317e</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%2F1687038%2Fec17f90a-f452-4080-aeb5-dd44f7d771c8.png</url>
      <title>DEV Community: Shikha Gupta</title>
      <link>https://dev.to/shikha_gupta_080e904b317e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shikha_gupta_080e904b317e"/>
    <language>en</language>
    <item>
      <title>Handling Data in SQL: Signed vs. Unsigned Types</title>
      <dc:creator>Shikha Gupta</dc:creator>
      <pubDate>Thu, 03 Oct 2024 07:52:32 +0000</pubDate>
      <link>https://dev.to/shikha_gupta_080e904b317e/handling-data-in-sql-signed-vs-unsigned-types-1g5c</link>
      <guid>https://dev.to/shikha_gupta_080e904b317e/handling-data-in-sql-signed-vs-unsigned-types-1g5c</guid>
      <description>&lt;p&gt;In SQL, data types are essential for defining how data is stored in a database. One of the distinctions within numeric data types is signed vs. unsigned types, particularly for integer-based data. Here’s a breakdown of the difference:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Signed Data Types&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Range: These data types can store both positive and negative values.&lt;/li&gt;
&lt;li&gt;Usage: If your data involves values that can be negative (such as temperatures, financial balances, etc.), you should use signed types.&lt;/li&gt;
&lt;li&gt;Example:

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;TINYINT&lt;/code&gt;: -128 to 127&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;INT&lt;/code&gt;: -2,147,483,648 to 2,147,483,647&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Unsigned Data Types&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Range: These data types can only store positive values and expand the range of possible values by shifting the negative range into the positive side.&lt;/li&gt;
&lt;li&gt;Usage: Use unsigned types when the data will never have negative values (e.g., count of items, age, IDs).&lt;/li&gt;
&lt;li&gt;Example:

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;TINYINT UNSIGNED&lt;/code&gt;: 0 to 255&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;INT UNSIGNED&lt;/code&gt;: 0 to 4,294,967,295&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Key Differences&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Storage: Both signed and unsigned types consume the same amount of storage (for instance, 4 bytes for an &lt;code&gt;INT&lt;/code&gt;). The difference lies only in how that range is allocated between positive and negative values.&lt;/li&gt;
&lt;li&gt;Use Case: Use unsigned types when you need a larger range of positive values and are certain there will be no negative numbers.&lt;/li&gt;
&lt;li&gt;Default: If not specified, integer data types are signed by default.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Would you like to explore specific use cases or examples related to these types?&lt;/p&gt;

&lt;p&gt;For more information click here:- &lt;a href="https://www.youtube.com/watch?v=lvMVBCbVImg&amp;amp;t=302s" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=lvMVBCbVImg&amp;amp;t=302s&lt;/a&gt;&lt;/p&gt;

</description>
      <category>datatypes</category>
      <category>sql</category>
      <category>webdev</category>
      <category>database</category>
    </item>
    <item>
      <title>Practical Guide to Python Conditional Statements</title>
      <dc:creator>Shikha Gupta</dc:creator>
      <pubDate>Tue, 16 Jul 2024 06:28:09 +0000</pubDate>
      <link>https://dev.to/shikha_gupta_080e904b317e/practical-guide-to-python-conditional-statements-315a</link>
      <guid>https://dev.to/shikha_gupta_080e904b317e/practical-guide-to-python-conditional-statements-315a</guid>
      <description>&lt;p&gt;Practical Guide to Python Conditional Statements&lt;/p&gt;

&lt;p&gt;Conditional statements are fundamental in programming, allowing the flow of execution to change based on certain conditions. In Python, the primary conditional statements are &lt;code&gt;if&lt;/code&gt;, &lt;code&gt;elif&lt;/code&gt;, and &lt;code&gt;else&lt;/code&gt;.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The &lt;code&gt;if&lt;/code&gt; Statement&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The &lt;code&gt;if&lt;/code&gt; statement allows you to execute a block of code only if a specified condition is true.&lt;/p&gt;

&lt;p&gt;Syntax:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;condition&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
     &lt;span class="n"&gt;code&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;execute&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;condition&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="n"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;x is greater than 5&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;The &lt;code&gt;elif&lt;/code&gt; Statement&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The &lt;code&gt;elif&lt;/code&gt; (short for "else if") statement allows you to check multiple expressions for truth value and execute a block of code as soon as one of the conditions is true.&lt;/p&gt;

&lt;p&gt;Syntax:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;condition1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
     &lt;span class="n"&gt;code&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;execute&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;condition1&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="n"&gt;true&lt;/span&gt;
&lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;condition2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
     &lt;span class="n"&gt;code&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;execute&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;condition2&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="n"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;x is greater than 15&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;x is greater than 5 but less than or equal to 15&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;The &lt;code&gt;else&lt;/code&gt; Statement&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The &lt;code&gt;else&lt;/code&gt; statement catches anything which isn't caught by the preceding conditions.&lt;/p&gt;

&lt;p&gt;Syntax:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;condition1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
     &lt;span class="n"&gt;code&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;execute&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;condition1&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="n"&gt;true&lt;/span&gt;
&lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;condition2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
     &lt;span class="n"&gt;code&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;execute&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;condition2&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="n"&gt;true&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
     &lt;span class="n"&gt;code&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;execute&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;none&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;above&lt;/span&gt; &lt;span class="n"&gt;conditions&lt;/span&gt; &lt;span class="n"&gt;are&lt;/span&gt; &lt;span class="n"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;x is greater than 15&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;x is greater than 5 but less than or equal to 15&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;x is 5 or less&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Nested Conditional Statements&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can nest &lt;code&gt;if&lt;/code&gt;, &lt;code&gt;elif&lt;/code&gt;, and &lt;code&gt;else&lt;/code&gt; statements within each other to check for multiple conditions.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;x is greater than 15&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;x is greater than 5 but less than or equal to 15&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;x is 5 or less&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Conditional Expressions (Ternary Operator)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Python also provides a way to write conditional statements in a single line, known as conditional expressions or ternary operators.&lt;/p&gt;

&lt;p&gt;Syntax:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;value_if_true&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;condition&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;value_if_false&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;
&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;x is greater than 5&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;x is 5 or less&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Using &lt;code&gt;and&lt;/code&gt; and &lt;code&gt;or&lt;/code&gt; in Conditions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can combine multiple conditions using &lt;code&gt;and&lt;/code&gt; and &lt;code&gt;or&lt;/code&gt; logical operators.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;
&lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;x is greater than 5 and y is greater than 15&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Either x or y is greater than 15&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Practical Tips&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Indentation: Proper indentation is crucial in Python, as it determines the block of code associated with each condition.&lt;/li&gt;
&lt;li&gt;Readability: Always aim for readability. Nested conditions can become complex, so consider refactoring if your code becomes difficult to follow.&lt;/li&gt;
&lt;li&gt;Boolean Values: Remember that conditions in &lt;code&gt;if&lt;/code&gt; statements can be any expression that evaluates to &lt;code&gt;True&lt;/code&gt; or &lt;code&gt;False&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Summary&lt;/p&gt;

&lt;p&gt;Python's conditional statements (&lt;code&gt;if&lt;/code&gt;, &lt;code&gt;elif&lt;/code&gt;, and &lt;code&gt;else&lt;/code&gt;) allow you to execute code based on specific conditions. By mastering these constructs, you can control the flow of your programs more effectively and make decisions dynamically during runtime.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=RjlgfjKNl4g" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=RjlgfjKNl4g&lt;/a&gt;&lt;/p&gt;

</description>
      <category>practical</category>
      <category>python</category>
      <category>operators</category>
      <category>microsoft</category>
    </item>
    <item>
      <title>SQL Operators Made Easy for Beginners</title>
      <dc:creator>Shikha Gupta</dc:creator>
      <pubDate>Tue, 09 Jul 2024 08:30:33 +0000</pubDate>
      <link>https://dev.to/shikha_gupta_080e904b317e/sql-operators-made-easy-for-beginners-ag8</link>
      <guid>https://dev.to/shikha_gupta_080e904b317e/sql-operators-made-easy-for-beginners-ag8</guid>
      <description>&lt;p&gt;SQL Operators Made Easy for Beginners&lt;/p&gt;

&lt;p&gt;SQL (Structured Query Language) uses operators to perform operations on data. Here’s a simple guide to understand the basics:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Arithmetic Operators
These are used for mathematical operations.&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;+&lt;/code&gt; (Addition): Adds two numbers.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;  &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;-- Result is 5&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-&lt;/code&gt; (Subtraction): Subtracts one number from another.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;  &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;-- Result is 2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;(Multiplication): Multiplies two numbers.
&lt;/code&gt;&lt;code&gt;sql
SELECT 4  2; -- Result is 8
&lt;/code&gt;``&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/&lt;/code&gt; (Division): Divides one number by another.
&lt;code&gt;`sql
SELECT 10 / 2; -- Result is 5
`&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;%&lt;/code&gt; (Modulus): Returns the remainder of a division.
&lt;code&gt;`sql
SELECT 10 % 3; -- Result is 1
`&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;Comparison Operators
These are used to compare two values.&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;=&lt;/code&gt; (Equal): Checks if two values are equal.
&lt;code&gt;`sql
SELECT  FROM employees WHERE salary = 50000;
`&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;!=&lt;/code&gt; or &lt;code&gt;&amp;lt;&amp;gt;&lt;/code&gt; (Not Equal): Checks if two values are not equal.
&lt;code&gt;`sql
SELECT  FROM employees WHERE department != 'HR';
`&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;gt;&lt;/code&gt; (Greater Than): Checks if the left value is greater than the right value.
&lt;code&gt;`sql
SELECT  FROM employees WHERE age &amp;gt; 30;
`&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;&lt;/code&gt; (Less Than): Checks if the left value is less than the right value.
&lt;code&gt;`sql
SELECT  FROM employees WHERE age &amp;lt; 25;
`&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;gt;=&lt;/code&gt; (Greater Than or Equal To): Checks if the left value is greater than or equal to the right value.
&lt;code&gt;`sql
SELECT  FROM employees WHERE experience &amp;gt;= 5;
`&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;=&lt;/code&gt; (Less Than or Equal To): Checks if the left value is less than or equal to the right value.
&lt;code&gt;`sql
SELECT  FROM employees WHERE experience &amp;lt;= 2;
`&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;Logical Operators
These are used to combine multiple conditions.&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;AND&lt;/code&gt;: Combines two or more conditions. All conditions must be true.
&lt;code&gt;`sql
SELECT  FROM employees WHERE age &amp;gt; 25 AND department = 'Finance';
`&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;OR&lt;/code&gt;: Combines two or more conditions. At least one condition must be true.
&lt;code&gt;`sql
SELECT  FROM employees WHERE age &amp;lt; 30 OR department = 'HR';
`&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;NOT&lt;/code&gt;: Reverses the result of a condition.
&lt;code&gt;`sql
SELECT  FROM employees WHERE NOT (age &amp;lt; 30);
`&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;Between and In Operators&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;BETWEEN&lt;/code&gt;: Selects values within a given range (inclusive).
&lt;code&gt;`sql
SELECT  FROM employees WHERE salary BETWEEN 30000 AND 50000;
`&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;IN&lt;/code&gt;: Checks if a value is within a set of values.
&lt;code&gt;`sql
SELECT  FROM employees WHERE department IN ('HR', 'Finance', 'IT');
`&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;LIKE and IS NULL Operators&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;LIKE&lt;/code&gt;: Used for pattern matching. &lt;code&gt;%&lt;/code&gt; represents zero or more characters, &lt;code&gt;_&lt;/code&gt; represents a single character.
`&lt;code&gt;&lt;/code&gt;sql
SELECT  FROM employees WHERE name LIKE 'J%'; -- Names starting with 'J'
SELECT  FROM employees WHERE name LIKE '_&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=3tCym9ZkEdk&amp;amp;t=3s" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=3tCym9ZkEdk&amp;amp;t=3s&lt;/a&gt;&lt;/p&gt;

</description>
      <category>operators</category>
      <category>beginners</category>
      <category>server</category>
    </item>
    <item>
      <title>RDBMS: Key Concepts and Principles of Relational Database Management System</title>
      <dc:creator>Shikha Gupta</dc:creator>
      <pubDate>Wed, 26 Jun 2024 10:56:22 +0000</pubDate>
      <link>https://dev.to/shikha_gupta_080e904b317e/rdbms-key-concepts-and-principles-of-relational-database-management-system-coj</link>
      <guid>https://dev.to/shikha_gupta_080e904b317e/rdbms-key-concepts-and-principles-of-relational-database-management-system-coj</guid>
      <description>&lt;p&gt;Sure, let's dive into the key concepts and principles of a Relational Database Management System (RDBMS):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Relational Model: The foundation of an RDBMS is based on the relational model, which organizes data into tables (relations) consisting of rows (tuples) and columns (attributes). Each table represents an entity, and each row represents a unique record of that entity.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Tables: Tables are structured with predefined columns that define the attributes or properties of the entities they represent. For example, a "Customers" table might have columns like CustomerID, Name, Address, etc.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Rows: Each row in a table represents a specific instance of the entity being modeled. For instance, in a "Customers" table, each row would represent a unique customer.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Columns: Columns define the type of data that can be stored in them (such as integers, strings, dates, etc.) and enforce constraints (like uniqueness or not null) to maintain data integrity.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Keys: Keys are used to uniquely identify rows within a table. The Primary Key uniquely identifies each record in the table, while a Foreign Key establishes a link between tables, ensuring referential integrity.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Relationships: Relationships between tables are established using keys. A common relationship is the One-to-Many relationship, where one record in one table can relate to many records in another table.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Normalization: This process eliminates redundancy and ensures data integrity by organizing data into tables and defining relationships between them. It reduces data duplication and improves efficiency.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;ACID Properties: Transactions in RDBMS systems are designed to be reliable and consistent, adhering to the ACID properties:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Atomicity: Transactions are treated as a single unit of work.&lt;/li&gt;
&lt;li&gt;Consistency: Data must meet all defined rules (constraints) before being committed.&lt;/li&gt;
&lt;li&gt;Isolation: Transactions occur independently without interference.&lt;/li&gt;
&lt;li&gt;Durability: Changes made by committed transactions are permanent and survive system failures.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SQL (Structured Query Language): SQL is the standard language used to interact with RDBMS. It provides commands for querying data, updating records, defining schemas, and managing permissions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Transactions: A transaction is a sequence of SQL operations that are treated as a single unit. Transactions ensure data consistency and integrity by either committing (making changes permanent) or rolling back (reverting changes) based on success or failure.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These concepts form the backbone of RDBMS systems, providing a robust framework for storing, manipulating, and retrieving data in a structured manner.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=N07j6oVYT6U&amp;amp;t=778s"&gt;https://www.youtube.com/watch?v=N07j6oVYT6U&amp;amp;t=778s&lt;/a&gt;&lt;/p&gt;

</description>
      <category>concepts</category>
      <category>management</category>
      <category>system</category>
      <category>database</category>
    </item>
  </channel>
</rss>
