SlideShare a Scribd company logo
1 of 28
SQL Structured Query Language
SQL-Create table Create table table_name(column_name1 datatype, column_name2 datatype……) Eg: create table example (id int ,name varchar(10),address varchar(10)) Msg: Command(s) completed successfully.
SQL-Insert Values Insert into table_name(column1,column2,…..)values(values1,values2,…) Eg: insert into example (id,name,address) values(123,'xxxx','yyyyy') Msg: (1 row(s) affected)
SQL-Select Command select *from example Id     name  address 123	xxxxyyyyy 456	jjjjrrrr 456	iiiinnnn 567	eeeeffff
SQL-Alter Command Alter table table_name add or drop column_namedatatype Eg: alter table example add mobilenoint Msg: Command(s) completed successfully. Id     name address  mobileno 123	xxxxyyyyy     NULL 456	jjjjrrrr	      NULL 888	iiiinnnn	      NULL 567	eeeeffff	      NULL
SQL-Update Command Update table_name set column_name=new value where column_name=any value Eg: Update example set id=888 where name='iiii‘ Msg: (1 row(s) affected) Id      name address 123	xxxxyyyyy 456	jjjjrrrr 888	iiiinnnn 567	eeeeffff
SQL-Delete Command Delete  table_name where coition Eg: delete example where id=888 Msg: (1 row(s) affected) Id    name address mobileno 123	xxxxyyyyy     NULL 456	jjjjrrrr         NULL 567	eeeeffff	     NULL
SQL-Drop Command Drop table table_name Eg: drop table example Msg:Command(s) completed successfully.
SQL-Primary Key & Foreign Key  CREATE TABLE table_name (column1 datatype null/not null, column2 datatype null/not null,...CONSTRAINT constraint_name PRIMARY KEY (column1, column2, . column_n)); CREATE TABLE table_name (column1 datatype,  column2 datatype, column3 datatype,  Primary Key (column_any), Foreign Key (Column_any) references Table_any(datatype));
SQL-Primary Key & foreign Key create table example (id intprimary key,namevarchar(10),address varchar(10)) A primary key is used to unique and Not Null identify each row in the table. create table example2 (salary int,expamountint, id int references example(id)) A foreign key is a referential constraint between two tables. 
SQL-Primary Key & Foreign Key  Id     name address     123	rrrrtttt 369	klkliooo 456	iiiihhhh 7889	wswsweww Salary   expamount id 10000	4235	7889 12369	8526	456 12369	865	  456 65894	12589	123 Example (primary Key tale) Example2 (Foreign Key tale)
SQL-Primary Key & Foreign Key  select name,address,salary from example e,example2 e2 where e.id=e2.id O/P Name address    salary wswsweww	10000 iiiihhhh	12369 iiiihhhh 	12369 rrrrtttt	          65894
SQL-Connection String string strcon = "Data Source=172.16.0.1;Initial Catalog=BatchThree;User ID=magnum;Password=Magnum"; SqlConnectionsqlcon = new SqlConnection(strcon); sqlcon.Open(); stringstrsql = "insert into datab values 	('" + txtmarks1.Text + "','" + txtmarks2.Text + "','" + txtmarks3.Text + "','" + txtname.Text + "')"; SqlCommandcmd = new SqlCommand(strsql, sqlcon); cmd.CommandType = CommandType.Text; cmd.ExecuteNonQuery(); sqlcon.Close();
SQL-Connection String
SQL-Connection String
SQL-Connection String
SQL-Stored Procedure create procedure proexample(@id int,@namevarchar(10),@address varchar(10)) as insert into example(id,name,address) values (@id,@name,@address) Command(s) completed successfully. exec proexample 666,'hghg','yuyu‘ (1 row(s) affected)
SQL-Stored Procedure select *from example Id    name address 123	rrrrtttt 369	klkliooo 456	iiiihhhh 666	hghgyuyu 7889	wswsweww
SQL-JOINS SQL joins are used to query data from two or more tables, based on a relationship between certain columns in these tables Inner Join Left Join Right Join Full Join
SQL-INNER JOIN The INNER JOIN keyword return rows when there is at least one match in both tables. SELECT column_name(s)FROM table_name1INNER JOIN table_name2ON table_name1.column_name=table_name2.column_name
SQL-INNER JOIN select name,address,salary from example inner join example2 on example.id=example2.id order by name Name address   salary iiiihhhh	12369 iiiihhhh	12369 rrrrtttt	          65894 Wswsweww	10000
SQL-LEFT JOIN The LEFT JOIN keyword returns all rows from the left table (table_name1), even if there are no matches in the right table (table_name2) SELECT column_name(s)FROM table_name1LEFT JOIN table_name2ON table_name1.column_name=table_name2.column_name
SQL_LEFT JOIN select name,address,salary from example left join example2 on example.id=example2.id order by name Name  address   salary hghgyuyu	NULL iiiihhhh	12369 iiiihhhh	12369 klkliooo	           NULL rrrrtttt      	65894 wswsweww         10000
SQL-RIGHT JOIN The RIGHT JOIN keyword returns all the rows from the right table (table_name2), even if there are no matches in the left table (table_name1) SELECT column_name(s)FROM table_name1RIGHT JOIN table_name2ON table_name1.column_name=table_name2.column_name
SQL_RIGHT JOIN select name,address,salary from example right join example2 on example.id=example2.id order by name Name address salary iiiihhhh     12369 iiiihhhh     12369 rrrrtttt	       65894 wswsweww   10000
SQL-FULL JOIN The FULL JOIN keyword return rows when there is a match in one of the tables. SELECT column_name(s)FROM table_name1FULL JOIN table_name2ON table_name1.column_name=table_name2.column_name
SQL-FULL JOIN select name,address,salary from example full join example2 on example.id=example2.id order by name Name address salary hghgyuyu	     NULL iiiihhhh	    12369 iiiihhhh	    12369 klkliooo       NULL rrrrtttt	    65894 wswsweww   10000
End) Prabhu.ftz@gmail.com

More Related Content

What's hot

Lecture 3 sql {basics ddl commands}
Lecture 3 sql {basics  ddl commands}Lecture 3 sql {basics  ddl commands}
Lecture 3 sql {basics ddl commands}Shubham Shukla
 
Lecture 4 sql {basics keys and constraints}
Lecture 4 sql {basics  keys and constraints}Lecture 4 sql {basics  keys and constraints}
Lecture 4 sql {basics keys and constraints}Shubham Shukla
 
Creating a Table from a Function
Creating a Table from a FunctionCreating a Table from a Function
Creating a Table from a Functiondmidgette
 
Python data structures
Python data structuresPython data structures
Python data structuresHarry Potter
 
[1062BPY12001] Data analysis with R / week 2
[1062BPY12001] Data analysis with R / week 2[1062BPY12001] Data analysis with R / week 2
[1062BPY12001] Data analysis with R / week 2Kevin Chun-Hsien Hsu
 
Артём Акуляков - F# for Data Analysis
Артём Акуляков - F# for Data AnalysisАртём Акуляков - F# for Data Analysis
Артём Акуляков - F# for Data AnalysisSpbDotNet Community
 
Most useful queries
Most useful queriesMost useful queries
Most useful queriesSam Depp
 
SQL Functions and Operators
SQL Functions and OperatorsSQL Functions and Operators
SQL Functions and OperatorsMohan Kumar.R
 
data constraints,group by
data constraints,group by data constraints,group by
data constraints,group by Visakh V
 
Rules of derivatives 2.2
Rules of derivatives 2.2Rules of derivatives 2.2
Rules of derivatives 2.2Lorie Blickhan
 

What's hot (15)

Lecture 3 sql {basics ddl commands}
Lecture 3 sql {basics  ddl commands}Lecture 3 sql {basics  ddl commands}
Lecture 3 sql {basics ddl commands}
 
Lecture 4 sql {basics keys and constraints}
Lecture 4 sql {basics  keys and constraints}Lecture 4 sql {basics  keys and constraints}
Lecture 4 sql {basics keys and constraints}
 
Creating a Table from a Function
Creating a Table from a FunctionCreating a Table from a Function
Creating a Table from a Function
 
Python data structures
Python data structuresPython data structures
Python data structures
 
[1062BPY12001] Data analysis with R / week 2
[1062BPY12001] Data analysis with R / week 2[1062BPY12001] Data analysis with R / week 2
[1062BPY12001] Data analysis with R / week 2
 
Артём Акуляков - F# for Data Analysis
Артём Акуляков - F# for Data AnalysisАртём Акуляков - F# for Data Analysis
Артём Акуляков - F# for Data Analysis
 
Most useful queries
Most useful queriesMost useful queries
Most useful queries
 
R for you
R for youR for you
R for you
 
mysqlHiep.ppt
mysqlHiep.pptmysqlHiep.ppt
mysqlHiep.ppt
 
SQL Functions and Operators
SQL Functions and OperatorsSQL Functions and Operators
SQL Functions and Operators
 
Sql
SqlSql
Sql
 
data constraints,group by
data constraints,group by data constraints,group by
data constraints,group by
 
MY SQL
MY SQLMY SQL
MY SQL
 
Rules of derivatives 2.2
Rules of derivatives 2.2Rules of derivatives 2.2
Rules of derivatives 2.2
 
Db1 lecture4
Db1 lecture4Db1 lecture4
Db1 lecture4
 

Viewers also liked

BCIT SOCAST - Students Working for industry
BCIT SOCAST - Students Working for industryBCIT SOCAST - Students Working for industry
BCIT SOCAST - Students Working for industryBCITAppliedResearch
 
My sql open source database in 2004
My sql open source database in 2004My sql open source database in 2004
My sql open source database in 2004Jayesh Baldania
 
MS SQL SERVER: Creating Views
MS SQL SERVER: Creating ViewsMS SQL SERVER: Creating Views
MS SQL SERVER: Creating Viewssqlserver content
 
SQL Tutorial - Table Constraints
SQL Tutorial - Table ConstraintsSQL Tutorial - Table Constraints
SQL Tutorial - Table Constraints1keydata
 
SQL Tutorial - How To Create, Drop, and Truncate Table
SQL Tutorial - How To Create, Drop, and Truncate TableSQL Tutorial - How To Create, Drop, and Truncate Table
SQL Tutorial - How To Create, Drop, and Truncate Table1keydata
 
MySQL For Oracle Developers
MySQL For Oracle DevelopersMySQL For Oracle Developers
MySQL For Oracle DevelopersRonald Bradford
 
SQL Tutorial for Marketers
SQL Tutorial for MarketersSQL Tutorial for Marketers
SQL Tutorial for MarketersJustin Mares
 
SQL Tutorial - Basic Commands
SQL Tutorial - Basic CommandsSQL Tutorial - Basic Commands
SQL Tutorial - Basic Commands1keydata
 
10 SQL Tricks that You Didn't Think Were Possible
10 SQL Tricks that You Didn't Think Were Possible10 SQL Tricks that You Didn't Think Were Possible
10 SQL Tricks that You Didn't Think Were PossibleLukas Eder
 
Step by Step Installation of Microsoft SQL Server 2012
Step by Step Installation of Microsoft SQL Server 2012 Step by Step Installation of Microsoft SQL Server 2012
Step by Step Installation of Microsoft SQL Server 2012 Sameh AboulDahab
 
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Beat Signer
 

Viewers also liked (18)

BCIT SOCAST - Students Working for industry
BCIT SOCAST - Students Working for industryBCIT SOCAST - Students Working for industry
BCIT SOCAST - Students Working for industry
 
My sql
 My sql My sql
My sql
 
Tables And SQL basics
Tables And SQL basicsTables And SQL basics
Tables And SQL basics
 
My sql open source database in 2004
My sql open source database in 2004My sql open source database in 2004
My sql open source database in 2004
 
MS SQL SERVER: Creating Views
MS SQL SERVER: Creating ViewsMS SQL SERVER: Creating Views
MS SQL SERVER: Creating Views
 
SQL Tutorial - Table Constraints
SQL Tutorial - Table ConstraintsSQL Tutorial - Table Constraints
SQL Tutorial - Table Constraints
 
SQL Tutorial - How To Create, Drop, and Truncate Table
SQL Tutorial - How To Create, Drop, and Truncate TableSQL Tutorial - How To Create, Drop, and Truncate Table
SQL Tutorial - How To Create, Drop, and Truncate Table
 
MySQL For Oracle Developers
MySQL For Oracle DevelopersMySQL For Oracle Developers
MySQL For Oracle Developers
 
SQL Tutorial for Marketers
SQL Tutorial for MarketersSQL Tutorial for Marketers
SQL Tutorial for Marketers
 
Mysql ppt
Mysql pptMysql ppt
Mysql ppt
 
Mysql Ppt
Mysql PptMysql Ppt
Mysql Ppt
 
Introduction to Mysql
Introduction to MysqlIntroduction to Mysql
Introduction to Mysql
 
SQL Basics
SQL BasicsSQL Basics
SQL Basics
 
SQL Tutorial - Basic Commands
SQL Tutorial - Basic CommandsSQL Tutorial - Basic Commands
SQL Tutorial - Basic Commands
 
10 SQL Tricks that You Didn't Think Were Possible
10 SQL Tricks that You Didn't Think Were Possible10 SQL Tricks that You Didn't Think Were Possible
10 SQL Tricks that You Didn't Think Were Possible
 
Sql ppt
Sql pptSql ppt
Sql ppt
 
Step by Step Installation of Microsoft SQL Server 2012
Step by Step Installation of Microsoft SQL Server 2012 Step by Step Installation of Microsoft SQL Server 2012
Step by Step Installation of Microsoft SQL Server 2012
 
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
 

Similar to Sql

Similar to Sql (20)

Mysql 120831075600-phpapp01
Mysql 120831075600-phpapp01Mysql 120831075600-phpapp01
Mysql 120831075600-phpapp01
 
dbms.pdf
dbms.pdfdbms.pdf
dbms.pdf
 
Commands
CommandsCommands
Commands
 
Oraclesql
OraclesqlOraclesql
Oraclesql
 
SQL
SQLSQL
SQL
 
Sql
SqlSql
Sql
 
Null values, insert, delete and update in database
Null values, insert, delete and update in databaseNull values, insert, delete and update in database
Null values, insert, delete and update in database
 
06.01 sql select distinct
06.01 sql select distinct06.01 sql select distinct
06.01 sql select distinct
 
Structured query language(sql)
Structured query language(sql)Structured query language(sql)
Structured query language(sql)
 
MySQL Database System Hiep Dinh
MySQL Database System Hiep DinhMySQL Database System Hiep Dinh
MySQL Database System Hiep Dinh
 
SQL - DML and DDL Commands
SQL - DML and DDL CommandsSQL - DML and DDL Commands
SQL - DML and DDL Commands
 
Introduction sql
Introduction sqlIntroduction sql
Introduction sql
 
dbms lab manual
dbms lab manualdbms lab manual
dbms lab manual
 
Postgresql 9.3 overview
Postgresql 9.3 overviewPostgresql 9.3 overview
Postgresql 9.3 overview
 
Sql insert statement
Sql insert statementSql insert statement
Sql insert statement
 
Database Management System 1
Database Management System 1Database Management System 1
Database Management System 1
 
Unit_9.pptx
Unit_9.pptxUnit_9.pptx
Unit_9.pptx
 
Oracle basic queries
Oracle basic queriesOracle basic queries
Oracle basic queries
 
DDL(Data defination Language ) Using Oracle
DDL(Data defination Language ) Using OracleDDL(Data defination Language ) Using Oracle
DDL(Data defination Language ) Using Oracle
 
MySql slides (ppt)
MySql slides (ppt)MySql slides (ppt)
MySql slides (ppt)
 

Recently uploaded

Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7Riya Pathan
 
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...ritikasharma
 
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...noor ahmed
 
GV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICE
GV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICEGV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICE
GV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICEApsara Of India
 
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...Riya Pathan
 
Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...
Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...
Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...Riya Pathan
 
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal EscortsCall Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal EscortsApsara Of India
 
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...noor ahmed
 
VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...
VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...
VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...anamikaraghav4
 
Call Girl Nashik Amaira 7001305949 Independent Escort Service Nashik
Call Girl Nashik Amaira 7001305949 Independent Escort Service NashikCall Girl Nashik Amaira 7001305949 Independent Escort Service Nashik
Call Girl Nashik Amaira 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
VIP Call Girl Kolhapur Aashi 8250192130 Independent Escort Service Kolhapur
VIP Call Girl Kolhapur Aashi 8250192130 Independent Escort Service KolhapurVIP Call Girl Kolhapur Aashi 8250192130 Independent Escort Service Kolhapur
VIP Call Girl Kolhapur Aashi 8250192130 Independent Escort Service KolhapurRiya Pathan
 
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment BookingCall Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment Bookingnoor ahmed
 
Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...
Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...
Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...Riya Pathan
 
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...anamikaraghav4
 
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969Apsara Of India
 
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...aamir
 
VIP Call Girls Darjeeling Aaradhya 8250192130 Independent Escort Service Darj...
VIP Call Girls Darjeeling Aaradhya 8250192130 Independent Escort Service Darj...VIP Call Girls Darjeeling Aaradhya 8250192130 Independent Escort Service Darj...
VIP Call Girls Darjeeling Aaradhya 8250192130 Independent Escort Service Darj...Neha Kaur
 
Air-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment Booking
Air-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment BookingAir-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment Booking
Air-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment BookingRiya Pathan
 

Recently uploaded (20)

Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7
 
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
 
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...
 
GV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICE
GV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICEGV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICE
GV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICE
 
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
 
Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...
Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...
Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...
 
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal EscortsCall Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
 
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
 
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
 
VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...
VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...
VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...
 
Call Girl Nashik Amaira 7001305949 Independent Escort Service Nashik
Call Girl Nashik Amaira 7001305949 Independent Escort Service NashikCall Girl Nashik Amaira 7001305949 Independent Escort Service Nashik
Call Girl Nashik Amaira 7001305949 Independent Escort Service Nashik
 
VIP Call Girl Kolhapur Aashi 8250192130 Independent Escort Service Kolhapur
VIP Call Girl Kolhapur Aashi 8250192130 Independent Escort Service KolhapurVIP Call Girl Kolhapur Aashi 8250192130 Independent Escort Service Kolhapur
VIP Call Girl Kolhapur Aashi 8250192130 Independent Escort Service Kolhapur
 
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment BookingCall Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
 
Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...
Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...
Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...
 
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
 
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
 
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
 
VIP Call Girls Darjeeling Aaradhya 8250192130 Independent Escort Service Darj...
VIP Call Girls Darjeeling Aaradhya 8250192130 Independent Escort Service Darj...VIP Call Girls Darjeeling Aaradhya 8250192130 Independent Escort Service Darj...
VIP Call Girls Darjeeling Aaradhya 8250192130 Independent Escort Service Darj...
 
Air-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment Booking
Air-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment BookingAir-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment Booking
Air-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment Booking
 

Sql

  • 2. SQL-Create table Create table table_name(column_name1 datatype, column_name2 datatype……) Eg: create table example (id int ,name varchar(10),address varchar(10)) Msg: Command(s) completed successfully.
  • 3. SQL-Insert Values Insert into table_name(column1,column2,…..)values(values1,values2,…) Eg: insert into example (id,name,address) values(123,'xxxx','yyyyy') Msg: (1 row(s) affected)
  • 4. SQL-Select Command select *from example Id name address 123 xxxxyyyyy 456 jjjjrrrr 456 iiiinnnn 567 eeeeffff
  • 5. SQL-Alter Command Alter table table_name add or drop column_namedatatype Eg: alter table example add mobilenoint Msg: Command(s) completed successfully. Id name address mobileno 123 xxxxyyyyy NULL 456 jjjjrrrr NULL 888 iiiinnnn NULL 567 eeeeffff NULL
  • 6. SQL-Update Command Update table_name set column_name=new value where column_name=any value Eg: Update example set id=888 where name='iiii‘ Msg: (1 row(s) affected) Id name address 123 xxxxyyyyy 456 jjjjrrrr 888 iiiinnnn 567 eeeeffff
  • 7. SQL-Delete Command Delete table_name where coition Eg: delete example where id=888 Msg: (1 row(s) affected) Id name address mobileno 123 xxxxyyyyy NULL 456 jjjjrrrr NULL 567 eeeeffff NULL
  • 8. SQL-Drop Command Drop table table_name Eg: drop table example Msg:Command(s) completed successfully.
  • 9. SQL-Primary Key & Foreign Key CREATE TABLE table_name (column1 datatype null/not null, column2 datatype null/not null,...CONSTRAINT constraint_name PRIMARY KEY (column1, column2, . column_n)); CREATE TABLE table_name (column1 datatype,  column2 datatype, column3 datatype,  Primary Key (column_any), Foreign Key (Column_any) references Table_any(datatype));
  • 10. SQL-Primary Key & foreign Key create table example (id intprimary key,namevarchar(10),address varchar(10)) A primary key is used to unique and Not Null identify each row in the table. create table example2 (salary int,expamountint, id int references example(id)) A foreign key is a referential constraint between two tables. 
  • 11. SQL-Primary Key & Foreign Key Id name address 123 rrrrtttt 369 klkliooo 456 iiiihhhh 7889 wswsweww Salary expamount id 10000 4235 7889 12369 8526 456 12369 865 456 65894 12589 123 Example (primary Key tale) Example2 (Foreign Key tale)
  • 12. SQL-Primary Key & Foreign Key select name,address,salary from example e,example2 e2 where e.id=e2.id O/P Name address salary wswsweww 10000 iiiihhhh 12369 iiiihhhh 12369 rrrrtttt 65894
  • 13. SQL-Connection String string strcon = "Data Source=172.16.0.1;Initial Catalog=BatchThree;User ID=magnum;Password=Magnum"; SqlConnectionsqlcon = new SqlConnection(strcon); sqlcon.Open(); stringstrsql = "insert into datab values ('" + txtmarks1.Text + "','" + txtmarks2.Text + "','" + txtmarks3.Text + "','" + txtname.Text + "')"; SqlCommandcmd = new SqlCommand(strsql, sqlcon); cmd.CommandType = CommandType.Text; cmd.ExecuteNonQuery(); sqlcon.Close();
  • 17. SQL-Stored Procedure create procedure proexample(@id int,@namevarchar(10),@address varchar(10)) as insert into example(id,name,address) values (@id,@name,@address) Command(s) completed successfully. exec proexample 666,'hghg','yuyu‘ (1 row(s) affected)
  • 18. SQL-Stored Procedure select *from example Id name address 123 rrrrtttt 369 klkliooo 456 iiiihhhh 666 hghgyuyu 7889 wswsweww
  • 19. SQL-JOINS SQL joins are used to query data from two or more tables, based on a relationship between certain columns in these tables Inner Join Left Join Right Join Full Join
  • 20. SQL-INNER JOIN The INNER JOIN keyword return rows when there is at least one match in both tables. SELECT column_name(s)FROM table_name1INNER JOIN table_name2ON table_name1.column_name=table_name2.column_name
  • 21. SQL-INNER JOIN select name,address,salary from example inner join example2 on example.id=example2.id order by name Name address salary iiiihhhh 12369 iiiihhhh 12369 rrrrtttt 65894 Wswsweww 10000
  • 22. SQL-LEFT JOIN The LEFT JOIN keyword returns all rows from the left table (table_name1), even if there are no matches in the right table (table_name2) SELECT column_name(s)FROM table_name1LEFT JOIN table_name2ON table_name1.column_name=table_name2.column_name
  • 23. SQL_LEFT JOIN select name,address,salary from example left join example2 on example.id=example2.id order by name Name address salary hghgyuyu NULL iiiihhhh 12369 iiiihhhh 12369 klkliooo NULL rrrrtttt 65894 wswsweww 10000
  • 24. SQL-RIGHT JOIN The RIGHT JOIN keyword returns all the rows from the right table (table_name2), even if there are no matches in the left table (table_name1) SELECT column_name(s)FROM table_name1RIGHT JOIN table_name2ON table_name1.column_name=table_name2.column_name
  • 25. SQL_RIGHT JOIN select name,address,salary from example right join example2 on example.id=example2.id order by name Name address salary iiiihhhh 12369 iiiihhhh 12369 rrrrtttt 65894 wswsweww 10000
  • 26. SQL-FULL JOIN The FULL JOIN keyword return rows when there is a match in one of the tables. SELECT column_name(s)FROM table_name1FULL JOIN table_name2ON table_name1.column_name=table_name2.column_name
  • 27. SQL-FULL JOIN select name,address,salary from example full join example2 on example.id=example2.id order by name Name address salary hghgyuyu NULL iiiihhhh 12369 iiiihhhh 12369 klkliooo NULL rrrrtttt 65894 wswsweww 10000