SlideShare a Scribd company logo
1 of 16
Download to read offline
United International University (UIU),CSE
Course Code: CSI 222
Course Title: Database Management
Systems Laboratory
Trimester: Summer 2015
Lab # 1 (Beginning with database)
Fatema Tuz Zohra
Assistant Professor, Dept. of CSE
Beginning with database
• In this lab session, you will be able to know various things
like-
▫ what should be put into a database,
▫ how can be a database organized,
▫ how will you harmonize the real-world things with
database, etc.
• Let’s start thinking- what will you try to put into the database.
Many things! Say, you are trying to keep records of teachers,
students and staffs of a university. What will you do?
2
Beginning with database
• The database will be a university database,
• The tables inside that university database will be teachers,
students and staffs.
• After that, think- what records will be kept.
• The name of the records will be the columns of those tables.
• The entries into those tables will be the rows of those tables.
Records/Entries
← Name of the Records →
→
→
→
→
3
Beginning with database
• Now try to simulate that database- (of course hypothetically! )
▫ We are keeping records of information of a university’s
teachers, students and staffs. So, the database will be
called- UNIVERSITY database.
▫ Primarily, there will be 3 tables- TEACHERS,
STUDENTS and STAFFS.
▫ Now we will take a look at what data records we should
keep.
4
Beginning with database
• For teachers, what information do you really think should be
kept?
 NAME
 DEPARTMENT
 DESIGNATION
 ROOM_NO
 PHONE
 EMAIL
 ADDRESS
 JOINING_DATE etc.
5
Beginning with database
• For students, what information do you suggest should be
kept?
 NAME
 STUDENT_ID
 DEPARTMENT
 YEAR
 SEMESTER
 PHONE
 E-MAIL
 ADDRESS
 DATE_OF_BIRTH etc.
6
Beginning with database
• For staffs, we require at least this information-
 NAME
 DEPARTMENT
 DESIGNATION
 OFFICE_ROOM
 PHONE
 E-MAIL
 ADDRESS
 JOINING_DATE etc.
• So, it’s obvious now- we have these columns in three tables
respectively.
7
THINK MORE
• Now think one thing- student names can be the same, but
they are distinguishable by their ID numbers. Is there
anything for other two tables? How can you distinguish two
teachers or two staffs with the same name?
• As a remedy, we can introduce two new information-
 TEACHER_ID in Teachers table and
 STAFF_ID in Staffs table.
• These IDs are unique; no same ID is allocated to two different
entries.
8
THINK MORE
• Another thing- take a look at the size of the tables- Huge, or
short? When we insert data into the tables, some info may
type twice or more! That is quite cumbersome job! So, we
need to minimize tables on the basis of redundant column.
(We will find the benefits of minimizing tables in the later lab
classes.)
• We would like to separate the tables in following way-
 Separate information on departments (DEPARTMENT)
from others.
 Separate contact related info (ADDRESS, PHONE,
EMAIL) from others.
9
THINK MORE
• Another thing- take a look at the size of the tables- Huge, or
short? When we insert data into the tables, some info may
type twice or more! That is quite cumbersome job! So, we
need to minimize tables on the basis of redundant column.
(We will find the benefits of minimizing tables in the later lab
classes.)
• We would like to separate the tables in following way-
 Separate information on departments (DEPARTMENT)
from others.
 Separate contact related info (ADDRESS, PHONE,
EMAIL) from others.
10
THINK MORE
• In a word- what we are trying to do is splitting up tables with
small number of columns.
• Up to this point, we have tables with columns as follows-
 Teachers (TEACHER_ID, NAME)
 Students (STUDENT_ID, NAME)
 Staffs (STAFF_ID, NAME)
 Departments(ID, DEPARTMENT)
 Contacts(ID, ADDRESS, PHONE,EMAIL)
11
THINK MORE
• Still there are options to make more tables like-
 Designations (ID, DESIGNATION)
 Dates (ID, JOINING_DATE, DATE_OF_BIRTH)
 Year_Semester_Records (ID, YEAR, SEMESTER)
 Rooms (ID, ROOM_NO)
• Do you notice that- in all of our tables we have that unique
identifier- ID!
• So far, we made 9 tables from 3 tables! But 5 tables feel
better.
• REMEMBER- Database can work even with a bad (worse/
worst) database design. But you will have to code less if you
design a database effectively!
12
A SIMPLE CASE STUDY
• A database is required to keep a software company’s records.
• The database should keep personal records about employee’s
like-
 NAME
 POST
 DATE_OF_BIRTH
 JOINING_DATE
 YEAR_OF_EXPERIENCE
 PHONE
 E_MAIL
 ADDRESS
 GENDER
 PROJECTS_COVERED etc.
13
A SIMPLE CASE STUDY
• The database also should contain records of
clients. Clients can be a company or
individual.
 NAME_OF_COMPANY
 REGISTRATION_NO
 ADDRESS
 WEB
 EMAIL
 PHONE
 FAX
 PROJECTS_SUPPLIED
 TOTAL_COST
 AMOUNT_PAID
 AMOUNT_RECEIVABLE etc.
14
A SIMPLE CASE STUDY
• So, you decide if there should be two tables OR
more OR just one will do the job.
• Your task is to just design it effectively on your
own.
15
END
16

More Related Content

Similar to RDBMS Lab01 beginning with-database (UIU)

Database indexing techniques
Database indexing techniquesDatabase indexing techniques
Database indexing techniquesahmadmughal0312
 
ICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptx
ICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptxICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptx
ICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptxAmanda783100
 
MICRO PROJECT 22319 DMS
MICRO PROJECT 22319 DMSMICRO PROJECT 22319 DMS
MICRO PROJECT 22319 DMSARVIND SARDAR
 
SAGE interview questions for Asst. Professor
SAGE interview questions for Asst. ProfessorSAGE interview questions for Asst. Professor
SAGE interview questions for Asst. Professorkiranrajat
 
10359485
1035948510359485
10359485kavumo
 
Ms access tutorial
Ms access tutorialMs access tutorial
Ms access tutorialminga48
 
An introduction to your IS Project
An introduction to your IS ProjectAn introduction to your IS Project
An introduction to your IS Projectamurani
 
Advanced Database Systems - Presentation 1 with quiz.pptx
Advanced Database Systems - Presentation 1 with quiz.pptxAdvanced Database Systems - Presentation 1 with quiz.pptx
Advanced Database Systems - Presentation 1 with quiz.pptxEllenGracePorras
 
1. SQL Basics - Introduction
1. SQL Basics - Introduction1. SQL Basics - Introduction
1. SQL Basics - IntroductionVarun A M
 
MS EXCEL LESSON.pptx
MS EXCEL LESSON.pptxMS EXCEL LESSON.pptx
MS EXCEL LESSON.pptxJoeyGarancho1
 
data abstraction in DBMS
data abstraction in DBMSdata abstraction in DBMS
data abstraction in DBMSBHARATH KUMAR
 
Using Excel In Your Classroom And Beyond
Using Excel In Your Classroom And BeyondUsing Excel In Your Classroom And Beyond
Using Excel In Your Classroom And BeyondDoug
 
Database - R.D.Sivakumar
Database - R.D.SivakumarDatabase - R.D.Sivakumar
Database - R.D.SivakumarSivakumar R D .
 
toolkit13_sec9.pdf
toolkit13_sec9.pdftoolkit13_sec9.pdf
toolkit13_sec9.pdfAfrim Alili
 

Similar to RDBMS Lab01 beginning with-database (UIU) (20)

Database indexing techniques
Database indexing techniquesDatabase indexing techniques
Database indexing techniques
 
Database
DatabaseDatabase
Database
 
Access 2010
Access 2010Access 2010
Access 2010
 
SQL.pptx
SQL.pptxSQL.pptx
SQL.pptx
 
RDMS AND SQL
RDMS AND SQLRDMS AND SQL
RDMS AND SQL
 
ICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptx
ICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptxICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptx
ICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptx
 
MICRO PROJECT 22319 DMS
MICRO PROJECT 22319 DMSMICRO PROJECT 22319 DMS
MICRO PROJECT 22319 DMS
 
SAGE interview questions for Asst. Professor
SAGE interview questions for Asst. ProfessorSAGE interview questions for Asst. Professor
SAGE interview questions for Asst. Professor
 
10359485
1035948510359485
10359485
 
Day wise ms word
Day wise ms wordDay wise ms word
Day wise ms word
 
Ms access tutorial
Ms access tutorialMs access tutorial
Ms access tutorial
 
An introduction to your IS Project
An introduction to your IS ProjectAn introduction to your IS Project
An introduction to your IS Project
 
Advanced Database Systems - Presentation 1 with quiz.pptx
Advanced Database Systems - Presentation 1 with quiz.pptxAdvanced Database Systems - Presentation 1 with quiz.pptx
Advanced Database Systems - Presentation 1 with quiz.pptx
 
1. SQL Basics - Introduction
1. SQL Basics - Introduction1. SQL Basics - Introduction
1. SQL Basics - Introduction
 
MS EXCEL LESSON.pptx
MS EXCEL LESSON.pptxMS EXCEL LESSON.pptx
MS EXCEL LESSON.pptx
 
Spss basics
Spss basicsSpss basics
Spss basics
 
data abstraction in DBMS
data abstraction in DBMSdata abstraction in DBMS
data abstraction in DBMS
 
Using Excel In Your Classroom And Beyond
Using Excel In Your Classroom And BeyondUsing Excel In Your Classroom And Beyond
Using Excel In Your Classroom And Beyond
 
Database - R.D.Sivakumar
Database - R.D.SivakumarDatabase - R.D.Sivakumar
Database - R.D.Sivakumar
 
toolkit13_sec9.pdf
toolkit13_sec9.pdftoolkit13_sec9.pdf
toolkit13_sec9.pdf
 

Recently uploaded

Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlCall Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlkumarajju5765
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxolyaivanovalion
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramMoniSankarHazra
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Onlineanilsa9823
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 

Recently uploaded (20)

Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlCall Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptx
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 

RDBMS Lab01 beginning with-database (UIU)

  • 1. United International University (UIU),CSE Course Code: CSI 222 Course Title: Database Management Systems Laboratory Trimester: Summer 2015 Lab # 1 (Beginning with database) Fatema Tuz Zohra Assistant Professor, Dept. of CSE
  • 2. Beginning with database • In this lab session, you will be able to know various things like- ▫ what should be put into a database, ▫ how can be a database organized, ▫ how will you harmonize the real-world things with database, etc. • Let’s start thinking- what will you try to put into the database. Many things! Say, you are trying to keep records of teachers, students and staffs of a university. What will you do? 2
  • 3. Beginning with database • The database will be a university database, • The tables inside that university database will be teachers, students and staffs. • After that, think- what records will be kept. • The name of the records will be the columns of those tables. • The entries into those tables will be the rows of those tables. Records/Entries ← Name of the Records → → → → → 3
  • 4. Beginning with database • Now try to simulate that database- (of course hypothetically! ) ▫ We are keeping records of information of a university’s teachers, students and staffs. So, the database will be called- UNIVERSITY database. ▫ Primarily, there will be 3 tables- TEACHERS, STUDENTS and STAFFS. ▫ Now we will take a look at what data records we should keep. 4
  • 5. Beginning with database • For teachers, what information do you really think should be kept?  NAME  DEPARTMENT  DESIGNATION  ROOM_NO  PHONE  EMAIL  ADDRESS  JOINING_DATE etc. 5
  • 6. Beginning with database • For students, what information do you suggest should be kept?  NAME  STUDENT_ID  DEPARTMENT  YEAR  SEMESTER  PHONE  E-MAIL  ADDRESS  DATE_OF_BIRTH etc. 6
  • 7. Beginning with database • For staffs, we require at least this information-  NAME  DEPARTMENT  DESIGNATION  OFFICE_ROOM  PHONE  E-MAIL  ADDRESS  JOINING_DATE etc. • So, it’s obvious now- we have these columns in three tables respectively. 7
  • 8. THINK MORE • Now think one thing- student names can be the same, but they are distinguishable by their ID numbers. Is there anything for other two tables? How can you distinguish two teachers or two staffs with the same name? • As a remedy, we can introduce two new information-  TEACHER_ID in Teachers table and  STAFF_ID in Staffs table. • These IDs are unique; no same ID is allocated to two different entries. 8
  • 9. THINK MORE • Another thing- take a look at the size of the tables- Huge, or short? When we insert data into the tables, some info may type twice or more! That is quite cumbersome job! So, we need to minimize tables on the basis of redundant column. (We will find the benefits of minimizing tables in the later lab classes.) • We would like to separate the tables in following way-  Separate information on departments (DEPARTMENT) from others.  Separate contact related info (ADDRESS, PHONE, EMAIL) from others. 9
  • 10. THINK MORE • Another thing- take a look at the size of the tables- Huge, or short? When we insert data into the tables, some info may type twice or more! That is quite cumbersome job! So, we need to minimize tables on the basis of redundant column. (We will find the benefits of minimizing tables in the later lab classes.) • We would like to separate the tables in following way-  Separate information on departments (DEPARTMENT) from others.  Separate contact related info (ADDRESS, PHONE, EMAIL) from others. 10
  • 11. THINK MORE • In a word- what we are trying to do is splitting up tables with small number of columns. • Up to this point, we have tables with columns as follows-  Teachers (TEACHER_ID, NAME)  Students (STUDENT_ID, NAME)  Staffs (STAFF_ID, NAME)  Departments(ID, DEPARTMENT)  Contacts(ID, ADDRESS, PHONE,EMAIL) 11
  • 12. THINK MORE • Still there are options to make more tables like-  Designations (ID, DESIGNATION)  Dates (ID, JOINING_DATE, DATE_OF_BIRTH)  Year_Semester_Records (ID, YEAR, SEMESTER)  Rooms (ID, ROOM_NO) • Do you notice that- in all of our tables we have that unique identifier- ID! • So far, we made 9 tables from 3 tables! But 5 tables feel better. • REMEMBER- Database can work even with a bad (worse/ worst) database design. But you will have to code less if you design a database effectively! 12
  • 13. A SIMPLE CASE STUDY • A database is required to keep a software company’s records. • The database should keep personal records about employee’s like-  NAME  POST  DATE_OF_BIRTH  JOINING_DATE  YEAR_OF_EXPERIENCE  PHONE  E_MAIL  ADDRESS  GENDER  PROJECTS_COVERED etc. 13
  • 14. A SIMPLE CASE STUDY • The database also should contain records of clients. Clients can be a company or individual.  NAME_OF_COMPANY  REGISTRATION_NO  ADDRESS  WEB  EMAIL  PHONE  FAX  PROJECTS_SUPPLIED  TOTAL_COST  AMOUNT_PAID  AMOUNT_RECEIVABLE etc. 14
  • 15. A SIMPLE CASE STUDY • So, you decide if there should be two tables OR more OR just one will do the job. • Your task is to just design it effectively on your own. 15