Ví dụ: Tìm người có số phòng 203 và thời hạn thuê nhà đến tháng 6 năm 2030 • Seclect: Apartment Number, Lease Expires • From: Table 1 Show an example of selection - Các quyền chọn được s
Trang 1NGÂN HÀNG NHÀ NƯỚC VIỆT NAM TRƯỜNG ĐẠI HỌC NGÂN HÀNG
KHOA HỆ THỐNG THÔNG TIN QUẢN LÝ
✍
BÀI TẬP NHÓM SỐ 3 MÔN: PHÂN TÍCH THIẾT KẾ HỆ THỐNG THÔNG TIN
Danh sách thành viên:
Nguyễn Duy Tân 030235190132 Lương Anh Quyết 030235190124
Lê Nguyễn Phương Anh 030235190003 Phan Ngọc Tân 030235190134
Lê Mai Quốc Cường 030235190014
1
Trang 2Câu 1:
Show an example of projection
- Sử dụng để trích dẫn giá trị một số thuộc tính của quan hệ
- Ký hiệu: πA1, A2,…., AK or R [A1,
A2… AK] Trong đó Ai là tên các thuộc tính
được chiếu
- Kết quả trả về một hệ thống quan có k thuộc tính theo thứ tự như liệt kê
Các dòng trùng nhau chỉ lấy một
- Phép chiếu không có giao dịch tính toán
- Phép chiếu tác dụng trên hệ thống theo chiều "ngang"
Ví dụ: Tìm người có số phòng 203 và thời hạn thuê nhà đến tháng 6 năm 2030
• Seclect: Apartment Number, Lease Expires
• From: Table 1
Show an example of selection
- Các quyền chọn được sử dụng khi bạn muốn lấy các bộ trong một hệ
thống thỏa mãn một điều kiện nào đó
- Quyền chọn tác vụ trên quan hệ theo chiều “dọc”
- Trả về kết quả là một hệ thống quan:
+ Có cùng danh sách với thuộc tính R
+ Có số bộ luôn ít hơn hoặc bằng số bộ của R
- Phép chọn có giao dịch tính toán
Ví dụ: Hãy cho biết người có số phòng 20
• Select: last name
• From: Table 1
• Where: Apartment Number = “20”
Show two different examples of sorting rows
- Để sắp xếp dữ liệu trong SQL, ta sử dụng tiêu đề ORDER BY.ORDER
BY được sử dụng để sắp xếp dữ liệu theo thứ tự tăng dần hoặc theo thứ tự giảm
dần trên một hoặc nhiều cột
Ví dụ: Sắp xếp thứ tự tăng dần của số phòng
• Select: *
Trang 3Hàm AVG
Hàm AVG () trả về trung bình giá trị của một số cột
Cú pháp:
3
Trang 4SELECT cột tên AVG
FROM tên bảng
WHERE điều kiện;
Hàm SUM
Hàm SUM () trả về tổng của một số
cột Cú pháp:
SELECT SUM cột tên
FROM tên bảng
WHERE điều kiện;
Trang 5Câu 2: Draw a data model diagram with associations for the user view
5
Trang 6Câu 3: Convert the user view
Student
ID
Student name
Major Status Course
Number
Course Title
Professor Professor’s
Department
Grade
1NF
Bảng 1:
Student ID Student Name Major Status
Bảng 2:
Student ID Course Number Course Title Professor Professor’s
Department
Grade
2NF
Bảng 1:
Student ID Course Number Grade
Bảng 2:
Course Number Course Title Professor Professor’s Department
3NF
Bảng 1:
Course Number Course Title Professor
Bảng 2:
Professor Professor’s Department
Trang 7Câu 4: Problem might arise when using a primary key of course number for the
data
Khi sử dụng khóa chính của Course Number cho Dữ liệu: mô tả khóa học có thể bị
thay đổi, phần Student ID, Student Name được gửi bằng bảng điểm và cả trường hợp
học sinh kém không tham gia khóa học
Câu 5: Entity-relationship diagram
7
Trang 8Câu 6: Entity-relationship diagram
Trang 9Câu 7: Entity-relationship diagram
Câu 8: List the tables and keys
9
Trang 10Câu 9: E-R diagram
Câu 10: Data flow diagram
Câu 11: E-R diagram
Trang 11Câu 12: The primary key used for each entity
11
Trang 12Câu 13:
A, Draw an E-R diagram in the third normal form showing the relationship
between orders placed, manufacturers, sellers, and consumers at Swiftly.
B, In a paragraph, discuss how a blockchain application might be implemented
here and what it would require.
Với các đặc điểm của nó là phi tập trung, minh bạch, hiệu quả, chi phí thấp, an toàn,
v.v., blockchain có thể giải quyết một số vấn đề hiện có trong các dịch vụ switfly.Xác
minh danh tính
Trước hết, blockchain có thể giúp Swiftly xác định chính nó trên blockchain: Swiftfly
vận chuyển các sản phẩm của mình cho bạn chứ không phải cho bất kỳ ai khác
Nhưng bằng cách kết nối với chuỗi khối, các dịch vụ vận chuyển có thể giúp quản lý
Trang 13Blockchain cũng có thể giúp quản lý hậu cần của dịch vụ giao hàng Khi có nhiều thiết
bị mua trực tuyến hơn, hệ thống kiểm soát và xác minh phi tập trung của blockchain
cũng có thể cho phép các thiết bị bảo mật và truyền dữ liệu một cách an toàn Quản lý
thiết bị bằng cách sử dụng blockchain có thể tăng khả năng của các thiết bị để xử lý
thông tin mà chúng thu thập và giảm thiểu chi phí bảo trì kiểm soát hệ thống tổng thể
và tăng hiệu quả của nó
Theo dõi thư / gói hàng
Blockchain có thể được sử dụng để giúp các công ty vận chuyển xác định các gói hàng
và thư theo cách giống như cách nhận dạng các cá nhân Nếu mỗi bưu kiện có một bộ
cảm biến nhỏ, thì các blockchains có thể được sử dụng để quản lý chuỗi hành trình
giữa các đối tác khác nhau Theo dõi các bưu kiện trên một blockchain cũng sẽ đẩy
nhanh quá trình thông quan và tích hợp các khoản thanh toán, hậu cần và vận chuyển
vào một nền tảng gắn kết
Câu 14: Draw an E-R diagram linking the patient, the hospital, and the
immunization plan Try to normalize the diagram.
Câu 15: Identify the primary and foreign keys for the E-R diagram created in
Problem 14.
13
Trang 14Câu 16: List of questions to help us make a risk assessment of a database:
Which ETL process has the right advantages for the company and needs to be
developed?
Where should we focus more on increasing revenue while not increasing costs
too much, resulting in larger profit margins? Bringing in the most ROI?
How can you ensure data quality?
What is the biggest risk in managing an electronic company's database?
Câu 17: Questions we will ask them about their needs for data.
For data analysis in a non-specialized field, Business Analysts (BAs) themselves must
also have certain knowledge in that field On the contrary, businesses must also have
certain understanding of data analysis, which we can exchange with businesses For a
business, data analysis in addition to helping to understand the needs and behaviors of
customers, it also provides businesses with a lot of other important information
depending on the needs and size of the project
Here are some questions that revolve around the needs of businesses specifically a
fashion design company
As mentioned above, the first question is about the size of the project, the larger
the scale, the more expertise it requires as well as the time to implement
Second, what is probably also quite important for a business, is the budget
spent to implement, a large project can hardly be done with a small cost
Next is the question of the purpose of use other than the original purpose
(understanding the customer), this will help give information in the most
effective and optimal way Next is the feasibility of the project compared to the
needs, the goals set will help the company gain and lose, is it worth doing or
not
Next is the question of whether the storage and organization of data in the
company's system is guaranteed or not
Trang 15Show an example of calculating totals
Câu 2: Draw a data model diagram with associations for the user view
Câu 4: Problem might arise when using a primary key of course number for the data
Câu 5: Entity-relationship diagram
Câu 7: Entity-relationship diagram
Câu 9: E-R diagram
Câu 11: E-R diagram
Câu 13:
B, In a paragraph, discuss how a blockchain application might be implemented here and what it would require Logistics: quản lý thiết bị
Theo dõi thư / gói hàng
Câu 14: Draw an E-R diagram linking the patient, the hospital, and the immunization plan Try to normalize the diagram.
Câu 16: List of questions to help us make a risk assessment of a database:
Câu 17: Questions we will ask them about their needs for data.
15