Dbmsconcepts Intro
Dbmsconcepts Intro
meaning
Database System:
The DBMS Software together with the data itself. Sometimes, the
Disadvantages :
Cost- Ineffective
Performance is less for higher number of
users
3- Tier Architecture
3-Tier Architecture
This tier is used for Business Applications like web based
Layer
Interface (UI) and used for design purpose . The End users
Drawbacks:
It cannot represent all the relationships
between data
It is very difficult to modify
Network Model
commit;
DML Commands
delete – deletes the records selected rows or
as a whole
delete from table where sid=543;
delete from stud; the whole table contents are
deleted
commit;
DRL , TCL
select statement is DRL
select sid,sname from stud;
select * from stud;
select * from stud where no>453;
TCL
commit,rollback ,savepoint
whenever a transaction is committed it
is written into the database
rollback; This is equivalent to undo
SavePoint: Temporarily Saving the data
till previous commit
DCL – data control language
grant and revoke
grant – grants permissions, privileges,roles
and profiles to users
grant connect,resource to user1;
revoke – takes back the
permissions,privileges,roles and profiles from
the users
revoke connect,resource from user1;
Constraints
To give conditions according to our needs
There are three types of constraints:
Domain - not null, check, default
Entity - primary key , unique key
Referential - foreign key
Table altered
Table altered.
unique);
Table altered.
Constraints
SQL> create table pt(name varchar(10),id number
constraint pk PRIMARY KEY,sal number);
Table created.
SQL> create table ct(sname varchar(10),id number
Table created.