Date post: | 07-Nov-2014 |
Category: |
Education |
Upload: | maheshkodit1 |
View: | 777 times |
Download: | 1 times |
PANORAMA GROUP DATA BASE DEVELOPMENT PROJECT
INVENTRY CONTROL SYSTEM WITH ONLINE TRANSACTIONS
No Registration No Name1 MMW/13/B1/14 K.K.M.Kodithuwakku
2 SOF/13/B1/18 I.P.S.Siriwardana
3 SOF/13/B1/21 E.M.K.Udayakanthi
4 SOF/13/B1/27 H.G.S.K.Wijenayaka
5 SOF/13/B1/07 H.A.V.Nishshanka
6 SOF/13/B1/16 H.M.P.Renuka
Group members
Introduction
Requirements Analysis
Conceptual Database Design• EER diagram
• Mapping
• Integrity constraints
• Business rules
Logical Database Design• Choosing a DBMS and Relational schema
Schema Refinement • Normalization
Agenda
Physical Database Design• Workload Analysis • Creating tables
• Creating triggers• Creating indexes
• Creating views
Security Design• Creating user levels and privileges
References Q & A
Agenda cont..
Royal book shop in Ambalangoda still uses a conventional system for
their transaction and inventory control. Even though the Book Shop
runs in large scale, manual system gets the business down.
- It requires more space, time, labour and stationery
- It is Slow and less security.
- It is difficult to update data and retrieve details
This study shows that how systematic book sales and management is
important to improve its quality by giving the chance for the customer
to order books online.
Introduction
REQUIREMENT ANALYSIS
• Order books online
• Customer should be able to update the order
• Online payment methods.
• Various user levels and privileges.
• Online stock control
• Security levels and policies
Business Requirements
Order books online
Customer should be able to update order
Online payment methods
Various user levels and privileges
Online stock control.
CONCEPTUAL DATABASE DESIGN
E-ER Diagram
Business Rules
• Transactions can be done by the customers only
in Sri Lanka.
• 10%discount is given from total price for literary
month
• New entries are entered at the end of month.
• The payments should be made on the day that
order is placed.
Mapping Enti ti es Steps
LOGICAL DATABASE DESIGN
Book (ISBN:CHAR(18), title:VARCHAR(60),
author:VARCHAR(45) ,price:FLOAT, noofbooks:INT(11),
category:VARCHAR(45))
Customer(CID:INT(11), name:VARCHAR(30), contactno:CHAR(13),
email:VARCHAR(30), city:VARCHAR(15),
loggpassword:VARCHAR(30), number:INT, street:VARCHAR(15))
BookCustomer(ISBN:VARCHAR(20), CID:INT(11))
Relati onal Schema
Order(OID:INT(11), quantity:INT, dateCreated:DATE,
bookName:VARCHAR(20), EmpID:INT(11))
Employee(EmpID:INT(11), name:VARCHAR(20))
Credit Card(paymentID:INT(11),CCN:CHAR(16),
name:VARCHAR(30), date:DATE, type:VARCHAR(45),
pinNumber:INT(16))
Paypal(paymentID:INT(11), email:VARCHAR(30),
password:VARCHAR(30))
Cid_Contactno(CID:INT(11), cont_No:CHAR(13))
Relati onal Schema cont…
SCHEMA REFINEMENT
PHYSICAL DATABASE DESIGN
Creating Tables
Workload AnalysisQuery/Function Affected
tableTable data
amount Affected attribute How often Index required or not
Delimiter$$If Char_ length(ISBN)!=14 thenSignal SQL state ‘1200’Set message.Text= ‘Invalid ISBN’;End ifEnd$$Delimiter
Book ISBN=14 ISBN High Yes (Based on Title, Author)
Delimiter$$If (Quantity)<10 thenSignal SQL state ‘1200’Set message.Text= ‘!!Alert BookOrder;End ifEnd$$Delimiter
BookOrder
10<decrement No_of_Books No
INSERT INTO Book VALUES(“ “) Book All the attributes in
the Book table One month Yes. Based on category
UPDATE Book set price=“ ”Where
Book Price One month
Yes. Based on category
update price set `final_price` = `price` * (select ifnull(Quentity) from Product where .Order_ID= Order.Order_ID;
Book Order
varies
Price, Quantity, Total price
high No
Creating Triggers
To check ISBN
Creating Triggers cont…
For re order level
Creating Indexes
Creating Views
SECURITY DESIGN
User Privilege
Administrator (Manager)
All the privileges of the database
Employee 1(Clerk1) Select, View, insert and update the database
Employee 2 (Clerk2) View tables (book and customer tables)
User Access Control
Security policies
Security policies cont…
Sensitive Data and Secure connection
(Credit card Number, PIN and PayPal password )
Encrypt the password and PIN
Get SSL certificate for the web site
Crash Recovery
Take a dump file (backup) of the database Email policy Send a code to user’s email to verify the user’s mail account.
Security policies cont…
SQL Injection Install Firewalls and intrusion detection mechanisms. Patch server database, programming language (php) and operating system (windows server 2008)
Third Party Connection In order to get the payment facility Our database should be connected to a third party. Data Governance
Security policies cont…
Referenceshttp://stackoverflow.com/questions
http://www.cs.duke.edu/csl/docs/mysql-refman/triggers.html
https://academy.oracle.com/oa-web-overview.html
https://www.mdgunasena.com
https://www.deweydecimal.com
Q & A
Thank you
Mapping Enti ti es
Mapping Regular Entities
Mapping Supertype/Subtype relationship
Credit Card disjoint Paypal
Mapping Binary Relationships
1:M Relationship
Mapping Binary Relationships cont…
1:1 Relationship
Mapping Binary Relationships cont…
Mapping Binary Relationships cont…
M:N RelationshipBack