<?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%2FAlter-Table-Statement%2FEnglish</id>
		<title>PostgreSQL-Database/C2/Alter-Table-Statement/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%2FAlter-Table-Statement%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PostgreSQL-Database/C2/Alter-Table-Statement/English&amp;action=history"/>
		<updated>2026-05-12T23:16:43Z</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/Alter-Table-Statement/English&amp;diff=57709&amp;oldid=prev</id>
		<title>Madhurig at 06:22, 11 May 2026</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PostgreSQL-Database/C2/Alter-Table-Statement/English&amp;diff=57709&amp;oldid=prev"/>
				<updated>2026-05-11T06:22:54Z</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:22, 11 May 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&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;* '''PostgreSQL version 18.1''', and&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;* '''PostgreSQL version 18.1''', and&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;div&gt;* '''PgAdmin4 version 9.11'''.&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;* '''PgAdmin4 version 9.11'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;EduPyramids periodically verifies the correctness of the tutorials for subsequent versions. &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Changes, if any, are explained through the Instruction Sheet.&lt;/ins&gt;&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;/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 colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&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;'''Pre-requisites '''&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;'''Pre-requisites '''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;To follow this tutorial,&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Learners should have '''PostgreSQL''' and '''pgAdmin4 '''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* For the prerequisite '''PostgreSQL''' tutorials, please visit&lt;/ins&gt;&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;[https://edupyramids.org/ https://EduPyramids.org] '''&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;[https://edupyramids.org/ https://EduPyramids.org] '''&lt;/div&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/Alter-Table-Statement/English&amp;diff=57708&amp;oldid=prev</id>
		<title>Madhurig at 07:21, 9 May 2026</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PostgreSQL-Database/C2/Alter-Table-Statement/English&amp;diff=57708&amp;oldid=prev"/>
				<updated>2026-05-09T07:21:55Z</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 07:21, 9 May 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&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;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;'''Keywords&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;: &lt;/del&gt;'''PostgreSQL, pgAdmin4, Alter Table, add marks, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;numeric type&lt;/del&gt;, EduPyramids, video tutorial.&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;'''Keywords'''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;: &lt;/ins&gt;PostgreSQL, pgAdmin4, Alter Table, add marks, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Numeric datatype, syntax, RENAME COLUMN&lt;/ins&gt;, EduPyramids, video tutorial.&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;/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/Alter-Table-Statement/English&amp;diff=57707&amp;oldid=prev</id>
		<title>Madhurig: Created page with &quot;'''Title of the Script: Alter Table Statement'''.  '''Author: EduPyramids'''   '''Keywords: '''PostgreSQL, pgAdmin4, Alter Table, add marks, numeric type, EduPyramids, video t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PostgreSQL-Database/C2/Alter-Table-Statement/English&amp;diff=57707&amp;oldid=prev"/>
				<updated>2026-05-08T16:42:05Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Title of the Script: Alter Table Statement&amp;#039;&amp;#039;&amp;#039;.  &amp;#039;&amp;#039;&amp;#039;Author: EduPyramids&amp;#039;&amp;#039;&amp;#039;   &amp;#039;&amp;#039;&amp;#039;Keywords: &amp;#039;&amp;#039;&amp;#039;PostgreSQL, pgAdmin4, Alter Table, add marks, numeric type, EduPyramids, video t...&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: Alter Table Statement'''.&lt;br /&gt;
&lt;br /&gt;
'''Author: EduPyramids'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''PostgreSQL, pgAdmin4, Alter Table, add marks, numeric type, EduPyramids, video tutorial.&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;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this Spoken Tutorial on '''Alter Table Statement''' 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;
* '''Alter table statement '''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
* '''Ubuntu 24.04 LTS'''&lt;br /&gt;
* '''PostgreSQL version 18.1''', and&lt;br /&gt;
* '''PgAdmin4 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;
'''Pre-requisites '''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org] '''&lt;br /&gt;
&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
* Learners should have '''PostgreSQL''' and '''pgAdmin4 '''&lt;br /&gt;
* For the prerequisite '''PostgreSQL''' tutorials, please visit this website. &lt;br /&gt;
&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;
&lt;br /&gt;
* '''al-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link on this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and extract the file.&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 learn about the '''Alter table'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Alter Table'''&lt;br /&gt;
|| '''ALTER TABLE''' is used to modify the structure of an existing table.&lt;br /&gt;
&lt;br /&gt;
It can add, delete, or modify columns.&lt;br /&gt;
&lt;br /&gt;
It is used to add or remove constraints.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of Alter Table statement'''&lt;br /&gt;
&lt;br /&gt;
'''ALTER TABLE  table_name'''&lt;br /&gt;
&lt;br /&gt;
'''ADD column_name datatype;''' &lt;br /&gt;
|| This is the syntax of the '''Alter table '''statement to add a column.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us understand with an example.&lt;br /&gt;
|- &lt;br /&gt;
|| Show''' pgAdmin 4 '''interface&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 * FROM students;'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Show the student table&lt;br /&gt;
&lt;br /&gt;
Highlight: '''student ID, name, city, gender, date of birth, and CGPA'''.&lt;br /&gt;
|| This is the '''students''' table with its current columns.&lt;br /&gt;
&lt;br /&gt;
Now, we will add new columns to store subject marks.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| To add a new column, we will use the '''ALTER TABLE''' statement.&lt;br /&gt;
|- &lt;br /&gt;
|| Type:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ALTER TABLE students'''&lt;br /&gt;
&lt;br /&gt;
'''ADD Maths NUMERIC,'''&lt;br /&gt;
&lt;br /&gt;
'''ADD English NUMERIC;'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Execute query '''button.&lt;br /&gt;
|| Let's type the following query.&lt;br /&gt;
&lt;br /&gt;
In this query we will add two columns '''Maths''' and '''English''' with '''Numeric data type'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Execute query icon'''.&lt;br /&gt;
&lt;br /&gt;
The table now has two new columns '''Maths''' and '''English'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type:&lt;br /&gt;
&lt;br /&gt;
'''SELECT * FROM students;'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Execute query '''button.&lt;br /&gt;
|| To see the added columns type this query.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can see the maths and english columns added successfully.&lt;br /&gt;
|- &lt;br /&gt;
|| Copy and paste from code file: &lt;br /&gt;
&lt;br /&gt;
'''UPDATE students AS s'''&lt;br /&gt;
&lt;br /&gt;
'''SET '''&lt;br /&gt;
&lt;br /&gt;
'''maths = v.maths,'''&lt;br /&gt;
&lt;br /&gt;
'''english = v.english'''&lt;br /&gt;
&lt;br /&gt;
'''FROM (VALUES'''&lt;br /&gt;
&lt;br /&gt;
'''('S101',72,75), ('S102',88,91), ('S103',69,73),'''&lt;br /&gt;
&lt;br /&gt;
'''('S104',85,87), ('S105',64,70), ('S106',92,95),'''&lt;br /&gt;
&lt;br /&gt;
'''('S107',78,81), ('S108',86,89), ('S109',71,74),'''&lt;br /&gt;
&lt;br /&gt;
'''('S110',83,85), ('S111',67,69), ('S112',90,93),'''&lt;br /&gt;
&lt;br /&gt;
'''('S113',76,80), ('S114',82,84), ('S115',68,72),'''&lt;br /&gt;
&lt;br /&gt;
'''('S116',74,77), ('S117',89,92)'''&lt;br /&gt;
&lt;br /&gt;
''') AS v(studentid, maths, english)'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE s.studentid = v.studentid;'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Execute Query''' button on the tool bar.&lt;br /&gt;
|| Let us copy and paste this query from the '''code file''' into the query window.&lt;br /&gt;
&lt;br /&gt;
Let us add marks to the Maths and English columns of the students table.&lt;br /&gt;
&lt;br /&gt;
We will use the UPDATE statement to populate marks for the existing student records.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
|- &lt;br /&gt;
|| Type:&lt;br /&gt;
&lt;br /&gt;
'''ALTER TABLE students RENAME COLUMN dob TO date_of_birth;'''&lt;br /&gt;
&lt;br /&gt;
Highlight output.&lt;br /&gt;
|| Now let us see how to modify a column name.&lt;br /&gt;
&lt;br /&gt;
Type this query.This query changes the column name from dob to date of birth.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
The column name is modified successfully.&lt;br /&gt;
|- &lt;br /&gt;
|| Type:&lt;br /&gt;
&lt;br /&gt;
'''SELECT * FROM students;'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Execute query '''button.&lt;br /&gt;
|| To see the inserted marks and change in column name, type this query.&lt;br /&gt;
&lt;br /&gt;
Let us execute it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The table is modified successfully.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt about,&lt;br /&gt;
* '''Alter table statement'''&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 8'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
As an assignment,&lt;br /&gt;
&lt;br /&gt;
* Add a new column''' email '''with '''datatype VARCHAR(50) '''to the''' students table.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| We encourage you to try this assignment.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
This Spoken Tutorial is brought to you by EduPyramids Educational Services Private limited SINE IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
|| Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Madhurig</name></author>	</entry>

	</feed>