<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vigneswaran Manivannan</title>
    <description>The latest articles on DEV Community by Vigneswaran Manivannan (@vigneswaran_manivannan_87).</description>
    <link>https://dev.to/vigneswaran_manivannan_87</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3253965%2F492d71b7-ac9c-4608-b889-cb08a94a023b.png</url>
      <title>DEV Community: Vigneswaran Manivannan</title>
      <link>https://dev.to/vigneswaran_manivannan_87</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vigneswaran_manivannan_87"/>
    <language>en</language>
    <item>
      <title>JOINS- 19-06-2025</title>
      <dc:creator>Vigneswaran Manivannan</dc:creator>
      <pubDate>Wed, 18 Jun 2025 16:41:24 +0000</pubDate>
      <link>https://dev.to/vigneswaran_manivannan_87/joins-19-06-2025-5g0n</link>
      <guid>https://dev.to/vigneswaran_manivannan_87/joins-19-06-2025-5g0n</guid>
      <description>&lt;p&gt;&lt;strong&gt;JOINS&lt;/strong&gt;- A JOIN clause is used to combine rows from two or more tables, based on a related column between them.&lt;/p&gt;

&lt;p&gt;***&lt;em&gt;Different Types of Joins&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
INNER JOIN: Returns records that have matching values in both tables&lt;/p&gt;

&lt;p&gt;LEFT JOIN: Returns all records from the left table, and the matched records from the right table&lt;/p&gt;

&lt;p&gt;RIGHT JOIN: Returns all records from the right table, and the matched records from the left table&lt;/p&gt;

&lt;p&gt;FULL JOIN: Returns all records when there is a match in either left or right table&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  INNER JOIN- SYNTAX
&lt;/h2&gt;

&lt;p&gt;**&lt;br&gt;
select column1, column2&lt;br&gt;
from table1&lt;br&gt;
join&lt;br&gt;
table2 &lt;br&gt;
on table1.column = table2.column;&lt;/p&gt;

&lt;p&gt;select n.name,n.country,s.division,s.gender from new_staff_details n inner join staff_details s on n.name=s.name;&lt;/p&gt;

&lt;h2&gt;
  
  
  LEFT JOIN-
&lt;/h2&gt;

&lt;p&gt;select column1, column2&lt;br&gt;
from table1&lt;br&gt;
left join&lt;br&gt;
table2 &lt;br&gt;
on table1.column = table2.column;&lt;/p&gt;

&lt;p&gt;select n.name,n.country,s.division,s.gender from new_staff_details n left join staff_details s on n.name=s.name;&lt;/p&gt;

&lt;h2&gt;
  
  
  RIGHT JOIN-
&lt;/h2&gt;

&lt;p&gt;select column1, column2&lt;br&gt;
from table1&lt;br&gt;
right join&lt;br&gt;
table2 &lt;br&gt;
on table1.column = table2.column;&lt;/p&gt;

&lt;p&gt;select n.name,n.country,s.division,s.gender from new_staff_details n right join staff_details s on n.name=s.name;&lt;/p&gt;

&lt;h2&gt;
  
  
  FULL JOIN-
&lt;/h2&gt;

&lt;p&gt;select column1, column2&lt;br&gt;
from table1&lt;br&gt;
Full join&lt;br&gt;
table2 &lt;br&gt;
on table1.column = table2.column;&lt;/p&gt;

&lt;p&gt;select n.name,n.country,s.division,s.gender from new_staff_details n full join staff_details s on n.name=s.name;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuv7xhzh14n3gs44f5atv.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuv7xhzh14n3gs44f5atv.JPG" alt="Image description" width="800" height="670"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>payilagam</category>
    </item>
    <item>
      <title>SUB QUERY, ORDER BY,LIMIT, OFFSET, GROUP BY- 17-06-2025</title>
      <dc:creator>Vigneswaran Manivannan</dc:creator>
      <pubDate>Tue, 17 Jun 2025 17:07:08 +0000</pubDate>
      <link>https://dev.to/vigneswaran_manivannan_87/sub-query-order-bylimit-offset-group-by-17-06-2025-2am5</link>
      <guid>https://dev.to/vigneswaran_manivannan_87/sub-query-order-bylimit-offset-group-by-17-06-2025-2am5</guid>
      <description>&lt;p&gt;*&lt;em&gt;SUB QUERY- *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;select min(salary)from staff_details;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2ND MINIMUM-&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Not selecting minimum salary&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
select*from staff_details where salary not in (select min(salary)from staff_details);&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;select minimum again to get 2nd minimum&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
 select min(salary)from staff_details where salary not in( select min(salary)from staff_details);&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;To get the row&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
select*from staff_details where salary=15000; OR&lt;/p&gt;

&lt;p&gt;select*from staff_details where salary=( select min(salary)from staff_details where salary not in( select min(salary)from staff_details));&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7hsgwrykfnh9yt02vhdr.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7hsgwrykfnh9yt02vhdr.JPG" alt="Image description" width="800" height="633"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F70ny2t8yeeeneuvcu8pz.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F70ny2t8yeeeneuvcu8pz.JPG" alt="Image description" width="800" height="563"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ORDER BY :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;to list it as order ( ascending, descending)&lt;/p&gt;

&lt;p&gt;select*from staff_details order by salary;&lt;/p&gt;

&lt;p&gt;descending;&lt;/p&gt;

&lt;p&gt;select*from staff_details order by salary desc;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;LIMIT (Limit the data)- HOW MANY VALUES ( ROW)&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
 select*from staff_details order by salary desc limit 2;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;OFFSET- SKIP &lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
SKIP THE ROW FROM THE LIST&lt;/p&gt;

&lt;p&gt;select*from staff_details order by salary desc limit 2 offset 1;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F66lgbcbh4u3rccqse44t.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F66lgbcbh4u3rccqse44t.JPG" alt="Image description" width="800" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;GROUP BY&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;It must have aggregate value.&lt;/p&gt;

&lt;p&gt;select count(nationality) from staff_details group by nationality;&lt;/p&gt;

&lt;p&gt;select nationality, count(nationality) from staff_details group by nationality;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd12wkbecp0m7y9vegdb3.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd12wkbecp0m7y9vegdb3.JPG" alt="Image description" width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>payilagam</category>
    </item>
    <item>
      <title>DQL- SELECT - 16-06-2025</title>
      <dc:creator>Vigneswaran Manivannan</dc:creator>
      <pubDate>Mon, 16 Jun 2025 15:47:25 +0000</pubDate>
      <link>https://dev.to/vigneswaran_manivannan_87/dql-select-16-06-2025-d23</link>
      <guid>https://dev.to/vigneswaran_manivannan_87/dql-select-16-06-2025-d23</guid>
      <description>&lt;h2&gt;
  
  
  DQL- DATA QUERY LANGUAGE
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;SELECT&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SELECT REQUIRED DETAIILS/columns&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;SELECT C1,C2 FROM TABLE NAME;&lt;/p&gt;

&lt;p&gt;EX;&lt;br&gt;
select name,category,gender from staff_details;&lt;/p&gt;

&lt;p&gt;SELECT wont affect any data in the table.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;RENAME (To display )- AS (alias)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;SELECT C1 as "rename", from table name;&lt;/p&gt;

&lt;p&gt;select name as "staff name",category,gender,salary from staff_details;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;WHERE- CONDITION.&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;select*from staff_details where DIVISION='CONSTRUCTION';&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;BETWEEN&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;SELECT*FROM STAFF_DETAILS WHERE SALARY BETWEEN 15000 AND 30000;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;LIKE- To search from letters&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;SELECT*FROM STAFF DETAILS WHERE COLUMN LIKE 'A%' &lt;/p&gt;

&lt;p&gt;SELECT*FROM STAFF_DETAILS WHERE NAME LIKE'A%';&lt;br&gt;
 OR 'A%A'&lt;br&gt;
OR '%A'&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;IN- LIST OF DATA.&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;SELECT*FROM STAFF_DETAILS WHERE SALARY IN (10000,20000);&lt;/p&gt;

&lt;p&gt;SELECT*FROM STAFF_DETAILS WHERE SALARY NOT IN (10000,20000);&lt;/p&gt;

&lt;h2&gt;
  
  
  AGGREGATE FUNCTION
&lt;/h2&gt;

&lt;p&gt;FUNCTION ()&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;COUNT *&lt;/em&gt;:&lt;br&gt;
SELECT COUNT (*FROM) STAFF_DETAILS;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SUM:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;SELECT SUM (SALARY) FROM STAFF_DETAILS;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;AVERAGE:&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
SELECT AVG(SALARY) FROM STAFF_dETAILS;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;ROUND:&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;SELECT ROUND  (AVG(SALARY)) FROM STAFF_DETAILS;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;ROUND ON DECIMALS:&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
SELECT ROUND  (AVG(SALARY),2) FROM STAFF_DETAILS;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MIN VALUES&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;SELECT MIN(SALARY)FROM STAFF_DETAILS;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;SELECT ROW FROM MIN SALARY.&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
 SELECT*FROM STAFF_DETAILS WHERE SALARY=(SELECT MIN(SALARY)FROM STAFF_DETAILS);&lt;/p&gt;

</description>
      <category>payilagam</category>
    </item>
    <item>
      <title>3rd Day Training. About Table creating, Alter table, insert values in table- 11-06-2025</title>
      <dc:creator>Vigneswaran Manivannan</dc:creator>
      <pubDate>Wed, 11 Jun 2025 16:17:39 +0000</pubDate>
      <link>https://dev.to/vigneswaran_manivannan_87/3rd-day-training-about-table-creating-alter-table-insert-values-in-table-11-06-2025-1n32</link>
      <guid>https://dev.to/vigneswaran_manivannan_87/3rd-day-training-about-table-creating-alter-table-insert-values-in-table-11-06-2025-1n32</guid>
      <description>&lt;p&gt;&lt;strong&gt;Rename a table&lt;/strong&gt;&lt;br&gt;
ALTER TABLE  RENAME TO .&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Rename a column&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
ALTER TABLE &lt;/p&gt;
&lt;div class="table-wrapper-paragraph"&gt; RENAME  TO 

&lt;p&gt;*&lt;em&gt;CHANGE DATA TYPE OF COLUMN *&lt;/em&gt;&lt;/p&gt;&lt;p&gt;ALTER TABLE &lt;/p&gt;&lt;table&gt;



&lt;/table&gt; ALTER COLUMN &amp;lt; column name&amp;gt; TYPE 

&lt;p&gt;****To check the datatypes of the column&lt;/p&gt;&lt;p&gt;&lt;strong&gt;SELECT column_name, data_type FROM information_schema.columns where table_name='your_table_name';&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;**ADD NEW COLUMN&lt;/p&gt;&lt;p&gt;ALTER TABLE &lt;/p&gt;&lt;table&gt;








&lt;/table&gt; ADD COLUMN &amp;lt; column name  data type ;

&lt;p&gt;&lt;strong&gt;CONSTRAINTS&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;SQL constraints are rules applied to columns or tables in a relational database to limit the type of data that can be inserted, updated, or deleted. These rules ensure the data is valid, consistent, and adheres to the business logic or database requirements. &lt;/p&gt;&lt;p&gt;Constraints can be enforced during table creation or later using the ALTER TABLE statement&lt;/p&gt;&lt;p&gt;TYPES- &lt;/p&gt;&lt;p&gt;&lt;strong&gt;PRIMARY&lt;/strong&gt;- A PRIMARY KEY constraint is a combination of the NOT NULL and UNIQUE constraints. It uniquely identifies each row in a table. A table can only have one PRIMARY KEY, and it cannot accept NULL values. This is typically used for the column that will serve as the identifier of records.&lt;/p&gt;&lt;p&gt;Example:&lt;/p&gt;&lt;p&gt;CREATE TABLE Student&lt;br&gt;
(&lt;br&gt;
ID int(6) NOT NULL UNIQUE,&lt;br&gt;
NAME varchar(10),&lt;br&gt;
ADDRESS varchar(20),&lt;br&gt;
PRIMARY KEY(ID)&lt;br&gt;
);&lt;br&gt;
Explanation: In this case, the ID column is set as the primary key, ensuring that each student’s ID is unique and cannot be NULL.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;FOREIGN KEY&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;A FOREIGN KEY constraint links a column in one table to the primary key in another table. This relationship helps maintain referential integrity by ensuring that the value in the foreign key column matches a valid record in the referenced table.&lt;/p&gt;&lt;p&gt;*&lt;em&gt;UNIQUE KEY&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
The UNIQUE constraint ensures that all values in a column are distinct across all rows in a table. Unlike the PRIMARY KEY, which requires uniqueness and does not allow NULLs, the UNIQUE constraint allows NULL values but still enforces uniqueness for non-NULL entries.&lt;/p&gt;&lt;p&gt;Example:&lt;/p&gt;&lt;p&gt;CREATE TABLE Student&lt;br&gt;
(&lt;br&gt;
ID int(6) NOT NULL UNIQUE,&lt;br&gt;
NAME varchar(10),&lt;br&gt;
ADDRESS varchar(20)&lt;br&gt;
);&lt;br&gt;
Explanation: Here, the ID column must have unique values, ensuring that no two students can share the same ID. We can have more than one UNIQUE constraint in a table.&lt;/p&gt;&lt;p&gt;** NOT NULL Constraint&lt;br&gt;
**&lt;br&gt;
The NOT NULL constraint ensures that a column cannot contain NULL values. This is particularly important for columns where a value is essential for identifying records or performing calculations.&lt;/p&gt;&lt;p&gt;Source- &lt;a href="https://www.geeksforgeeks.org/sql-constraints/" rel="noopener noreferrer"&gt;https://www.geeksforgeeks.org/sql-constraints/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;*&lt;em&gt;SERIES OF NUMBERS- SERIAL&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;&lt;p&gt;CREATE TABLE &amp;lt; table name &amp;gt; (column name SERIAL PRIMARY KEY )&lt;/p&gt;&lt;p&gt;*&lt;em&gt;Create table with primary keys and constraints-&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;&lt;p&gt;CREATE TABLE &amp;lt; table name &amp;gt; (column name SERIAL PRIMARY KEY, COLUMN 2 DATA TYPE, COLUMN 3  DATA TYPE )&lt;/p&gt;&lt;p&gt;**&lt;/p&gt;&lt;h2&gt;
  
  
  INSERTION
&lt;/h2&gt;&lt;p&gt;**&lt;/p&gt;&lt;p&gt;Insert values based on the above table created.&lt;/p&gt;&lt;p&gt;INSERT INTO &lt;/p&gt;&lt;table&gt;











































&lt;/table&gt; VALUES (1,MANGO,200)

&lt;p&gt;*&lt;em&gt;Multiple values.&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
INSERT INTO &lt;/p&gt;&lt;table&gt;
&lt;/table&gt; (C2,C3,C4) VALUES (BANANA, 20) (APPLE, 30)

&lt;p&gt;*&lt;em&gt;UPDATE :&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;&lt;p&gt;UPDATE &lt;/p&gt;&lt;table&gt;


&lt;/table&gt; SET prod_name=' ALPHONSO MANGO' where prod_id=5;&lt;br&gt;
UPDATE &lt;table&gt;&lt;/table&gt; SET prod_name='ALPHONSO MANGO' where prod_NAME=MANGO;&lt;br&gt;
UPDATE &lt;table&gt;&lt;/table&gt; SET prod_name='ALPHONSO MANGO', MRP=60 where prod_ID=5

&lt;p&gt;*&lt;em&gt;DELETE query:&lt;br&gt;
*&lt;/em&gt; DELETE from &lt;/p&gt;&lt;table&gt;
&lt;/table&gt; where prod_id=2;
&lt;table&gt;&lt;/table&gt;



&lt;br&gt;

&lt;br&gt;

&lt;br&gt;

&lt;br&gt;

&lt;br&gt;

&lt;br&gt;

&lt;br&gt;
&lt;/div&gt;

</description>
      <category>payilagam</category>
    </item>
    <item>
      <title>2nd Day, Introduction to SQL- 10-06-2025</title>
      <dc:creator>Vigneswaran Manivannan</dc:creator>
      <pubDate>Tue, 10 Jun 2025 15:47:30 +0000</pubDate>
      <link>https://dev.to/vigneswaran_manivannan_87/2nd-day-introduction-to-sql-10-06-2025-30dj</link>
      <guid>https://dev.to/vigneswaran_manivannan_87/2nd-day-introduction-to-sql-10-06-2025-30dj</guid>
      <description>&lt;p&gt;*&lt;em&gt;SQL *&lt;/em&gt;- Structured Query Language- &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;used in Data analysis.&lt;/li&gt;
&lt;li&gt;Software development purpose&lt;/li&gt;
&lt;li&gt;To manage and manipulate relational DBMS.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;*&lt;em&gt;Uses of SQL&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Querying the data. To find a specific information.&lt;/li&gt;
&lt;li&gt;To insert, update , delete the data.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  **SQL commands
&lt;/h2&gt;

&lt;p&gt;**&lt;br&gt;
&lt;strong&gt;DDL&lt;/strong&gt;- Data definition Language.&lt;/p&gt;

&lt;p&gt;Used to define/ manage the tables.&lt;/p&gt;

&lt;p&gt;The commands are,&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;CREATE&lt;/strong&gt;- Create  a table&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ALTER&lt;/strong&gt;- To modify the table structure, which was created already.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DROP&lt;/strong&gt;- To delete the complete table&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RENAME&lt;/strong&gt;- To rename the table&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TRUNCATE&lt;/strong&gt;- To delete all records except the table structure.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;DML&lt;/strong&gt;- Data manipulation language.
&lt;/h2&gt;

&lt;p&gt;To manipulate the data into the table.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;INSERT&lt;/strong&gt;- Add new data in rows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;UPDATE&lt;/strong&gt;- Modify the existing data.
3.&lt;strong&gt;DELETE&lt;/strong&gt;- Remove data from the row.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;DQL&lt;/strong&gt; - Data Query Language
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;SELECT&lt;/strong&gt;- To retrieve a data from the table.&lt;/p&gt;

&lt;p&gt;( Select* from table name )&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;DCL&lt;/strong&gt;- Data control language
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Used for access control&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;GRANT&lt;/strong&gt;- To provide access/ privileges to users.&lt;br&gt;
&lt;strong&gt;REVOKE&lt;/strong&gt;- To take back the privileges.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;TCL&lt;/strong&gt;- Transaction control Language
&lt;/h2&gt;

&lt;p&gt;Used to manage the transactions/ data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;COMMIT&lt;/strong&gt;- used to permanently save any transaction into the database&lt;br&gt;
&lt;strong&gt;ROLLBACK&lt;/strong&gt;- Used to restores the database to the last committed state. undo the changes since last commit&lt;br&gt;
&lt;strong&gt;SAVE POINT&lt;/strong&gt;- Set a point to rollback&lt;br&gt;
&lt;strong&gt;SET TRANSACTION&lt;/strong&gt;- To set the properties for transactions ( Like read only )&lt;/p&gt;

&lt;h2&gt;
  
  
  DATA TYPES
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Numeric Type&lt;br&gt;
**&lt;br&gt;
**SMALLINT&lt;/strong&gt;- It saves whole numbers in the specified range. Memory 2 bytes&lt;br&gt;
&lt;strong&gt;INTEGER&lt;/strong&gt;-It saves whole numbers in the specified range.-Memory 4 bytes&lt;br&gt;
&lt;strong&gt;BIGINT&lt;/strong&gt;- Memory is 8 bytes&lt;br&gt;
&lt;strong&gt;NUMERIC @ DECIMAL&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;REAL@ FLOAT4&lt;/strong&gt;- Single precision floating point number- &lt;/p&gt;

&lt;p&gt;Single-precision floating-point format (sometimes called FP32 or float32) is a computer number format, usually occupying 32 bits in computer memory; it represents a wide dynamic range of numeric values by using a floating radix point.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DOUBLE PRECISION @FLOAT8&lt;/strong&gt; - Double-precision floating-point numbers are 64-bit floating-point numbers used to represent real numbers with greater precision and a wider range than single-precision floating-point numbers. This format, often referred to as FP64, is commonly used in scientific computing and other applications where high accuracy is crucial. &lt;/p&gt;

&lt;p&gt;*&lt;em&gt;2. CHARACTER&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CHAR (n)&lt;/strong&gt;- fixed length character string.&lt;/p&gt;

&lt;p&gt;ex, USA,IND&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;VARCHAR (n)&lt;/strong&gt;- Lengthy character string.&lt;br&gt;
TEXT- Variable length characteristics.&lt;/p&gt;

&lt;p&gt;(  unlimited length )&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;3. BOOLEAN TYPE &lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;TRUE or FALSE.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. DATE AND TIME TYPES&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;DATE- date&lt;br&gt;
TIMESTAMP- (date and time )&lt;/p&gt;

&lt;p&gt;To launch, psql -h localhost -U postgres&lt;/p&gt;

&lt;p&gt;Create- CREATE DATABASE Students ;&lt;br&gt;
drop- DROP DATABASE STUDENTS&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TO view DATABASE - \L&lt;br&gt;
To close- \q&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;alter/ edit - ALTER DATABASE Students RENAME TO Students_details;&lt;/p&gt;

&lt;p&gt;\c Students; - to connect the DB.&lt;/p&gt;

&lt;p&gt;CREATE TABLE students_info ( Name varchar(50), Class INTEGER, Joining_date DATE);&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;to view- \dt&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

</description>
      <category>payilagam</category>
    </item>
    <item>
      <title>Its been my first day class for SQL- 09-06-2025</title>
      <dc:creator>Vigneswaran Manivannan</dc:creator>
      <pubDate>Mon, 09 Jun 2025 14:52:07 +0000</pubDate>
      <link>https://dev.to/vigneswaran_manivannan_87/its-been-my-first-day-class-for-sql-09-06-2025-49c2</link>
      <guid>https://dev.to/vigneswaran_manivannan_87/its-been-my-first-day-class-for-sql-09-06-2025-49c2</guid>
      <description>&lt;p&gt;At the 1st session, Today  I got introduction about some basic terms such as Database, Types of Database..&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Database&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A database is an organized collection of structured data, which is stored electronically . It's managed by a database management system (DBMS).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Structured&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;It will be an organized level. That is an organized format contains tables. formed by rows and columns.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Unstructured&lt;/strong&gt;-
&lt;/h2&gt;

&lt;p&gt;No predefined format, It will be harder to analyze as it is an unstructured.&lt;br&gt;
ex, Photos , videos&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  semi structured
&lt;/h2&gt;

&lt;p&gt;It wont follow the table format.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DBMS&lt;/strong&gt;-&lt;br&gt;
A software which is used to interact with the database. In that we can store, manage( add, edit, remove), retrieve data.&lt;/p&gt;

&lt;p&gt;Some key reason to use DBMS were,&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;To organize and align a data, so that we can quickly retrieve the data.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;2.For data integration, get accurate data with consistency.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;For security purpose. We can restrict to users accordingly.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;4.Can be used by multiple users at same time.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Can do backup and recovery option available.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;*&lt;em&gt;TYPES OF DBMS&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Hierarchical DBMS.
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Tree like hierarchy&lt;/li&gt;
&lt;li&gt;One to many relationship&lt;/li&gt;
&lt;li&gt;Data were stored as records, connected via parent- child link.
-They store data in a tree-like structure so that it is easy to find and use
ex, Org &amp;gt;&amp;gt; State &amp;gt;&amp;gt; region &amp;gt;&amp;gt; city.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Network DBMS.
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Many to many relationship&lt;/li&gt;
&lt;li&gt;Graphical structure
ex, Book, Author name, publisher, borrower.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Relational DBMS.
&lt;/h2&gt;

&lt;p&gt;-Stored in tables as rows and column.&lt;/p&gt;

&lt;p&gt;-They do not support many to many relationships and have pre-defined data types that they can support. They are the most popular DBMS type in the industry.&lt;/p&gt;

&lt;p&gt;ex, Oracle, MySQL, MS SQL&lt;/p&gt;

&lt;h2&gt;
  
  
  4. OO DBMS
&lt;/h2&gt;

&lt;p&gt;-Object oriented DBMS.&lt;br&gt;
-They store data in the form of objects. It supports the storage of miscellaneous data types.&lt;/p&gt;

&lt;p&gt;ex, DB40, Object DB, Gemstone&lt;/p&gt;

&lt;h2&gt;
  
  
  5. No SQL DBMS.
&lt;/h2&gt;

&lt;p&gt;-Unstructured, semi structured.&lt;/p&gt;

&lt;p&gt;ex, document based, key value, graph data. Applicable for big data, social network.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;FEATURES OF DBMS&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;ACID&lt;/p&gt;

&lt;p&gt;A- ATOMICITY- All steps to be succeed or none of the steps&lt;br&gt;
C-CONSISTENCY-Data remains valid before and after any transaction.&lt;br&gt;
I- ISOLATION- Can run independently.&lt;br&gt;
D- DURABILITY - Data can be saved permanently,  even after the crash.&lt;/p&gt;




</description>
      <category>payilagam</category>
    </item>
  </channel>
</rss>
