Recently, my attention was drawn to a question which is often asked. Here, I am going to explain why select is called DML (Data Manipulation Language).
First of all, do not confuse the word with "Manipulation". We are assuming “manipulation equals to insert, update and delete”. No guys, it is not true. We cannot say that the SELECT statements are used for only retrieving the data, it is used to manipulate the data.
The word “Manipulation” means to play with the data, not only retrieve or fetch the data. We can include retrieve, store, modify, delete, insert, update, and copy operations in DML.
Data manipulation can be,
- Data aggregation
- Data Grouping
- Data Ordering like ascending or descending
- Performing mathematical operations
- Data conversion or type conversion
- Pattern matching with regex
- Condition retrieving of data
- Working with CTE
Other than the above list, there are many other operations which can be included in the DML list.
Let me explain how a SELECT statement can change the data of database tables...
- SELECT * INTO tb_Table2 FROM tb_Table1
The above statement will copy all the records and columns from tb_Table1 to tb_Table2. It is a kind of manipulation.
- DECLARE @str AS VARCHAR(MAX)
- SELECT @str = CONCAT(@str, StudentID, ',') FROM Students
- SELECT @str AS CommaSaperatedStudentIDs

Hadshana KamalanathanPosted Jul 15, 2018, 9:08 PM
Thank you for sharing information
Gajendra JangidPosted Jan 31, 2018, 7:22 AM
The SQL Standard considers SELECT part of "Data Manipulation".
Dharmraj ThakurPosted Jan 24, 2018, 12:10 AM
Radha Rani... I refering you this link... https://en.wikipedia.org/wiki/Data_manipulation_language
Dharmraj ThakurPosted Jan 24, 2018, 12:09 AM
The SQL-data change statements are a subset of the SQL-data statements; this also contains the SELECT query statement, which strictly speaking is part of the DQL, not the DML. In common practice though, this distinction is not made and SELECT is widely considered to be part of DML, so the DML consists of all SQL-data statements, not only the SQL-data change statements. The SELECT ... INTO ... form combines both selection and manipulation, and thus is strictly considered to be DML because it manipulates (i.e. modifies) data.
Radha RaniPosted Jan 23, 2018, 5:44 PM
SELECT * INTO tb_Table2 FROM tb_Table1 . this only display the data into table 2 from table 1..not mANIPULATING IT..
Radha RaniPosted Jan 23, 2018, 5:42 PM
Display can't be treated as manipulating the database...
Radha RaniPosted Jan 23, 2018, 5:41 PM
In your first example of select, its only displaying data of table 2 into table 1.
Bhavesh JadavPosted Jan 18, 2018, 3:31 AM
Thank to share it, it is helpful and well explained in short
Naresh SinghalPosted Jan 16, 2018, 11:20 PM
Good Explained....
Sagar Pandurang KapPosted Jan 14, 2018, 11:35 PM
Very well explained in short...