Suche senden
Hochladen
Lecture5-SQL.docx
âą
Als DOCX, PDF herunterladen
âą
0 gefÀllt mir
âą
493 views
I
ismailaboshatra
Folgen
Melden
Teilen
Melden
Teilen
1 von 6
Jetzt herunterladen
Empfohlen
Mysql Crud, Php Mysql, php, sql
Mysql Crud, Php Mysql, php, sql
Aimal Miakhel
Â
Chapter 07 ddl_sql
Chapter 07 ddl_sql
Nazir Ahmed
Â
Chapter 4 Structured Query Language
Chapter 4 Structured Query Language
Eddyzulham Mahluzydde
Â
Oracle: Basic SQL
Oracle: Basic SQL
DataminingTools Inc
Â
SQL Tutorial - Basic Commands
SQL Tutorial - Basic Commands
1keydata
Â
Creating database using sql commands
Creating database using sql commands
Belle Wx
Â
Sql basic things
Sql basic things
Nishil Jain
Â
Introduction to SQL
Introduction to SQL
Ehsan Hamzei
Â
Empfohlen
Mysql Crud, Php Mysql, php, sql
Mysql Crud, Php Mysql, php, sql
Aimal Miakhel
Â
Chapter 07 ddl_sql
Chapter 07 ddl_sql
Nazir Ahmed
Â
Chapter 4 Structured Query Language
Chapter 4 Structured Query Language
Eddyzulham Mahluzydde
Â
Oracle: Basic SQL
Oracle: Basic SQL
DataminingTools Inc
Â
SQL Tutorial - Basic Commands
SQL Tutorial - Basic Commands
1keydata
Â
Creating database using sql commands
Creating database using sql commands
Belle Wx
Â
Sql basic things
Sql basic things
Nishil Jain
Â
Introduction to SQL
Introduction to SQL
Ehsan Hamzei
Â
Introduction to (sql)
Introduction to (sql)
Dattatray Ghorpade
Â
Advanced Sql Training
Advanced Sql Training
bixxman
Â
SQL - Structured query language introduction
SQL - Structured query language introduction
Smriti Jain
Â
Sql basics
Sql basics
Genesis Omo
Â
Database Architecture and Basic Concepts
Database Architecture and Basic Concepts
Tony Wong
Â
Data Manipulation(DML) and Transaction Control (TCL)
Data Manipulation(DML) and Transaction Control (TCL)
MuhammadWaheed44
Â
intro for sql
intro for sql
mahmoud mones
Â
Session 8 connect your universal application with database .. builders & deve...
Session 8 connect your universal application with database .. builders & deve...
Moatasim Magdy
Â
Introduction to-sql
Introduction to-sql
BG Java EE Course
Â
Sql tutorial
Sql tutorial
Rumman Ansari
Â
SQL Commands
SQL Commands
Sachidananda M H
Â
PHP mysql Sql
PHP mysql Sql
Mudasir Syed
Â
Sql Basics And Advanced
Sql Basics And Advanced
rainynovember12
Â
Sql server T-sql basics ppt-3
Sql server T-sql basics ppt-3
Vibrant Technologies & Computers
Â
SQL Overview
SQL Overview
Stewart Rogers
Â
Introduction to database
Introduction to database
Pongsakorn U-chupala
Â
Sql intro & ddl 1
Sql intro & ddl 1
Dr. C.V. Suresh Babu
Â
Sql operator
Sql operator
Pooja Dixit
Â
Agile Data concept introduction
Agile Data concept introduction
Romans Malinovskis
Â
SQL for interview
SQL for interview
Aditya Kumar Tripathy
Â
MYSQL.ppt
MYSQL.ppt
webhostingguy
Â
Sql 2006
Sql 2006
Cathie101
Â
Weitere Àhnliche Inhalte
Was ist angesagt?
Introduction to (sql)
Introduction to (sql)
Dattatray Ghorpade
Â
Advanced Sql Training
Advanced Sql Training
bixxman
Â
SQL - Structured query language introduction
SQL - Structured query language introduction
Smriti Jain
Â
Sql basics
Sql basics
Genesis Omo
Â
Database Architecture and Basic Concepts
Database Architecture and Basic Concepts
Tony Wong
Â
Data Manipulation(DML) and Transaction Control (TCL)
Data Manipulation(DML) and Transaction Control (TCL)
MuhammadWaheed44
Â
intro for sql
intro for sql
mahmoud mones
Â
Session 8 connect your universal application with database .. builders & deve...
Session 8 connect your universal application with database .. builders & deve...
Moatasim Magdy
Â
Introduction to-sql
Introduction to-sql
BG Java EE Course
Â
Sql tutorial
Sql tutorial
Rumman Ansari
Â
SQL Commands
SQL Commands
Sachidananda M H
Â
PHP mysql Sql
PHP mysql Sql
Mudasir Syed
Â
Sql Basics And Advanced
Sql Basics And Advanced
rainynovember12
Â
Sql server T-sql basics ppt-3
Sql server T-sql basics ppt-3
Vibrant Technologies & Computers
Â
SQL Overview
SQL Overview
Stewart Rogers
Â
Introduction to database
Introduction to database
Pongsakorn U-chupala
Â
Sql intro & ddl 1
Sql intro & ddl 1
Dr. C.V. Suresh Babu
Â
Sql operator
Sql operator
Pooja Dixit
Â
Agile Data concept introduction
Agile Data concept introduction
Romans Malinovskis
Â
SQL for interview
SQL for interview
Aditya Kumar Tripathy
Â
Was ist angesagt?
(20)
Introduction to (sql)
Introduction to (sql)
Â
Advanced Sql Training
Advanced Sql Training
Â
SQL - Structured query language introduction
SQL - Structured query language introduction
Â
Sql basics
Sql basics
Â
Database Architecture and Basic Concepts
Database Architecture and Basic Concepts
Â
Data Manipulation(DML) and Transaction Control (TCL)
Data Manipulation(DML) and Transaction Control (TCL)
Â
intro for sql
intro for sql
Â
Session 8 connect your universal application with database .. builders & deve...
Session 8 connect your universal application with database .. builders & deve...
Â
Introduction to-sql
Introduction to-sql
Â
Sql tutorial
Sql tutorial
Â
SQL Commands
SQL Commands
Â
PHP mysql Sql
PHP mysql Sql
Â
Sql Basics And Advanced
Sql Basics And Advanced
Â
Sql server T-sql basics ppt-3
Sql server T-sql basics ppt-3
Â
SQL Overview
SQL Overview
Â
Introduction to database
Introduction to database
Â
Sql intro & ddl 1
Sql intro & ddl 1
Â
Sql operator
Sql operator
Â
Agile Data concept introduction
Agile Data concept introduction
Â
SQL for interview
SQL for interview
Â
Ăhnlich wie Lecture5-SQL.docx
MYSQL.ppt
MYSQL.ppt
webhostingguy
Â
Sql 2006
Sql 2006
Cathie101
Â
Db1 lecture4
Db1 lecture4
Sherif Gad
Â
SQL Queries Information
SQL Queries Information
Nishant Munjal
Â
1670595076250.pdf
1670595076250.pdf
GaneshR321894
Â
SQL đđđ„.pdf
SQL đđđ„.pdf
LightWolf2
Â
SQL learning notes and all code.pdf
SQL learning notes and all code.pdf
79TarannumMulla
Â
Cheat sheet SQL commands with examples and easy understanding
Cheat sheet SQL commands with examples and easy understanding
VivekanandaGN1
Â
PT- Oracle session01
PT- Oracle session01
Karthik Venkatachalam
Â
Dbms
Dbms
Sachin Yadav
Â
Lab
Lab
neelam_rawat
Â
JDBC
JDBC
Sunil OS
Â
Accessing data with android cursors
Accessing data with android cursors
info_zybotech
Â
Accessing data with android cursors
Accessing data with android cursors
info_zybotech
Â
Oracle notes
Oracle notes
Prashant Dadmode
Â
SQLSlide
SQLSlide
OrtonRandyandy34534
Â
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SabrinaShanta2
Â
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SaiMiryala1
Â
Sql basics
Sql basics
Kumar
Â
Sql General
Sql General
Praveen Tiwari
Â
Ăhnlich wie Lecture5-SQL.docx
(20)
MYSQL.ppt
MYSQL.ppt
Â
Sql 2006
Sql 2006
Â
Db1 lecture4
Db1 lecture4
Â
SQL Queries Information
SQL Queries Information
Â
1670595076250.pdf
1670595076250.pdf
Â
SQL đđđ„.pdf
SQL đđđ„.pdf
Â
SQL learning notes and all code.pdf
SQL learning notes and all code.pdf
Â
Cheat sheet SQL commands with examples and easy understanding
Cheat sheet SQL commands with examples and easy understanding
Â
PT- Oracle session01
PT- Oracle session01
Â
Dbms
Dbms
Â
Lab
Lab
Â
JDBC
JDBC
Â
Accessing data with android cursors
Accessing data with android cursors
Â
Accessing data with android cursors
Accessing data with android cursors
Â
Oracle notes
Oracle notes
Â
SQLSlide
SQLSlide
Â
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
Â
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
Â
Sql basics
Sql basics
Â
Sql General
Sql General
Â
Mehr von ismailaboshatra
fatma.docx
fatma.docx
ismailaboshatra
Â
Call+for+Papers+2011.pdf
Call+for+Papers+2011.pdf
ismailaboshatra
Â
d.docx
d.docx
ismailaboshatra
Â
d.docx
d.docx
ismailaboshatra
Â
d.docx
d.docx
ismailaboshatra
Â
d.docx
d.docx
ismailaboshatra
Â
d.docx
d.docx
ismailaboshatra
Â
d.docx
d.docx
ismailaboshatra
Â
d.docx
d.docx
ismailaboshatra
Â
d.docx
d.docx
ismailaboshatra
Â
dt.docx
dt.docx
ismailaboshatra
Â
dt.docx
dt.docx
ismailaboshatra
Â
dt.docx
dt.docx
ismailaboshatra
Â
Answers+of+C+sample+exam.docx
Answers+of+C+sample+exam.docx
ismailaboshatra
Â
Answers+of+C+sample+exam.docx
Answers+of+C+sample+exam.docx
ismailaboshatra
Â
lec1.docx
lec1.docx
ismailaboshatra
Â
lec4.docx
lec4.docx
ismailaboshatra
Â
QM17025+Rev0.1-05May2011.doc
QM17025+Rev0.1-05May2011.doc
ismailaboshatra
Â
lec2.docx
lec2.docx
ismailaboshatra
Â
lec5+.docx
lec5+.docx
ismailaboshatra
Â
Mehr von ismailaboshatra
(20)
fatma.docx
fatma.docx
Â
Call+for+Papers+2011.pdf
Call+for+Papers+2011.pdf
Â
d.docx
d.docx
Â
d.docx
d.docx
Â
d.docx
d.docx
Â
d.docx
d.docx
Â
d.docx
d.docx
Â
d.docx
d.docx
Â
d.docx
d.docx
Â
d.docx
d.docx
Â
dt.docx
dt.docx
Â
dt.docx
dt.docx
Â
dt.docx
dt.docx
Â
Answers+of+C+sample+exam.docx
Answers+of+C+sample+exam.docx
Â
Answers+of+C+sample+exam.docx
Answers+of+C+sample+exam.docx
Â
lec1.docx
lec1.docx
Â
lec4.docx
lec4.docx
Â
QM17025+Rev0.1-05May2011.doc
QM17025+Rev0.1-05May2011.doc
Â
lec2.docx
lec2.docx
Â
lec5+.docx
lec5+.docx
Â
Lecture5-SQL.docx
1.
2.
SQL âStructure Query
Languageâ
3.
Database Schema.
4.
Data types.
5.
Database constraints.
6.
DDL (Data Definition
Language)
7.
Create
8.
Alter
9.
Drop
10.
Truncate
11.
DML (Data Manipulation
Language)
12.
Insert
13.
Update
14.
Delete
15.
Transaction Control (Commit
â Rollback)
16.
Data Retrieval (SELECT)
17.
Queries (SELECT statement).
18.
Select from on
table.
19.
Distinct keyword.
20.
Derived Field.
21.
Column alias.
22.
Where clause.
23.
24.
Data Definition Language
(DDL).
25.
Data Manipulation Language
(DML).
26.
Data Control Language
(DCL).
27.
28.
Not Null
29.
Primary Key
30.
Unique Key
31.
Referential Integrity (
FK )
32.
Check
33.
DDL (Data Definition
Language)
34.
Create Table
35.
CREATE TABLE customer(ID
int (15) Not Null,
36.
First_Name char(50),Last_Name char(50),Address
char(50),City char(50),Country char(25),Birth_Date date),
37.
Primary Key (ID));
38.
Alter Table
39.
ALTER TABLE
customer
40.
ADD(Telchar(7));
41.
ALTER TABLE
customer
42.
DROP COLUMN
Country;
43.
Drop Table:
Remove table structure and all its data.
44.
DROP TABLE customer;
45.
Truncate Table:
Remove All Rows in the table.
46.
TRUNCATE TABLE
customer;
47.
DML (Data Manipulation
Language)
48.
Insert
49.
INSERT INTO Customers
50.
VALUES ( 10,
âSalehâ, âAhmed', âMoharam bak', âAlex.' , âEgyptâ , â01/10/1975â));
51.
INSERT INTO Persons
(ID, First_Name, City)
52.
VALUES (20, âHassan',
âAssuit');
53.
Update
54.
UPDATE customer
55.
SET city =
âCairoâ; /* this statement will update all rows of the table*/
56.
UPDATE customer
57.
SET city =
âCairoâ
58.
WHERE id
= 10;
59.
UPDATE customer
60.
SET city =
âCairoâ, Country = âEgyptâ
61.
WHERE id =
10; /* Update several columns in certain row*/
62.
Delete
63.
DELETE
FROM customer;
64.
/* This statement
will Delete all rows of the table*/
65.
DELETE
FROM customer
66.
WHERE id =
10; /* Delete one record only*/
67.
Data Retrieval (SELECT)
68.
Select <Attribute list
>
69.
From < Table
list>
70.
Where <Condition>
71.
Group By <Expression>
72.
Select from one
table
73.
SELECT *
74.
FROMcustomers;
75.
SELECT id, first_name
, city
76.
FROMcustomers;
77.
Distinct keyword
78.
SELECT distinct city
79.
FROMcustomers;
80.
Derived Field
81.
SELECT salary *
1.7
82.
FROMemployees;
83.
Column alias
84.
SELECT salary *
1.7 âRaised salaryâ
85.
FROMemployees;
86.
87.
FROM customers
88.
WHERE city =
âAlexâ;
89.
90.
SELECT *
91.
FROM customers
92.
ORDER BY First_Name
;
93.
/*This means sort
by first name in Ascending order*/
94.
SELECT *
95.
FROM customers
96.
ORDER BY First_Name
, Last_Name DESC ;
97.
/*This means sort
by first name in Ascending order and Last_name in Descending order*/
Jetzt herunterladen