1. Trang chủ
  2. » Công Nghệ Thông Tin

Assignment 2 Database Design Development (1622 Distinction)

44 1 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 44
Dung lượng 4,15 MB

Nội dung

Mục đích của môn học này là mang đến cho sinh viên cơ hội phát triển sự hiểu biết về các khái niệm và vấn đề liên quan đến thiết kế và phát triển cơ sở dữ liệu, cũng như cung cấp các kỹ năng thực tế để chuyển sự hiểu biết đó vào việc thiết kế và tạo ra các cơ sở dữ liệu phức tạp. Các chủ đề trong phần này là: kiểm tra các công cụ và kỹ thuật thiết kế khác nhau; kiểm tra các lựa chọn phần mềm phát triển khác nhau; xem xét các tính năng phát triển của một giải pháp mạnh mẽ đầy đủ chức năng bao gồm tính toàn vẹn dữ liệu, xác thực dữ liệu, tính nhất quán của dữ liệu, bảo mật dữ liệu và các phương tiện truy vấn cơ sở dữ liệu nâng cao trên nhiều bảng; giao diện người dùng thích hợp cho cơ sở dữ liệu và cho các hệ thống liên kết bên ngoài khác; tạo các báo cáotrang tổng quan phức tạp, kiểm tra hệ thống theo yêu cầu của người dùng và hệ thống; và các thành phần của tài liệu hệ thống hoàn chỉnh

ASSIGNMENT FRONT SHEET Qualification TEC Level HND Diploma in Computing Unit number and title Unit 04: Database Design & Development Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Bui Quang Minh Student ID GCD210325 Class GCD1104 Assessor name Ho Van Phi Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism I understand that making a false declaration is a form of malpractice Student’s signature Minh Grading grid P2 P3 P4 P5 M2 M3 M4 M5 D2 D3  Summative Feedback: Grade: Signature & Date:  Resubmission Feedback: Assessor Signature: Date: Table of Contents CHAPTER 1: STATEMENTS OF USER AND SYSTEM REQUIREMENTS (P1) I OVERVIEW Introduction of proposed system Analysing current system Evaluating current system Proposal of new system II APPLICATION REQUIREMENT Hardware requirement Software requirement 10 CHAPTER 2: DESIGN THE RELATIONAL DATABASE SYSTEM (P1-D1) 10 I ANALYSING REQUIREMENTS 10 II DATABASE DESING with EXPLAINATIONS 11 III REVIEW IF DATABASE IS NORMALIZED 11 IV DATA VALIDATION 12 Products table 12 Customers table 12 Staffs table 13 Orders table 13 Details table 14 Suppliers table 14 V WIREFRAME OF APPLICATION 15 Creating tables using tool 15 Creating tables using command 16 Database diagram 18 Sample data 18 4.1 Sample data of CUSTOMERS table …… 18 4.2 Sample data of STAFFS table ……….…… 19 4.3 Sample data of PRODUCTS table …… 20 4.4 Sample data of ORDERS table …… 21 4.5 Sample data of DETAILS table …… 21 4.6 Sample data of SUPPLIERS table …… 22 Query 23 5.1 Query to show products from 10m to 20m …… 23 5.2 Query to show income of order at a date ………………………… 23 5.3 Query to show income of all order …………………………………………………… 23 View tables 24 6.1 View to managing products …… 24 6.2 View of available products 24 VI Assess the effectiveness of the design 26 CHAPTER 4: DEVELOP DATABASE SYSTEM (P2-P3) 27 I DATABASE DIAGRAM 27 II DATA VALIDATION 27 PRODUCTS table 27 CUSTOMERS table 28 STAFFS table 28 ORDERS table 28 DETAILS table 28 SUPPLIERS table 29 III QUERYING ACROSS MULTIPLE TABLES 29 Print orders’ list of customerID ‘0100’ 29 Show income of order at a date 30 Show income of all orders 30 CHAPTER 5: PRODUCE QUERIES (P3-M2-M3) 31 I IMPLEMENT QUERY LANGUAGE (P3) 31 PRODUCTS table 31 CUSTOMERS table 31 STAFFS table 32 ORDERS table 32 DETAILS table 33 SUPPLIERS table 33 II IMPLEMENT FULLY FUNCTIONAL DATABASE (M2) 34 View of PRODUCTS table …… 34 View of CUSTOMERS table …… 34 View of STAFFS table …… 34 View of ORDERS table …… 35 View of DETAILS table …… 35 View of SUPPLIERS table …… 36 II ADVANCED VIEWS (M3) 36 View of revenue ragarding year 36 View of revenue ragarding Products 37 View of revenue made from staffs 37 View of orders placed by customers 38 View of orders number made by staffs 39 CHAPTER 6: TEST SYSTEM (P4-M4) 40 I TEST SYSTEM 40 Test cases 40 Test logs 41 CHAPTER 1: STATEMENTS OF USER AND SYSTEM REQUIREMENTS (P1) I OVERVIEW Introduction of proposed system FPT Shop has contacted my firm where I am working as a Database developer because the increasing number of stores FPT Shop are having many challenges that it has to handle throughout the nation It has made decision to create a new database with many purposes with different objects such as users can sign in with phone numbers and other data, supervisors can manage their stores and director board can view all information from all stores Analysing current system The FPT Shop currently stores all data in excel files when a customer purchases an item, a staff will write that item’s information into a particular paper called receipt and give it to the customer All available items and purchased items also store in excel files Figure Product table’s data in excel After a day, month, or year, staff will create a new table to calculate the total amount of money earned and reckon up the quantity, the following table made in excel: Figure Revenue in January Evaluating current system Advantages of Spreadsheets         Spreadsheets require minimal training Spreadsheets are customizable Spreadsheets can be more collaborative than other tools It’s easy to manipulate and analyze data You can integrate spreadsheets with specific tools Spreadsheets are quick and easy to add to a workflow Spreadsheets are fantastic tools for financial documents You have access to countless spreadsheet templates Disadvantages of Spreadsheets        Spreadsheets are not secure It’s hard to tell who edited the spreadsheet There will be multiple versions of the truth Visualizing data is difficult Critical customer data is at everyday life's mercy There’s no native integration with business systems Spreadsheets make it harder for managers to manage team members Proposal of new system By creating a relational database system for the shop and organizing the information that has to be maintained into precise and understandable tables, the above issues may be resolved for the following benefits:        Minimum data redundancy Improved data security Increased consistency Lower updating errors Reduced costs of data entry, data storage, and data retrieval Improved data access using host and query languages Higher data integrity from application programs II APPLICATION REQUIREMENTS Hardware requirement Hard Disk  SQL Server requires a minimum of GB of available hard-disk space Monitor  SQL Server requires Super-VGA (800x600) or higher resolution monitor Memory: Minimum  Express Editions: 512 MB  All other editions: GB Processor Speed: Minimum  x64 Processor 1.4 GHz Software requirement Operating system  Windows 10 TH1 1507 or greater  Windows Server 2016 or greater NET Framework  Minimum operating systems includes minimum NET framework CHAPTER 2: DESIGN THE RELATIONAL DATABASE SYSTEM (P1 – M1 - D1) I ANALYSING THE REQUIREMENTS As a client/customer, - I want to view the detail of the product so that I can select that product - I want to order products so that I can buy those products - I want to check my products/items so that I can make sure that products are mine - I want to log in and log out the system so that I can use all the functions - I want to follow my order so that I can keep track of it - I want to know the origin of products so that I can buy it wihout hesitation As a staff, - I want to input the products’ data so that I can manage the products - I want to alter/modify products’ data so that I can update the products - I want to approve the customers’ order so that the orders can be delivered - I want to follow clients’ orders so that I can let them know about their orders - I want to view the clients’ feedbacks so that I can support or report to the higher position - I want to supervise the supply so that I can check the quantity of products and ensure the quality of products As a manager, - I want to manage the staff so that I can supervise the staff - I want to view the list of products so that I can manage the products - I want to view the daily/monthly/weekly revenue so that I can manage the income/money of my shop - I want to check staff’s attendance so that I can pay their salary So, I can define all tables what I need They are Products (ProductID, ProductName, Price, Quantity, SupplierID) Orders (OrderID, OrderDate, CustomerID, StaffID) Customers (CustomerID, CustomerName, Address, PhoneNumber) Staffs (StaffID, StaffName, Address, Salary) Details (OrderID, ProductID, Price, Quantity) Suppliers (SupplierID, SupplierName) II DATABASE DESIGN with EXPLANATIONS Figure ERD Diagram The picture above shows the relational entity diagram of FPTSHOP system through the ERD diagram, we can see the following relationships:  The Customer entity has a 1-to-many relationship with orders because a customer can place many orders In contrast, a specific order is placed by just a customer  The Staff entity has a 1-to-many relationship with orders because a staff can organize many orders In contrast, a specific order is created by just a staff  The Supplier entity has a 1-to-many relationship with Product because a supplier can provide many kinds of items In contrast, a product is supplied by just a supplier  The Products entity has a 1-to-many relationship with Details because an item can contain many details In contrast, a detail is contained by an item  The Orders entity has a 1-to-many relationship with Details because an order can contain many separately details In contrast, a detail is contained in an order III REVIEW IF DATABASE IS NORMALIZED From ERD Diagram shown above, we can see that the Products table contains transitive functional Dependence so that it cannot achieve 3NF (The third normal form): ProductID  SupplierID  SupplierName To achieve 3NF, attribute ‘SupplierName’ needs to split from PRODUCTS in order to combine with SupplierID and then create a new table named SUPPLIERS

Ngày đăng: 02/02/2024, 10:02

TỪ KHÓA LIÊN QUAN

w