SlideShare a Scribd company logo
‫ا‬ ِ‫ن‬ ٰ‫م‬ْ‫ح‬َّ‫الر‬ ِ‫هللا‬ ِ‫م‬ْ‫س‬ِ‫ب‬
ِ‫ْم‬‫ي‬ ِ‫ح‬َّ‫لر‬
ِ‫س‬َ‫ي‬ َ‫و‬ ‫ي‬ ِ
‫ر‬ْ‫د‬َ‫ص‬ ‫ي‬ِ‫ل‬ ْ‫ح‬َ‫ر‬ْ‫ش‬‫ا‬ ِ‫ب‬َ‫ر‬
‫ي‬ ِ
‫ر‬ْ‫م‬َ‫أ‬ ‫ي‬ِ‫ل‬ ْ‫ر‬
َ‫ي‬ ‫ي‬ِ‫ن‬‫ا‬َ‫س‬ِ‫ل‬ ْ‫ن‬ِ‫م‬ ً‫ة‬َ‫د‬ْ‫ق‬ُ‫ع‬ ْ‫ل‬ُ‫ل‬ْ‫اح‬ َ‫و‬
‫ي‬ِ‫ل‬ ْ‫و‬َ‫ق‬ ‫وا‬ُ‫ه‬َ‫ق‬ْ‫ف‬
SQL Commands -
DDL
Lecture
Course Instructor: Samra Kanwal
Database
Relational
Databases
Non Relational
Databases
Types of Databases
MySQL
• Open Source relational database management system
• Uses the SQL (Structured Query Language)
• A leading database for web applications
• Used for small apps to large enterprise apps
• Used with multiple languages (Java, PHP, Node, Python, C# etc.)
• Cross platform
Management Tools
• Desktop tools: MySQL Workbench
• Web based tool: PHPmyAdmin
Lecture - MY-SQL/ SQL Commands - DDL.pptx
DDL and DML
• These SQL commands are mainly categorized into four categories as discussed below:
• DDL(Data Definition Language) : DDL or Data Definition Language actually consists of the SQL
commands that can be used to define the database schema. It simply deals with descriptions of
the database schema and is used to create and modify the structure of database objects in
database. Examples of DDL commands:
• CREATE – is used to create the database or its objects
• DROP – is used to delete objects from the database.
• ALTER-is used to alter the structure of the database.
• TRUNCATE–is used to remove all records from a table, including all spaces allocated for the records are removed.
• COMMENT –is used to add comments to the data dictionary.
• RENAME –is used to rename an object existing in the database.
• DML(Data Manipulation Language) : The SQL commands that deals with the manipulation of
data present in database belong to DML or Data Manipulation Language and this includes most of
the SQL statements. Examples of DML:
• SELECT – is used to retrieve data from the a database.
• INSERT – is used to insert data into a table.
• UPDATE – is used to update existing data within a table.
• DELETE – is used to delete records from a database table.
DCL and TCL
• DCL(Data Control Language) : DCL includes commands such as
GRANT and REVOKE which mainly deals with the rights, permissions
and other controls of the database system. Examples of DCL
commands:
• GRANT-gives user’s access privileges to database.
• REVOKE-withdraw user’s access privileges given by using the GRANT
command.
• TCL(transaction Control Language) : TCL commands deals with the
transaction within the database. Examples of TCL commands:
• COMMIT– commits a Transaction.
• ROLLBACK– rollbacks a transaction in case of any error occurs.
• SAVEPOINT–sets a save point within a transaction.
• Relational Database Management System (RDBMS)
• RDBMS is a software that store data in the form of
relations(tables)
• What is Table ?
• A table is a data structure that store data in the form of rows
and cols
• Cols are fields and row are records
• table is basic fundamental unit of storage in DB
Prepared by Khawaja Ubaid Ur Rehman
• Example:
• A university Database
• Table : Student
• Fields:
• Type:
• Type:
• Student
• Sid sname Address Gender Marks email
• 1 Farooq Lhr M 70 abc@h.com
• 2 Ahmed ISB M 85 xyz@h.com
• 3 ZAhid Lhr M 40 uvw@h.com
• Primary Key Col
• - Every rows should has unique identity
• - Every table should has primary key col
Sid Sname Address Gender Marks email
int string string char int string
int varchar(20) varchar(40) varchar(6) float varchar(30)
Prepared by Khawaja Ubaid Ur Rehman
MY SQL
• RDMBS developed by ORACLE Corporation
• Table Operations
• 1- Insert
• 2- Delete
• 3- Update
• 4- Query
• What is Query?
• Query is a question about data from database.
• All databases used a special language for Query i.e. SQL (Structured Query
Language)
SQL-DDL
• Structured Query Language.
• SQL is a standard language for accessing and manipulating
databases.
• Create Database Statement
The CREATE DATABASE statement is used to create a new SQL database.
SQL Syntax:
Create database databasename
Create database hotel;
Create database gym;
2
SQL-DDL (cont…)
• Create table statement
• The create table statement is used to create a new table in a database.
Syntax:
Create Table Create Table
CREATE TABLE table_name (
column1 datatype,
column2 datatype,
column3 datatype,
....
);
Create Table-SQL
CREATE TABLE Member(
MemID int Primary Key,
LastName varchar(10),
FirstName varchar(15),
Address varchar(25),
City varchar(20)
);
3
Exercise #1
• Create a table called supplier which has 3
columns.
• The first column is called supplier_id.
• The second column is called supplier_name.
• The third column is called contact_name
6
Solution
CREATE TABLE supplier(
supplier_id int Primary Key,
supplier_name varchar(20),
contact_name varchar(20)
);
7
Exercise#2
• Create a SQL table called customer that stores
customer ID, name, address, city, state and zip
code information.
8
Solution Exercise 2
CREATE TABLE customer(
customer_id int Primary Key,
customer_name varchar(50),
address varchar(50),
city varchar(50),
state varchar(50),
zip_code varchar(50)
);
9
SQL-DDL (cont…)
• Drop database statement
• The DROP DATABASE statement is used to drop an existing SQL
database.
• Syntax:
DROP DATABASE database_name;
• Example:
Drop database university;
• Note: Be careful before dropping a database. Deleting a database will
result in loss of complete information stored in the database!
T1 T2
university
SQL-DDL (cont…)
• Drop table statement
• The DROP table statement is used to drop an existing table in
database.
• Syntax:
DROP table table_name;
• Example:
Drop table T1;
T1 T2
T3 T4
university
SQL-DDL (cont…)
• Drop table statement
• The DROP table statement is used to drop an existing table in
database.
• Syntax:
DROP table table_name;
• Example:
Drop table T1;
• Note: Be careful before dropping a table. Deleting a table will result in
loss of complete information stored in the table!
T1 T2
T3 T4
university
SQL-DDL (cont…)
• SQL Truncate table
• The truncate table statement is used to delete the data inside a table,
but not the table itself.
• Syntax:
TRUNCATE table_name;
• For example,
Truncate T1;
id nm Age
22 ali 18
27 saad 18
university
T1 T2
SQL-DDL (cont…)
• SQL Truncate table
• The truncate table statement is used to delete the data inside a table,
but not the table itself.
• Syntax:
TRUNCATE table_name;
• For example,
Truncate T1;
id nm Age
22 ali 18
27 saad 18
university
T1 T2
SQL-DDL (cont…)
• Rename SQL statement
• RENAME table renames one or more tables.
• Syntax:
RENAME TABLE old_table TO new_table;
• For example
Rename table T1 to employee;
id nm Age
university
employee T2
SQL ALTER TABLE Statement
• The ALTER TABLE statement is used to add, delete, or modify
columns in an existing table.
• ALTER TABLE - ADD a Column
• To add a column in a table, use the following syntax:
• Syntax
ALTER TABLE table_name ADD column_name datatype;
SQL ALTER TABLE Statement
Write a SQL query to alter the employee table and add an attribute email to
employee table.
ALTER TABLE table_name ADD column_name datatype;
ALTER TABLE Employee ADD Email varchar(5);
• ALTER TABLE - ADD multiple Columns
• To add multiple columns in a table, use the following syntax:
• Syntax
ALTER TABLE table_name ADD new_column_name column_definition
[ FIRST | AFTER column_name ], ADD new_column_name column_definition [ FIRST
| AFTER column_name ],...;
Emp_ID Emp_Name City Phone_no Slry
SQL ALTER TABLE Statement
• Write a SQL query to add height and weight fields to the
existing table of employee.
ALTER TABLE employee ADD height float AFTER Slry, ADD
weight float AFTER Slry;
Emp_ID Emp_Name City Phone_no Slry Email weight height
SQL ALTER TABLE Modify Column
• If you want to modify an existing column in SQL table, syntax
is given below:
• Syntax:
ALTER TABLE table_name modify column_name datatype;
• Write a sql query to change the email field length from 5 to
15.
alter table employee modify email varchar(15);
SQL ALTER TABLE DROP Column
• Drop column using alter statement will delete a particular column.
• The syntax of alter table drop a column is given below:
• Syntax:
Alter table table_name drop column column_name;
Alter table employee drop column city;
Emp_ID Emp_Name City Phone_no Slry Email weight height
Emp_ID Emp_Name Phone_no Slry Email weight height
SQL ALTER TABLE DROP Multiple Columns
• Drop column using alter statement will delete a particular column.
• The syntax of alter table drop a column is given below:
• Syntax:
Alter table table_name drop column column_name1, drop column
column_name2,….drop column column_nameN;
Write an sql query to drop height and weight columns?
Alter table employee drop column height, drop column weight;
Emp_ID Emp_Name Phone_no Slry Email weight height
Emp_ID Emp_Name Phone_no Slry Email
SQL ALTER TABLE Rename column
• Using SQL Alter table rename, we can rename a column name.
• Syntax:
ALTER TABLE table_name CHANGE COLUMN old_name new_name
column_definition [ FIRST | AFTER column_name ]
Write an sql query to change column name from Slry to Salary?
Alter table employee change column Slry Salary int;

More Related Content

PPTX
Unit - II.pptx
PPTX
Using Basic Structured Query Language lo1.pptx
PPTX
unit-ii.pptx
PPTX
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
PPTX
DBMS UNIT-2.pptx ggggggggggggggggggggggg
PDF
SQL_NOTES.pdf
PPTX
Relational Database Language.pptx
PPTX
SQL SERVER Training in Pune Slides
Unit - II.pptx
Using Basic Structured Query Language lo1.pptx
unit-ii.pptx
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
DBMS UNIT-2.pptx ggggggggggggggggggggggg
SQL_NOTES.pdf
Relational Database Language.pptx
SQL SERVER Training in Pune Slides

Similar to Lecture - MY-SQL/ SQL Commands - DDL.pptx (20)

PPTX
Structures Query Language btech data science
PPTX
SQL.pptx for the begineers and good know
PDF
Structures query language ___PPT (1).pdf
PPTX
SQL(DDL & DML)
PPTX
Introduction to database and sql fir beginers
PDF
Rdbms day3
PPTX
shs tvl ict_Programming Introduction to SQl.pptx
PDF
Database Systems - Introduction to SQL (Chapter 3/1)
PDF
Complete SQL Tutorial In Hindi By Rishabh Mishra (Basic to Advance).pdf
PPTX
Database COMPLETE
PDF
sql notes Provideby AGN HUB Tech & It Solutions
PPTX
SQL Commands
PPT
UNIT2.ppt
PPTX
SQL: Data Definition Language(DDL) command
PPTX
Structured Query Language
PPTX
4 SQL DML.pptx ASHEN WANNIARACHCHI USESS
PPTX
20190326165338_ISYS6508-PPT5-W5-S6-R0.pptx
PPTX
lovely
PPTX
Introduction to Structured Query Language
Structures Query Language btech data science
SQL.pptx for the begineers and good know
Structures query language ___PPT (1).pdf
SQL(DDL & DML)
Introduction to database and sql fir beginers
Rdbms day3
shs tvl ict_Programming Introduction to SQl.pptx
Database Systems - Introduction to SQL (Chapter 3/1)
Complete SQL Tutorial In Hindi By Rishabh Mishra (Basic to Advance).pdf
Database COMPLETE
sql notes Provideby AGN HUB Tech & It Solutions
SQL Commands
UNIT2.ppt
SQL: Data Definition Language(DDL) command
Structured Query Language
4 SQL DML.pptx ASHEN WANNIARACHCHI USESS
20190326165338_ISYS6508-PPT5-W5-S6-R0.pptx
lovely
Introduction to Structured Query Language
Ad

Recently uploaded (20)

PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Basic Mud Logging Guide for educational purpose
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Institutional Correction lecture only . . .
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Anesthesia in Laparoscopic Surgery in India
102 student loan defaulters named and shamed – Is someone you know on the list?
O5-L3 Freight Transport Ops (International) V1.pdf
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
2.FourierTransform-ShortQuestionswithAnswers.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Renaissance Architecture: A Journey from Faith to Humanism
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Basic Mud Logging Guide for educational purpose
Module 4: Burden of Disease Tutorial Slides S2 2025
Institutional Correction lecture only . . .
human mycosis Human fungal infections are called human mycosis..pptx
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Complications of Minimal Access Surgery at WLH
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Week 4 Term 3 Study Techniques revisited.pptx
Ad

Lecture - MY-SQL/ SQL Commands - DDL.pptx

  • 1. ‫ا‬ ِ‫ن‬ ٰ‫م‬ْ‫ح‬َّ‫الر‬ ِ‫هللا‬ ِ‫م‬ْ‫س‬ِ‫ب‬ ِ‫ْم‬‫ي‬ ِ‫ح‬َّ‫لر‬ ِ‫س‬َ‫ي‬ َ‫و‬ ‫ي‬ ِ ‫ر‬ْ‫د‬َ‫ص‬ ‫ي‬ِ‫ل‬ ْ‫ح‬َ‫ر‬ْ‫ش‬‫ا‬ ِ‫ب‬َ‫ر‬ ‫ي‬ ِ ‫ر‬ْ‫م‬َ‫أ‬ ‫ي‬ِ‫ل‬ ْ‫ر‬ َ‫ي‬ ‫ي‬ِ‫ن‬‫ا‬َ‫س‬ِ‫ل‬ ْ‫ن‬ِ‫م‬ ً‫ة‬َ‫د‬ْ‫ق‬ُ‫ع‬ ْ‫ل‬ُ‫ل‬ْ‫اح‬ َ‫و‬ ‫ي‬ِ‫ل‬ ْ‫و‬َ‫ق‬ ‫وا‬ُ‫ه‬َ‫ق‬ْ‫ف‬
  • 2. SQL Commands - DDL Lecture Course Instructor: Samra Kanwal
  • 4. MySQL • Open Source relational database management system • Uses the SQL (Structured Query Language) • A leading database for web applications • Used for small apps to large enterprise apps • Used with multiple languages (Java, PHP, Node, Python, C# etc.) • Cross platform
  • 5. Management Tools • Desktop tools: MySQL Workbench • Web based tool: PHPmyAdmin
  • 7. DDL and DML • These SQL commands are mainly categorized into four categories as discussed below: • DDL(Data Definition Language) : DDL or Data Definition Language actually consists of the SQL commands that can be used to define the database schema. It simply deals with descriptions of the database schema and is used to create and modify the structure of database objects in database. Examples of DDL commands: • CREATE – is used to create the database or its objects • DROP – is used to delete objects from the database. • ALTER-is used to alter the structure of the database. • TRUNCATE–is used to remove all records from a table, including all spaces allocated for the records are removed. • COMMENT –is used to add comments to the data dictionary. • RENAME –is used to rename an object existing in the database. • DML(Data Manipulation Language) : The SQL commands that deals with the manipulation of data present in database belong to DML or Data Manipulation Language and this includes most of the SQL statements. Examples of DML: • SELECT – is used to retrieve data from the a database. • INSERT – is used to insert data into a table. • UPDATE – is used to update existing data within a table. • DELETE – is used to delete records from a database table.
  • 8. DCL and TCL • DCL(Data Control Language) : DCL includes commands such as GRANT and REVOKE which mainly deals with the rights, permissions and other controls of the database system. Examples of DCL commands: • GRANT-gives user’s access privileges to database. • REVOKE-withdraw user’s access privileges given by using the GRANT command. • TCL(transaction Control Language) : TCL commands deals with the transaction within the database. Examples of TCL commands: • COMMIT– commits a Transaction. • ROLLBACK– rollbacks a transaction in case of any error occurs. • SAVEPOINT–sets a save point within a transaction.
  • 9. • Relational Database Management System (RDBMS) • RDBMS is a software that store data in the form of relations(tables) • What is Table ? • A table is a data structure that store data in the form of rows and cols • Cols are fields and row are records • table is basic fundamental unit of storage in DB Prepared by Khawaja Ubaid Ur Rehman
  • 10. • Example: • A university Database • Table : Student • Fields: • Type: • Type: • Student • Sid sname Address Gender Marks email • 1 Farooq Lhr M 70 abc@h.com • 2 Ahmed ISB M 85 xyz@h.com • 3 ZAhid Lhr M 40 uvw@h.com • Primary Key Col • - Every rows should has unique identity • - Every table should has primary key col Sid Sname Address Gender Marks email int string string char int string int varchar(20) varchar(40) varchar(6) float varchar(30) Prepared by Khawaja Ubaid Ur Rehman
  • 11. MY SQL • RDMBS developed by ORACLE Corporation • Table Operations • 1- Insert • 2- Delete • 3- Update • 4- Query • What is Query? • Query is a question about data from database. • All databases used a special language for Query i.e. SQL (Structured Query Language)
  • 12. SQL-DDL • Structured Query Language. • SQL is a standard language for accessing and manipulating databases. • Create Database Statement The CREATE DATABASE statement is used to create a new SQL database. SQL Syntax: Create database databasename Create database hotel; Create database gym; 2
  • 13. SQL-DDL (cont…) • Create table statement • The create table statement is used to create a new table in a database. Syntax: Create Table Create Table CREATE TABLE table_name ( column1 datatype, column2 datatype, column3 datatype, .... );
  • 14. Create Table-SQL CREATE TABLE Member( MemID int Primary Key, LastName varchar(10), FirstName varchar(15), Address varchar(25), City varchar(20) ); 3
  • 15. Exercise #1 • Create a table called supplier which has 3 columns. • The first column is called supplier_id. • The second column is called supplier_name. • The third column is called contact_name 6
  • 16. Solution CREATE TABLE supplier( supplier_id int Primary Key, supplier_name varchar(20), contact_name varchar(20) ); 7
  • 17. Exercise#2 • Create a SQL table called customer that stores customer ID, name, address, city, state and zip code information. 8
  • 18. Solution Exercise 2 CREATE TABLE customer( customer_id int Primary Key, customer_name varchar(50), address varchar(50), city varchar(50), state varchar(50), zip_code varchar(50) ); 9
  • 19. SQL-DDL (cont…) • Drop database statement • The DROP DATABASE statement is used to drop an existing SQL database. • Syntax: DROP DATABASE database_name; • Example: Drop database university; • Note: Be careful before dropping a database. Deleting a database will result in loss of complete information stored in the database! T1 T2 university
  • 20. SQL-DDL (cont…) • Drop table statement • The DROP table statement is used to drop an existing table in database. • Syntax: DROP table table_name; • Example: Drop table T1; T1 T2 T3 T4 university
  • 21. SQL-DDL (cont…) • Drop table statement • The DROP table statement is used to drop an existing table in database. • Syntax: DROP table table_name; • Example: Drop table T1; • Note: Be careful before dropping a table. Deleting a table will result in loss of complete information stored in the table! T1 T2 T3 T4 university
  • 22. SQL-DDL (cont…) • SQL Truncate table • The truncate table statement is used to delete the data inside a table, but not the table itself. • Syntax: TRUNCATE table_name; • For example, Truncate T1; id nm Age 22 ali 18 27 saad 18 university T1 T2
  • 23. SQL-DDL (cont…) • SQL Truncate table • The truncate table statement is used to delete the data inside a table, but not the table itself. • Syntax: TRUNCATE table_name; • For example, Truncate T1; id nm Age 22 ali 18 27 saad 18 university T1 T2
  • 24. SQL-DDL (cont…) • Rename SQL statement • RENAME table renames one or more tables. • Syntax: RENAME TABLE old_table TO new_table; • For example Rename table T1 to employee; id nm Age university employee T2
  • 25. SQL ALTER TABLE Statement • The ALTER TABLE statement is used to add, delete, or modify columns in an existing table. • ALTER TABLE - ADD a Column • To add a column in a table, use the following syntax: • Syntax ALTER TABLE table_name ADD column_name datatype;
  • 26. SQL ALTER TABLE Statement Write a SQL query to alter the employee table and add an attribute email to employee table. ALTER TABLE table_name ADD column_name datatype; ALTER TABLE Employee ADD Email varchar(5); • ALTER TABLE - ADD multiple Columns • To add multiple columns in a table, use the following syntax: • Syntax ALTER TABLE table_name ADD new_column_name column_definition [ FIRST | AFTER column_name ], ADD new_column_name column_definition [ FIRST | AFTER column_name ],...; Emp_ID Emp_Name City Phone_no Slry
  • 27. SQL ALTER TABLE Statement • Write a SQL query to add height and weight fields to the existing table of employee. ALTER TABLE employee ADD height float AFTER Slry, ADD weight float AFTER Slry; Emp_ID Emp_Name City Phone_no Slry Email weight height
  • 28. SQL ALTER TABLE Modify Column • If you want to modify an existing column in SQL table, syntax is given below: • Syntax: ALTER TABLE table_name modify column_name datatype; • Write a sql query to change the email field length from 5 to 15. alter table employee modify email varchar(15);
  • 29. SQL ALTER TABLE DROP Column • Drop column using alter statement will delete a particular column. • The syntax of alter table drop a column is given below: • Syntax: Alter table table_name drop column column_name; Alter table employee drop column city; Emp_ID Emp_Name City Phone_no Slry Email weight height Emp_ID Emp_Name Phone_no Slry Email weight height
  • 30. SQL ALTER TABLE DROP Multiple Columns • Drop column using alter statement will delete a particular column. • The syntax of alter table drop a column is given below: • Syntax: Alter table table_name drop column column_name1, drop column column_name2,….drop column column_nameN; Write an sql query to drop height and weight columns? Alter table employee drop column height, drop column weight; Emp_ID Emp_Name Phone_no Slry Email weight height Emp_ID Emp_Name Phone_no Slry Email
  • 31. SQL ALTER TABLE Rename column • Using SQL Alter table rename, we can rename a column name. • Syntax: ALTER TABLE table_name CHANGE COLUMN old_name new_name column_definition [ FIRST | AFTER column_name ] Write an sql query to change column name from Slry to Salary? Alter table employee change column Slry Salary int;