<?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%2FLogical-Operators%2FEnglish</id>
		<title>PostgreSQL-Database/C2/Logical-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%2FLogical-Operators%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PostgreSQL-Database/C2/Logical-Operators/English&amp;action=history"/>
		<updated>2026-04-18T09:49:06Z</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/Logical-Operators/English&amp;diff=57669&amp;oldid=prev</id>
		<title>Ketkinaina at 10:41, 17 April 2026</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PostgreSQL-Database/C2/Logical-Operators/English&amp;diff=57669&amp;oldid=prev"/>
				<updated>2026-04-17T10:41:46Z</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 10:41, 17 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: Logical Operators in PostgreSQL'''&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: Logical Operators in PostgreSQL'''&lt;/div&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;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;'''Author: EduPyramids &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/ Ketki Bhamble&lt;/del&gt;'''&lt;/div&gt;&lt;/td&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: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Author: EduPyramids'''&lt;/div&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;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, Logical operators, AND, OR, NOT, WHERE, 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, Logical operators, AND, OR, NOT, WHERE, EduPyramids, Video Tutorial.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=PostgreSQL-Database/C2/Logical-Operators/English&amp;diff=57668&amp;oldid=prev</id>
		<title>Ketkinaina: Created page with &quot;'''Title of the Script: Logical Operators in PostgreSQL'''  '''Author: EduPyramids / Ketki Bhamble'''  '''Keywords: '''PostgreSQL, pgAdmin 4, Logical operators, AND, OR, NOT,...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PostgreSQL-Database/C2/Logical-Operators/English&amp;diff=57668&amp;oldid=prev"/>
				<updated>2026-04-17T10:40:21Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Title of the Script: Logical Operators in PostgreSQL&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Author: EduPyramids / Ketki Bhamble&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Keywords: &amp;#039;&amp;#039;&amp;#039;PostgreSQL, pgAdmin 4, Logical operators, AND, OR, NOT,...&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: Logical Operators in PostgreSQL'''&lt;br /&gt;
&lt;br /&gt;
'''Author: EduPyramids / Ketki Bhamble'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''PostgreSQL, pgAdmin 4, Logical operators, AND, OR, NOT, WHERE, EduPyramids, Video Tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this Spoken Tutorial on''' Logical Operators '''in''' PostgreSQL'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn about&lt;br /&gt;
* '''AND''', '''OR '''and''' NOT''' operators.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements '''&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;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites '''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org] '''&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;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
* '''lo-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;
This file is provided in the '''Code Files''' link of this tutorial page.&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;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Logical Operators'''&lt;br /&gt;
|| '''Logical''' '''operators''' are used to combine multiple conditions in a query.&lt;br /&gt;
&lt;br /&gt;
They help to filter records by evaluating conditions.&lt;br /&gt;
&lt;br /&gt;
We will use '''AND''', '''OR''', and '''NOT '''operators to explain various conditions'''.'''&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us use the '''AND''' operator in a query.&lt;br /&gt;
&lt;br /&gt;
I have opened the '''pgAdmin 4 '''interface and connected to the localhost server.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: &lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city = 'Pune' AND gender = 'Female';'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:WHERE'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:AND'''&lt;br /&gt;
|| Let us type the following query.&lt;br /&gt;
&lt;br /&gt;
Here, we are using the '''WHERE''' clause along with the '''AND''' operator.&lt;br /&gt;
&lt;br /&gt;
The condition checks if the city is Pune and gender is Female.&lt;br /&gt;
&lt;br /&gt;
In '''AND''' operation, only those records are shown that satisfy both the conditions.&lt;br /&gt;
|- &lt;br /&gt;
|| click the '''execute''' '''query''' button.&lt;br /&gt;
&lt;br /&gt;
Point&lt;br /&gt;
|| Click the''' Execute''' query icon on the toolbar.&lt;br /&gt;
&lt;br /&gt;
The output shows only two records that satisfy the given condition.&lt;br /&gt;
&lt;br /&gt;
Observe that records of only female students from Pune are displayed.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us use the '''OR''' operator in an example.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type''': &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city = 'Mumbai' OR city = 'Delhi';'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:WHERE'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:OR'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
|| Now type the following query.&lt;br /&gt;
&lt;br /&gt;
Here, we use the '''WHERE''' clause with the '''OR''' operator.&lt;br /&gt;
&lt;br /&gt;
This condition checks whether the city is Mumbai or Delhi. &lt;br /&gt;
&lt;br /&gt;
Rows that satisfy at least one of these conditions are displayed.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
We see the details of students from Mumbai and Delhi.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now, let us see an example of the '''NOT''' operator.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE NOT gender = 'Male';'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:WHERE'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:NOT'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
&lt;br /&gt;
|| Type the following query.&lt;br /&gt;
&lt;br /&gt;
Here, we use the '''WHERE''' clause with the '''NOT''' operator.&lt;br /&gt;
&lt;br /&gt;
This condition excludes all the rows where gender is Male.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
The output shows the details of all the female students. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we learnt about&lt;br /&gt;
* '''AND''', '''OR''' and''' NOT operators'''.&lt;br /&gt;
&lt;br /&gt;
|| With this, we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
'''As an Assignment, '''&lt;br /&gt;
* Retrieve the details of students who are from Chennai and whose gender is Female.&lt;br /&gt;
* Display the records of students who are from Hyderabad or Bangalore.&lt;br /&gt;
* List all students who are not from Pune.&lt;br /&gt;
* Find students whose gender is Male and not from Mumbai.&lt;br /&gt;
* List student details where city is Jaipur or Ahmedabad, but gender is not Female.&lt;br /&gt;
|| We encourage you to do this assignment.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 12'''&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 for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	</feed>