Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
2Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
SQL Plsql Material

SQL Plsql Material

Ratings: (0)|Views: 12|Likes:
Published by Rukmini Vegesna
sql material
sql material

More info:

Published by: Rukmini Vegesna on Jul 28, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

07/13/2014

pdf

text

original

 
SQL
SQL is divided into the following
Data Definition Language (DDL)
Data Manipulation Language (DML)
Data Retrieval Language (DRL)
Transaction Control Language (TCL)
Data Control Language (DCL)DDL Data Definition Language (DDL) statements are used to define the database structure or schema. Some examples:
CREATE - to create objects in the database
ALTER - alters the structure of the database
DROP - delete objects from the database
TRUNCATE - remove all records from a table, including all spaces allocated for therecords are removed
COMMENT - add comments to the data dictionary
RENAME - rename an objectDRL Data Retrieval Language:
SELECT - retrieve data from the a database
Page 1
 
DML Data Manipulation Language (DML) statements are used for managing data withinschema objects. Some examples:
INSERT - insert data into a table
UPDATE - updates existing data within a table
DELETE - deletes all records from a table, the space for the records remain
MERGE - UPSERT operation (insert or update)DCL Data Control Language (DCL) statements. Some examples:
GRANT - gives user's access privileges to database
REVOKE - withdraw access privileges given with the GRANT commandTCL Transaction Control (TCL) statements are used to manage the changes made by DMLstatements. It allows statements to be grouped together into logical transactions.
COMMIT - save work done
SAVEPOINT - identify a point in a transaction to which you can later roll back 
ROLLBACK - restore database to original since the last COMMITDRL: To Retreive the data from Databse Tables or views..
Page 2
 
SELECT:SELECT *FROM emp;SELECT emno,ename,sal,deptnoFROM emp;SELECT *FROM empWHERE deptno = 10;SELECT empno,ename,sal,deptnoFROM empWHERE deptno = 10;SELECT *FROM empWHERE job = ‘manager’;SELECT *FROM empWHERE job = ‘MANAGER’;
Page 3

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->