Bài giảng Hệ quản trị cơ sở dữ liệu - Chương 6: Báo cáo (Report) - Phần 1

BÁO CÁO (REPORT) Mục đích Hiển thị hoặc phân phối một tóm tắt dữ liệu Lưu trữ ảnh tức thời của dữ liệu Cung cấp chi tiết về các bảnghi riêng lẻ Tạo nhãn Dữ liệu nguồn Bảng hoặc truy vấn FORM VS. REPORT Form Used to enter, view, and edit information • Usually displayed onscreen • Provide detail look at records • Usually used by people who actually work with the DB Report Used only to view information • Usually printed • Often used to group and summarize data • Often used by people who use information stored in the DB

pdf45 trang | Chia sẻ: thanhle95 | Lượt xem: 839 | Lượt tải: 1download
Bạn đang xem trước 20 trang tài liệu Bài giảng Hệ quản trị cơ sở dữ liệu - Chương 6: Báo cáo (Report) - Phần 1, để xem tài liệu hoàn chỉnh bạn click vào nút DOWNLOAD ở trên
BÁO CÁO (REPORT) – P1 [email protected] NỘI DUNG KHÁI NIỆM BÁO CÁO (REPORT)1 CÁCH TẠOREPORT2 CÁC CHẾ ĐỘ HIỂN THỊ3 ĐỊNH DẠNG DỮ LIỆU4 [email protected] BÁO CÁO (REPORT) Mục đích Hiển thị hoặc phân phối một tóm tắt dữ liệu  Lưu trữ ảnh tức thời của dữ liệu Cung cấp chi tiết về các bản ghi riêng lẻ Tạo nhãn Dữ liệu nguồn Bảng hoặc truy vấn [email protected] FORM VS. REPORT Fo rm • Used to enter, view, and edit information • Usually displayed on- screen • Provide detail look at records • Usually used by people who actually work with the DB R ep o rt • Used only to view information • Usually printed • Often used to group and summarize data • Often used by people who use information stored in the DB [email protected] CÁCH TẠO REPORT [email protected] REPORT TOOL Tạo report đơn giản có dữ liệu nguồn từ một bảng hoặc một truy vấn [email protected] [email protected] FORM WIZARD Dữ liệu nguồn từ một hoặc nhiều bảng/truy vấn [email protected] VÍ DỤ 1 Tạo danh mục các sản phẩm, nhóm theo loại (category name) và nhà cung cấp (supplier name) [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] VÍ DỤ 2 Tạo danh mục sản phẩm liệt kê theo bảng chữ cái [email protected] [email protected] [email protected] [email protected] [email protected] REPORT DESIGN Dữ liệu nguồn từ một hay nhiều bảng/truy vấn Chứa nhiều unbound control Tùy chỉnh report [email protected] THÀNH PHẦN CỦA REPORT DESIGN [email protected] CÁC THAO TÁC [email protected] [email protected] [email protected] [email protected] CÁC CHẾ ĐỘ HIỂN THỊREPORT [email protected] REPORT VIEW Report view [email protected] Print preview [email protected] Layout view [email protected] Design view [email protected] ĐỊNH DẠNG DỮ LIỆU - TẠO CỘT SỐ THỨ TỰ [email protected] TẠO CỘT SỐ THỨTỰ Mở report ở chế độ design Tạo textbox với nội dung = 1 Chọn textbox properties  data tab  Running sum No: không đánh số Over group: đánh số theo nhóm Over all: đánh số trên toàn danh sách [email protected] [email protected] ĐỊNH DẠNG DỮ LIỆU CÓ ĐIỀUKIỆN Ví dụ 1 [email protected] ĐỊNH DẠNG DỮ LIỆU CÓ ĐIỀUKIỆN Mở report ở chế độ layout [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] VÍ DỤ 2: HIỂN THỊ DATA BAR [email protected] [email protected] [email protected]