You are on page 1of 3

Lec: 01

23/10/2013

Databases

Dr/Amany Abdu

Database: Organized collection of information. Database Management System (DBMS): Software that facilitates organization storage and retrieval of information from databases. EX: Microsoft Access , SQL Server , ORACLE. Relational Model: Each subject in database is a table (Relation). Each table has a list of attributes (Fields). Each attribute has a specific domain (Type). Each Relation consists of a list of tuples (Rows, Records).

Student
subject
Domain (ID): Number Domain (Name): Text Domain (Email): Text

attributes

ID 1 2 3

Name X Y Z

Email -----@----------@----------@-----3 tuples

DB Schema (Meta Data): Specification of how data is structured logically. Rarely changes. S ID S ID S Name S FName Email S LName Email

Lec: 01

23/10/2013

Databases

Dr/Amany Abdu

DB Instance: Content. Changes rapidly. Must conform to the schema. Student (S ID, S Name, S Address) Course (C No, C Title)

DB Schema

DB Instance

Student (<1,Ahmed,Nasr City>,<2,Ali,Heliopolis>,<3,Islam,Mokatam>) Course (<101,Database>,<2,DataMining>,<3,Marketing>) Dom (ID): Number Dom (S Name): Text Dom (S Address): Text Student Primary Key: Must be unique.
One or more fields of table.

Course C No C Title

S ID S Name S Address Student Course

S ID 1 1 1 2 2

C No 1 2 3 1 2

S ID

P.K

C No

Lec: 01

23/10/2013

Databases

Dr/Amany Abdu

Employee E-No

Department D-No P.K

E-Name D-No

F.K

D-Name

An Employee assigned to one department. A department has many employees.

With my best wishes

Mohammed Farahat

You might also like