<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=PostgreSQL-Database%2FC2%2FConditional-Operators%2FEnglish</id>
		<title>PostgreSQL-Database/C2/Conditional-Operators/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=PostgreSQL-Database%2FC2%2FConditional-Operators%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PostgreSQL-Database/C2/Conditional-Operators/English&amp;action=history"/>
		<updated>2026-04-24T15:37:28Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=PostgreSQL-Database/C2/Conditional-Operators/English&amp;diff=57680&amp;oldid=prev</id>
		<title>Madhurig at 06:44, 24 April 2026</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PostgreSQL-Database/C2/Conditional-Operators/English&amp;diff=57680&amp;oldid=prev"/>
				<updated>2026-04-24T06:44:34Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 06:44, 24 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Title of the script: Conditional Operators''' &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Title of the script: Conditional Operators''' &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Authors: '''Ketki Bhamble EduPyramids&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Authors: '''Ketki Bhamble EduPyramids&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Keywords: '''PostgreSQL, pgAdmin 4, SQL, WHERE Clause, LIKE, percent sign, underscore, BETWEEN, NOT BETWEEN, IN, NOT IN, DISTINCT, EduPyramids, video tutorial.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Keywords: '''PostgreSQL, pgAdmin 4, SQL, WHERE Clause, LIKE, percent sign, underscore, BETWEEN, NOT BETWEEN, IN, NOT IN, DISTINCT, EduPyramids, video tutorial.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Madhurig</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=PostgreSQL-Database/C2/Conditional-Operators/English&amp;diff=57679&amp;oldid=prev</id>
		<title>Madhurig: Created page with &quot;'''Title of the script: Conditional Operators'''    '''Authors: '''Ketki Bhamble EduPyramids   '''Keywords: '''PostgreSQL, pgAdmin 4, SQL, WHERE Clause, LIKE, percent sign, un...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PostgreSQL-Database/C2/Conditional-Operators/English&amp;diff=57679&amp;oldid=prev"/>
				<updated>2026-04-24T06:43:57Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Title of the script: Conditional Operators&amp;#039;&amp;#039;&amp;#039;    &amp;#039;&amp;#039;&amp;#039;Authors: &amp;#039;&amp;#039;&amp;#039;Ketki Bhamble EduPyramids   &amp;#039;&amp;#039;&amp;#039;Keywords: &amp;#039;&amp;#039;&amp;#039;PostgreSQL, pgAdmin 4, SQL, WHERE Clause, LIKE, percent sign, un...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Title of the script: Conditional Operators''' &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Authors: '''Ketki Bhamble EduPyramids&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''PostgreSQL, pgAdmin 4, SQL, WHERE Clause, LIKE, percent sign, underscore, BETWEEN, NOT BETWEEN, IN, NOT IN, DISTINCT, EduPyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
|- &lt;br /&gt;
| align=center| '''Visual Cue'''&lt;br /&gt;
| align=center| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this Spoken Tutorial on '''Conditional Operators''' in PostgreSQL.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn about,&lt;br /&gt;
&lt;br /&gt;
* '''LIKE, BETWEEN, NOT BETWEEN, IN, NOT IN '''and''' DISTINCT operators '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Ubuntu 24.04 LTS'''&lt;br /&gt;
* '''PostgreSQL version 18.1''', and&lt;br /&gt;
* '''PgAdmin 4 version 9.11'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org] '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
* Learners should have '''PostgreSQL''' and '''pgAdmin 4 '''&lt;br /&gt;
* For the prerequisite '''PostgreSQL''' tutorials, please visit this website. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Code Files'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
&lt;br /&gt;
* '''co-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link on this tutorial page.&lt;br /&gt;
|| The following '''code file''' is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is provided in the''' Code Files''' link of this tutorial page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and extract the file.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Show students-table'''&lt;br /&gt;
|| We are using the students table. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It contains '''studentid''', '''studentname''', '''city''', '''gender''', '''date of birth''', and '''cgpa'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''LIKE operator'''&lt;br /&gt;
|| The '''LIKE''' operator is used to search for a specified pattern in a column. &lt;br /&gt;
&lt;br /&gt;
It is used along with the '''WHERE''' '''clause'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Syntax of LIKE operator'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''SELECT column1, column2, ...'''&lt;br /&gt;
&lt;br /&gt;
'''FROM table_name'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE columnN LIKE pattern; '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Highlight pattern keyword.'''&lt;br /&gt;
|| This is the syntax of the''' LIKE '''operator.&lt;br /&gt;
&lt;br /&gt;
The '''pattern '''may contain '''percent '''sign or '''underscore'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Percent''' sign represents zero or more characters. &lt;br /&gt;
&lt;br /&gt;
'''Underscore''' represents exactly one character.&lt;br /&gt;
|- &lt;br /&gt;
|| Type the command:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''SELECT * FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE studentname LIKE 'R%';'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight''':&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight''': WHERE'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight''':‘R%’'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the execute query button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| Let us retrieve the records of students whose names start with the letter '''R'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type the following query.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The''' WHERE clause''' filters rows and displays the student names starting with '''R'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The''' percent''' sign allows any number of characters after''' R'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us execute the query. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output displays students whose names start with '''R'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type the query:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''SELECT studentname, city'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city LIKE '%a';'''&lt;br /&gt;
|| Now let’s find students whose city name ends with letter '''a''' using the '''WHERE clause'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type the following query.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight LIKE '%a''''&lt;br /&gt;
|| This query retrieves '''studentname''' and''' city'''. &lt;br /&gt;
&lt;br /&gt;
The pattern ''''%a' '''means any number of characters followed by the letter '''a'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Click the Execute query icon.'''&lt;br /&gt;
|| Let us execute the query. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output shows student from the''' city''' ending with '''a'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''BETWEEN Operator'''&lt;br /&gt;
|| The '''BETWEEN '''operator is used to filter values within a specified range. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It works with numbers, dates, and text values. The range values are inclusive.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Syntax of BETWEEN Operator'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''SELECT column name(s)'''&lt;br /&gt;
&lt;br /&gt;
'''FROM table name'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE column name BETWEEN value1 AND value2;'''&lt;br /&gt;
|| This is the '''syntax''' of '''BETWEEN''' operator.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the command: &lt;br /&gt;
&lt;br /&gt;
SELECT studentname, cgpa FROM students WHERE cgpa BETWEEN 8 AND 9;'''&lt;br /&gt;
|| Let us now find students whose''' CGPA''' is between 8 and 9. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type the following query.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight BETWEEN 8 AND 9'''&lt;br /&gt;
|| This query retrieves the '''studentname''' and '''c g p a'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''BETWEEN''' '''clause''' filters rows where '''CGPA''' is between 8 and 9.&lt;br /&gt;
&lt;br /&gt;
It includes values greater than or equal to 8 and less than or equal to 9.&lt;br /&gt;
|- &lt;br /&gt;
|| Click the '''Execute query icon.'''&lt;br /&gt;
|| Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output shows students whose''' CGPA''' is within the range of 8 and 9.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the command''': &lt;br /&gt;
&lt;br /&gt;
'''SELECT studentname, dob FROM students WHERE dob BETWEEN '1996-01-01' AND '1996-12-31';'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Highlight dob BETWEEN '1996-01-01' AND '1996-12-31''''&lt;br /&gt;
|| Now, let us find students born in the year 1996.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type the following query.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This query retrieves the '''studentname''' and date of birth. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''BETWEEN clause '''filters students born between the specified dates.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Click the Execute query icon.'''&lt;br /&gt;
|| Let us execute the query. &lt;br /&gt;
&lt;br /&gt;
The output displays students born in the year 1996.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''NOT BETWEEN Operator'''&lt;br /&gt;
|| The''' NOT BETWEEN''' operator is used to filter values that fall outside a specified range.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Syntax of NOT BETWEEN Operator'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''SELECT column name(s)'''&lt;br /&gt;
&lt;br /&gt;
'''FROM table name'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE column name NOT BETWEEN'''&lt;br /&gt;
&lt;br /&gt;
'''value1 AND value2;'''&lt;br /&gt;
|| This is the syntax of the '''NOT BETWEEN operator.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''SELECT studentname, cgpa'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE cgpa NOT BETWEEN 8 AND 9;'''&lt;br /&gt;
|| Let us retrieve students whose '''CGPA''' is not between 8 and 9.Type this query.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight NOT BETWEEN 8 AND 9'''&lt;br /&gt;
|| The '''NOT''' '''BETWEEN''' clause returns rows where '''cgpa''' is less than 8 or greater than 9.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the '''execute''' '''query''' icon&lt;br /&gt;
|| Let us execute the query. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output displays students whose '''CGPA''' falls outside this range.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 13'''&lt;br /&gt;
&lt;br /&gt;
'''IN Operator'''&lt;br /&gt;
|| The '''IN''' operator is used to specify multiple values in a '''WHERE clause'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It checks whether a column matches any value in a given list.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 14'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of IN Operator'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''SELECT column name(s)'''&lt;br /&gt;
&lt;br /&gt;
'''FROM table name'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE column name IN (value1,'''&lt;br /&gt;
&lt;br /&gt;
'''value2, ...);'''&lt;br /&gt;
|| This is the syntax of the '''IN operator.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''SELECT * FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city IN ('Mumbai', 'Pune', 'Delhi');'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| Let us retrieve students who belong to '''Mumbai, Pune''', or''' Delhi'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type the following query.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight city IN ('Mumbai','Pune','Delhi')'''&lt;br /&gt;
|| In this query, the '''IN operator''' matches the city with the specified values.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the '''execute''' '''query''' icon&lt;br /&gt;
|| Click on the '''Execute''' '''query''' icon to execute the query. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output displays students from '''Mumbai, Pune''', and '''Delhi'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 15'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''NOT IN Operator'''&lt;br /&gt;
|| The '''NOT IN''' operator excludes specified values from the result set.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 16'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Syntax of NOT IN Operator'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''SELECT column name(s)'''&lt;br /&gt;
&lt;br /&gt;
'''FROM table name'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE column name NOT IN (value1,'''&lt;br /&gt;
&lt;br /&gt;
'''value2, ...);'''&lt;br /&gt;
|| This is the syntax of the '''NOT IN operator.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT * FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city NOT IN ('Mumbai','Pune');'''&lt;br /&gt;
|| Now let us retrieve students who do not belong to '''Mumbai '''or '''Pune'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type the following query.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight NOT IN ('Mumbai','Pune')&lt;br /&gt;
|| The '''NOT IN operator''' filters out the specified cities and returns the remaining records.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the '''execute''' '''query''' icon&lt;br /&gt;
|| Let us execute the query. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output shows students from other cities except '''Mumbai '''and '''Pune'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 17'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DISTINCT Operator'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| '''DISTINCT keyword '''is used in the '''SELECT statement '''to list distinct and unique values.&lt;br /&gt;
&lt;br /&gt;
It removes the duplicate rows or column values from the query result.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 18'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Syntax of DISTINCT Operator'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT DISTINCT column-names FROM table-name WHERE [condition]'''&lt;br /&gt;
|| The '''syntax''' is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the command:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT DISTINCT city FROM students; '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| Type the query as shown here.&lt;br /&gt;
&lt;br /&gt;
This '''select statement '''will retrieve the unique city names from the '''students table'''.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
Output will eliminate duplicate values from the specified column '''city'''.&lt;br /&gt;
&lt;br /&gt;
It only shows distinct city names.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| With this, we come to the end of this tutorial.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 19'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt about&lt;br /&gt;
&lt;br /&gt;
* '''LIKE, BETWEEN, NOT BETWEEN, IN, NOT IN '''and''' DISTINCT operators'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 20 +21+22'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''As an Assignment, '''&lt;br /&gt;
&lt;br /&gt;
* Retrieve student records whose names start with letter''' A''' using the '''LIKE operator'''.&lt;br /&gt;
* Display the '''studentname '''and '''city''' where city names contain the letter '''“n”'''.&lt;br /&gt;
* List students who belong to '''Chennai, Kolkata, '''or''' Bengaluru''' using the''' IN operator'''.&lt;br /&gt;
* Find students whose '''CGPA '''is between 7 and 8.5.&lt;br /&gt;
* Display students records who are born after 1997 using the '''NOT BETWEEN operator'''.&lt;br /&gt;
* Retrieve the distinct gender value'''s''' from the students table.&lt;br /&gt;
* Display students whose city is neither '''Chennai '''nor''' Jaipur'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| As an Assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 23&lt;br /&gt;
&lt;br /&gt;
'''This '''Spoken''' '''Tutorial''' is brought to you by '''EduPyramids''' Educational Private Limited SINE IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| Thank You.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Madhurig</name></author>	</entry>

	</feed>