sql server dba training | sql server dba training online | sql server dba course
What is SQL Server?
Transcript of What is SQL Server?
![Page 1: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/1.jpg)
CPD TECHNOLOGIESTM
-An ISO 9001: 2008 Certified
Email: [email protected] Add:- Block C-9/8, Sector -7, Rohini, Delhi 110085, India
![Page 2: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/2.jpg)
What is SQL? SQL stands for Structured Query Language.
Its main aim to store, access and mainpulate data in realtional database.
SQL was developed at IBM company by Donald D. Chamberline and Reymond F.Boyce. In early 1970s.
All relational database management system like MySQL, MS Access, Oracle and SQL server use SQL as astandered database langauge.
![Page 3: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/3.jpg)
SQL MySQL ORACLE SQL Server
![Page 4: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/4.jpg)
USES of SQL• SQL is used to communicate with a
database• Used to perform task such as insert
data, update data in database.• A tool to retrieve the required
information from database.
![Page 5: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/5.jpg)
SQL Language Statement› Clause: The clause are component of the
statement and queries.
› Expression: A combination of symbol and operators that the database system evaluates to obtain a single data value
› Queries: Queries are used to give command to server to perform specific task.
![Page 6: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/6.jpg)
What SQL can Do?SQL
Create Read Update Delete
![Page 7: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/7.jpg)
Data Defination Language (DDL)
Command DescriptionCREATE Create a new table and a view of a table
ALTER Modify an existing database object, such as table.
DROP Delete an entire table, a view of a table or other object in database.
![Page 8: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/8.jpg)
Data Manipulation Language (DML)
Command Description
SELECT Retrieve certain record from one or more table.
INSERT Create a record
UPDATE Modify records
DELETE Delete records
![Page 9: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/9.jpg)
Data Control Language (DCL)
Command DescriptionGRANT Gives a privilege to user
REVOKE Take back privilege granted from user
![Page 10: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/10.jpg)
SQLSyntax
Select * from Student; The above SQL Statement select all records in the “Student” table:Name Program Enrollment Number
Harsha MCA 126901230
Deepak BCA 125689023
![Page 11: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/11.jpg)
CREATE StatementCreate database databaseName;Create table Student(Name varchar(20), //Name has varchar Datatype having size of 20 charecterProgram varchar(10), Enrol_No int //Enrol_No has integer datatype)
![Page 12: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/12.jpg)
INSERT Statement The following SQL statement insert data into student table.
Insert into Student(Name, Program, Enrol_No) values(‘Aman’, ‘B.Com’, 134567890);
![Page 13: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/13.jpg)
DROP StatementThe following statement is used to drop Database and Table.
Drop database databaseName; //delete database
Drop table Student; //delete table from database
![Page 14: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/14.jpg)
UPDATE StatementUpdate Student Set Name=‘Anamika’Where Enrol_No= 126901230 //Condition
![Page 15: What is SQL Server?](https://reader036.fdocuments.net/reader036/viewer/2022062523/58a343ed1a28ab62248b5279/html5/thumbnails/15.jpg)
Want big impact? CPD TECHNOLOGIESTMAn ISO 9001: 2008 Certified
BLOCK C 9/8, SECTOR -7, ROHINI, DELHI-110085, INDIA
LANDMARK: NEAR ROHINI EAST METRO STATION,
OPPOSITE METRO PILLAR NO-397
TELEPHONE: 011-65164822
MOBILE: +91- 8860352748
EMAIL: [email protected]