You are on page 1of 3

DATA DEFINITION

LANGUANGE (DDL)
DATA MANIPULATION
LANGUAGE (DML)
Week 04 June 4
th
2014 (Jessica Duapulumodoyos Birthday)
(c) 2014 - Universitas Pelita Harapan Surabaya
SYMBOL OF ATTRIBUTE
(c) 2014 - Universitas Pelita Harapan Surabaya
attribute_name
multivalue_att.
entity_name
composite_attribute
derivative_attribute
primary_key
attr_name
attr_name
attr_name
5+1 SQL CONSTRAINT
NOT NULL column must be filled (cant store null value)
UNIQUE the value of each row for column must be different
PRIMARY KEY = NOT NULL + UNIQUE
FOREIGN KEY referential integrity of the data in one table to match
values in another table
CHECK the value in a column must match with the specific condition
Default set the default value for the column
(c) 2014 - Universitas Pelita Harapan Surabaya
DATA DEFINITION
LANGUAGE (DDL)
build and modify the structure of tables and other
objects in the database.
Ex. : create, alter, drop
(c) 2014 - Universitas Pelita Harapan Surabaya
DATA MANIPULATION
LANGUANGE (DML)
work with the data in tables
access and modify values or data in the selected row of
table.
Ex. :
Select retreives data.
Insert add new data or rows into a table.
Update modifiy or change values that are already
in a table.
Delete delete the data in table.
Commit
Rollback
(c) 2014 - Universitas Pelita Harapan Surabaya
DATA MANIPULATION
LANGUANGE (DML) CONT.
(c) 2014 - Universitas Pelita Harapan Surabaya
Warning !
If the WHERE clause is omitted in DELETE statement, then every row of the table is deleted
ORACLE/PLSQL :
PROCEDURES
please look at the REFERENCES, try by your self.
(c) 2014 - Universitas Pelita Harapan Surabaya
TASK + HOMEWORK
(c) 2014 - Universitas Pelita Harapan Surabaya
REFERENCES
http://www.w3schools.com/sql/sql_constraints.asp
http://docs.oracle.com/cd/E11882_01/appdev.112/e2
5518/adfns_constraints.htm#ADFNS263
http://www.tomjewett.com/dbdesign/dbdesign.php?p
age=ddldml.php
http://www.techonthenet.com/oracle/procedures.php
http://docs.oracle.com/cd/B19306_01/appdev.102/b1
4251/adfns_packages.htm
http://plsql-tutorial.com/plsql-procedures.htm
http://www.tutorialspoint.com/plsql/plsql_procedures.h
tm
(c) 2014 - Universitas Pelita Harapan Surabaya

You might also like