Professional Documents
Culture Documents
Reg No:309087579. Advance Database Systems ECI 5266
Reg No:309087579. Advance Database Systems ECI 5266
5266
Q1).
It is established between client and the database server directly This uses a protocol to proxy the communication between the client and Data base Management system. A DBMS needs to be compatible with many different connectivity protocols used by various client drivers and middleware system. To establish and remember connection state of the caller To respond to SQL commands from the caller. Give relevant data and control messages like giving error messages, Forward the clients requests to deeper into database management system to be processed.
i).Process Manager.
Admission control-at this stage it is considering whether the query executes immediately or later according to available system resources.
In this stage set of relevant modules checks that the user is authorized to run the query. Compiles the users query into internal query plan. The resulting query plan is handled by the plan executor. Calls to request to data records in lower level layers of the system.
This manages all data access. Data manipulating like create, update and delete records. It includes the buffer management module what data transfer in disk and memory buffers. This includes algorithm and data structure for organizing and accessing data on disk including tables and indexes.
This can run independent of any particular of query, Keeping the database as well tuned and reliable.
Studen t Id 1984
1258
COS
CS4569 Algorithom
4589 7856
CIE AGC
ED589 6 AG452
Mathematic s Plants
First Normal form To normalize a data model into 1NF, eliminate repeating groups into individual entities. In other words we are not using multiple attribute in a single entity to store similar data.
Student entity in 1NF StudentId is the primary key. Student Id 1984 1258 4589 7856 2369 Last Name Hareshan Perera Peris Dilrukshi Silva First Name Visanka Ruwan Amila Nirosha Eshan Middle L R E K T Code TEL CSE CIE AGC LGS Degree Telecommunica tion Algorithm Mathematics Agriculture Logistics
Course entity in 1NF Student Id 1984 1258 4589 Course Num EL1200 CS4569 ED5896 Subject Name Networking Algorithm Mathematics Course Stated Date 2001-05-24 2000-02-25 2003-08-21
7856 2369
AG4521 LI1234
Plants Transportation
2005-06-09 2001-02-05
Second Normal Form To convert to second normal form tables should be in first normal form. Second Normal form ensures that all the attributes of each entity are dependent on the primary key. A row is in second normal form if and only if it is in first normal form and every non-key attribute is fully dependent on the key.
Enrolment Entity in 2NF Student id is the primary key. Student Id 1984 1258 4589 7856 2369 Course Number EL1200 CS4569 ED5896 AG4521 LI1234 Course Started Date 2001-05-24 2000-02-25 2003-08-21 2005-06-09 2001-02-05
Course Entity in 2NF Course Num EL1200 Subject Name Networking Credits 3
Third Normal Form In this stage first tables should be in second normal form, in this stage we look into groups of attributes whose values can apply to more than a single entity occurrence. When we discover such attributes move them into a separate entity.
3NF Student entity in 3NF Student Id 1984 1258 4589 7856 2369 First Name Visanka Ruwan Amila Nirosha Eshan Last Name Hareshan Perera Peris Dilrukshi Silva Middle Name L R E K T Code TEL COS CIE AGC LGS
Subject entity in 3 NF
2).Data requirements for the student registration system. For student entity Student name Student registration number Registration date Student date of birth Student national id card number Student gender Student E mail address Student degree
For courses entity Subject name Subject code Lecturer Names Number of TMAs