Professional Documents
Culture Documents
Group (III)
March- 2017
Guided by : Dr. Theint Theint Aye
Presented by
7
3.5 Identifying Users
According to the system provide, three type of users:
Libstaffone, libstafftwo, member
Create user libstaffone@localhost identified by 'cumgylibone';
Create user libstafftwo@localhost IDENTIFY BY ‘cumgylibtwo’;
Create user member@localhost IDENTIFY BY ‘cumgylibmem’;
3.6 Defining Privileges
1. libstaffone: As a admin, to access all tables and manage the system
2. libstafftwo: To access Record and Card_Info in selecting, inserting and
Updating
3. member: To access Book_Information in selecting
new.dept=‘Software’ or
new.dept=‘Hardware’ or
new.dept=‘Information Science’ or
new.dept=‘Application’ or
new.dept=‘Research’ then
setnew.dept=dept;
10
else
setnew.dept=‘Invalid’;
end if;
end;
Trigger for inserting data into Transition table
Create trigger datecheck
before insert
on Transition
for each row
begin
ifnew.rdate<new.ldate then
signalsqlstate ‘45000’
setmessage_text=‘Invalid date’;
end if;
end;
11
4. Conclusion
The System Of Borrowing Books From Library allows to the users to
store the book details, member detalils and the records details with accurate
data and time. This system also provides authentication so that unauthorized
person is not able to gain access into database. And then, it can reduce the cost
of time and the record errors compare with paper work and can easily search
the information which authorized users want, in a short time.
12
5. REFERENCE
C.J.Date, “An Introduction to Database Management System”,
the 7th Edition