SlideShare a Scribd company logo
1 | P a g e
1. Logical Design
1.1. ការកំណត់ Entity
-ចំព ោះមនុស្ស
ព័ត៌មានរបស្់បុគ្គលិក (STAFF)
ព័ត៌មានរបស្់អ្នកអាន (READER)
ព័ត៌មានរបស្់អ្នកផ្គត់ផ្គង់ (SUBPPLIER)
-ចំព ោះវតថុ
ព័ត៌មានរបស្់ពស្ៀវពៅ (BOOK)
-ចំព ោះទីកន្នែង
ព័ត៌មានរបស្់កន្នែងដាក់ពស្ៀវពៅ (LOCATION)
-ចំព ោះព្ពឹតតិការណ៍
ព័ត៌មានរបស្់ការនំចូល (IMPORT)
ព័ត៌មានរបស្់ការខ្ចី (BORROW)
1.2. ការកំណត់ Entity Set
-Strong Entity Set
-Week Entity Set
អាស្ស្័យនឹង
អាស្ស្័យនឹង
Database Design
STAFF READER BOOK LOCATION
IMPORT BOOK
READER
BORROW
STAFF
BOOK
STAFF
SUBPPLIER
2 | P a g e
1.3. កំណត់ទំនក់ទំនង Entity Set
IMPORT BOOK
Has
M M
IMPORT Has Has BOOK
1 M 1
M
il
ImportDeta
BORROW BOOK
Has
M
M
LOCATION Has BOOK
1
IMPORT
STAFF Responds
1 M
BORROW
STAFF Has
1 M
BORROW
READER Has
1 M
IMPORT
SUBPPLIER Has
1 M
M
BORROW Has Has BOOK
il
BorrowDeta
1 M 1
M
3 | P a g e
1.4. ERD (Entity Relationship Diagram)
1.5. កំណត់ Table
 tbReader(ReaderID, ReaderName, Gender, BirthDate, Phone, ContactAddress, RegisterDate,
Occupation, OrgOrCoName,Workplace, Member)
 tbStaff(StaffID, StaffName, Gender, BirthDate, Phone, StaffAddress, StaffPosition, Salary,
HiredDate, Status)
 tbBook(BookID, Title, Author, DrawYear, Category, ISBN, Cover)
 tbLocation(LocationID, LocationName, Status)
 tbBorrow(BorrowID, StaffID, ReaderID, DateBorrow, DateReturn, TotalPrepaid, Status)
 tbBorrowDetail(BorrowID, BookID, Qty, Prepaid)
 tbImport(ImportID, StaffID, SubID, DateTime,TotalAmount)
 tbImportDetail(ImportID, BookID, Qty, UnitPrice, Amount)
 tbSupplier(SupID, SupName, SupAddress, SupPhone, OrgOrCo)
STAFF
READER
BOOK
LOCATION
IMPORT
BORROW il
ImportDeta
Respond
s
Has Has
Has
Has
Has
Has
M
M
M
M
M
1
1
1
1
1
1
1
Has
1
M
Has
M
SUBPPLIER Has
M
1
il
BorrowDeta
M
1
M
4 | P a g e
2. Physical Design
2.1. Data Dictionary
tbReader
Key Field Name Data Type
Field Properties
Field Size Format Input Mask
PK ReaderID Number Long Integer 0000000000
ReaderName Short Text 30
Gender Short Text 1
BirthDate Date/Time
Phone Short Text 30 (000)-000-0009
ContactAddress Short Text 255
RegisterDate Date/Time
Occupation Short Text 50
OrgOrCoName Short Text 100
Workplace Short Text 255
Member Yes/No
tbStaff
Key Field Name Data Type
Field Properties
Field Size Format Input Mask
PK StaffID Number Long Integer 0000000000
StaffName Short Text 30
Gender Short Text 1
BirthDate Date/Time
Phone Short Text 30 (000)-000-0009
StaffAddress Short Text 255
StaffPosition Short Text 30
Salary Currency
HiredDate Date/Time
Status Short Text 30
5 | P a g e
tbBook
Key Field Name Data Type
Field Properties
Field Size Format Input Mask
PK BookID Number Long Integer 0000000000
Title Short Text 225
Author Short Text 30
DrawYear Number Integer
Category Short Text 100
ISBN Short Text 30
LocationID Number Long Integer 0000000000
Cover Short Text 255
tbLocation
Key Field Name Data Type
Field Properties
Field Size Format Input Mask
PK LocationID Number Long Integer 0000000000
LocationName Short Text 50
Status Short Text 255
tbBorrow
Key Field Name Data Type
Field Properties
Field Size Format Input Mask
PK BorrowID Number Long Integer 0000000000
StaffID Number Long Integer 0000000000
ReaderID Number Long Integer 0000000000
DateBorrow Date/Time
DateReturn Data/Time
TotalPrepaid Currency
Status Short Text 255
tbBorrowDetail
Key Field Name Data Type
Field Properties
Field Size Format Input Mask
PK BorrowID Number Long Integer 0000000000
PK BookID Number Long Integer 0000000000
Qty Number Long Integer
Prepaid Currency
6 | P a g e
tbImport
Key Field Name Data Type
Field Properties
Field Size Format Input Mask
PK ImportID Number Long Integer 0000000000
StaffID Number Long Integer 0000000000
SubID Number Long Integer 0000000000
DateTime Date/Time
TotalAmount Currency
tbImportDetail
Key Field Name Data Type
Field Properties
Field Size Format Input Mask
PK ImportID Number Long Integer 0000000000
PK BookID Number Long Integer 0000000000
QTY Number Long Integer
UnitPrice Currency
Amount Currency
tbSupplier
Key Field Name Data Type
Field Properties
Field Size Format Input Mask
PK SupID Number Long Integer 0000000000
SupName Short Text 30
SupAddress Short Text 255
SupPhone Short Text 30
OrgOrCo Short Text 100
7 | P a g e
2.2. ការកំណត់ Form
frmReader
frmStaff
8 | P a g e
frmBook
frmLocation
9 | P a g e
frmBorrow
frmImport
10 | P a g e
frmSupplier

More Related Content

PPTX
OakTable World 2015 - Using XMLType content with the Oracle In-Memory Column...
PPTX
BEA 2013 who updates publisher_metadata_and_why
PPTX
Pbcore workshop slides
PPTX
SQL Server 2008 Portfolio
PDF
Weaving Microservices into a Unified GraphQL Schema with graph-quilt - Ashpak...
PPSX
IM01: Business Intelligence
PPTX
Mark Logic StrangeLoop 2010
PDF
UKOUG Tech14 - Using Database In-Memory Column Store with Complex Datatypes
OakTable World 2015 - Using XMLType content with the Oracle In-Memory Column...
BEA 2013 who updates publisher_metadata_and_why
Pbcore workshop slides
SQL Server 2008 Portfolio
Weaving Microservices into a Unified GraphQL Schema with graph-quilt - Ashpak...
IM01: Business Intelligence
Mark Logic StrangeLoop 2010
UKOUG Tech14 - Using Database In-Memory Column Store with Complex Datatypes

Recently uploaded (20)

PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PDF
Lecture1 pattern recognition............
PPTX
IB Computer Science - Internal Assessment.pptx
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPT
Reliability_Chapter_ presentation 1221.5784
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
1_Introduction to advance data techniques.pptx
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PDF
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Lecture1 pattern recognition............
IB Computer Science - Internal Assessment.pptx
Business Ppt On Nestle.pptx huunnnhhgfvu
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
IBA_Chapter_11_Slides_Final_Accessible.pptx
Introduction-to-Cloud-ComputingFinal.pptx
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Reliability_Chapter_ presentation 1221.5784
Acceptance and paychological effects of mandatory extra coach I classes.pptx
1_Introduction to advance data techniques.pptx
Data_Analytics_and_PowerBI_Presentation.pptx
Supervised vs unsupervised machine learning algorithms
Introduction to Knowledge Engineering Part 1
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Ad
Ad

Database Design Database Design Database Design Database Design

  • 1. 1 | P a g e 1. Logical Design 1.1. ការកំណត់ Entity -ចំព ោះមនុស្ស ព័ត៌មានរបស្់បុគ្គលិក (STAFF) ព័ត៌មានរបស្់អ្នកអាន (READER) ព័ត៌មានរបស្់អ្នកផ្គត់ផ្គង់ (SUBPPLIER) -ចំព ោះវតថុ ព័ត៌មានរបស្់ពស្ៀវពៅ (BOOK) -ចំព ោះទីកន្នែង ព័ត៌មានរបស្់កន្នែងដាក់ពស្ៀវពៅ (LOCATION) -ចំព ោះព្ពឹតតិការណ៍ ព័ត៌មានរបស្់ការនំចូល (IMPORT) ព័ត៌មានរបស្់ការខ្ចី (BORROW) 1.2. ការកំណត់ Entity Set -Strong Entity Set -Week Entity Set អាស្ស្័យនឹង អាស្ស្័យនឹង Database Design STAFF READER BOOK LOCATION IMPORT BOOK READER BORROW STAFF BOOK STAFF SUBPPLIER
  • 2. 2 | P a g e 1.3. កំណត់ទំនក់ទំនង Entity Set IMPORT BOOK Has M M IMPORT Has Has BOOK 1 M 1 M il ImportDeta BORROW BOOK Has M M LOCATION Has BOOK 1 IMPORT STAFF Responds 1 M BORROW STAFF Has 1 M BORROW READER Has 1 M IMPORT SUBPPLIER Has 1 M M BORROW Has Has BOOK il BorrowDeta 1 M 1 M
  • 3. 3 | P a g e 1.4. ERD (Entity Relationship Diagram) 1.5. កំណត់ Table  tbReader(ReaderID, ReaderName, Gender, BirthDate, Phone, ContactAddress, RegisterDate, Occupation, OrgOrCoName,Workplace, Member)  tbStaff(StaffID, StaffName, Gender, BirthDate, Phone, StaffAddress, StaffPosition, Salary, HiredDate, Status)  tbBook(BookID, Title, Author, DrawYear, Category, ISBN, Cover)  tbLocation(LocationID, LocationName, Status)  tbBorrow(BorrowID, StaffID, ReaderID, DateBorrow, DateReturn, TotalPrepaid, Status)  tbBorrowDetail(BorrowID, BookID, Qty, Prepaid)  tbImport(ImportID, StaffID, SubID, DateTime,TotalAmount)  tbImportDetail(ImportID, BookID, Qty, UnitPrice, Amount)  tbSupplier(SupID, SupName, SupAddress, SupPhone, OrgOrCo) STAFF READER BOOK LOCATION IMPORT BORROW il ImportDeta Respond s Has Has Has Has Has Has M M M M M 1 1 1 1 1 1 1 Has 1 M Has M SUBPPLIER Has M 1 il BorrowDeta M 1 M
  • 4. 4 | P a g e 2. Physical Design 2.1. Data Dictionary tbReader Key Field Name Data Type Field Properties Field Size Format Input Mask PK ReaderID Number Long Integer 0000000000 ReaderName Short Text 30 Gender Short Text 1 BirthDate Date/Time Phone Short Text 30 (000)-000-0009 ContactAddress Short Text 255 RegisterDate Date/Time Occupation Short Text 50 OrgOrCoName Short Text 100 Workplace Short Text 255 Member Yes/No tbStaff Key Field Name Data Type Field Properties Field Size Format Input Mask PK StaffID Number Long Integer 0000000000 StaffName Short Text 30 Gender Short Text 1 BirthDate Date/Time Phone Short Text 30 (000)-000-0009 StaffAddress Short Text 255 StaffPosition Short Text 30 Salary Currency HiredDate Date/Time Status Short Text 30
  • 5. 5 | P a g e tbBook Key Field Name Data Type Field Properties Field Size Format Input Mask PK BookID Number Long Integer 0000000000 Title Short Text 225 Author Short Text 30 DrawYear Number Integer Category Short Text 100 ISBN Short Text 30 LocationID Number Long Integer 0000000000 Cover Short Text 255 tbLocation Key Field Name Data Type Field Properties Field Size Format Input Mask PK LocationID Number Long Integer 0000000000 LocationName Short Text 50 Status Short Text 255 tbBorrow Key Field Name Data Type Field Properties Field Size Format Input Mask PK BorrowID Number Long Integer 0000000000 StaffID Number Long Integer 0000000000 ReaderID Number Long Integer 0000000000 DateBorrow Date/Time DateReturn Data/Time TotalPrepaid Currency Status Short Text 255 tbBorrowDetail Key Field Name Data Type Field Properties Field Size Format Input Mask PK BorrowID Number Long Integer 0000000000 PK BookID Number Long Integer 0000000000 Qty Number Long Integer Prepaid Currency
  • 6. 6 | P a g e tbImport Key Field Name Data Type Field Properties Field Size Format Input Mask PK ImportID Number Long Integer 0000000000 StaffID Number Long Integer 0000000000 SubID Number Long Integer 0000000000 DateTime Date/Time TotalAmount Currency tbImportDetail Key Field Name Data Type Field Properties Field Size Format Input Mask PK ImportID Number Long Integer 0000000000 PK BookID Number Long Integer 0000000000 QTY Number Long Integer UnitPrice Currency Amount Currency tbSupplier Key Field Name Data Type Field Properties Field Size Format Input Mask PK SupID Number Long Integer 0000000000 SupName Short Text 30 SupAddress Short Text 255 SupPhone Short Text 30 OrgOrCo Short Text 100
  • 7. 7 | P a g e 2.2. ការកំណត់ Form frmReader frmStaff
  • 8. 8 | P a g e frmBook frmLocation
  • 9. 9 | P a g e frmBorrow frmImport
  • 10. 10 | P a g e frmSupplier