Website chia sẻ tài liệu, ebook tham khảo cho các bạn học sinh, sinh viên
Lab 04 – Ứng dụng xóa file - Hãy thử viết 1 ứng dụng cho phép user xác định mẫu các file cần xóa rồi tìm các file thỏa mãn mẫu qui định và xóa chúng, việc tìm và xóa nên đệ quy từ vị trí mẫu để xóa triệt để. - Thí dụ nếu người dùng nhập pattern c:\*.tmp, ứng dụng sẽ tìm và xóa mọi file *.tmp từ thư mục gốc.
17 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 1018 | Lượt tải: 0
Correctness of 3NF Decomposition Algorithm (Cont’d.) Claim: if a relation R i is in the decomposition generated by the above algorithm, then Ri satisfies 3NF. ■ Let Ri be generated from the dependency α → β ■ Let γ → B be any nontrivial functional dependency on Ri. (We need only consider FDs whose righthand side is a single attribute.) ■ ...
87 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 1160 | Lượt tải: 0
UML Class Diagrams (Contd.) ■ Cardinality constraints are specified in the form l.h, where l denotes the minimum and h the maximum number of relationships an entity can participate in. ■ Beware: the positioning of the constraints is exactly the reverse of the positioning of constraints in ER diagrams. ■ The constraint 0.* on the E2 side and ...
82 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 1132 | Lượt tải: 0
Input Box (tt) Mặc dầu Input Boxes rất dễ dùng, trên thực tế rất ít khi ta dùng nó vì những lý do sau đây: – Trong lúc user input data, phải đợi sau khi user click OK thì mới bắt đầu xử lý input textstring. Nếu dùng một Textbox trong một Form thông thường, ta có thể code trong các Event handlers của Events KeyPress hay Change để kiểm soát c...
36 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 1352 | Lượt tải: 0
LAB 02 Sử dụng IDE của VB6.0 thiết kế form dưới đây – (1) Frame – (2) Label – (3) Textbox – (4) Command Button – (5) Combo Box – (6) ListBox Viết mã lệnh ứng với Event Form_Load trong đó sử dụng method AddItem đối với ComboBox và ListBox để thêm các mục trong danh sách lựa chọn
10 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 1102 | Lượt tải: 0
NonMonotonicity (Cont.) ■ There are useful queries that cannot be expressed by a stratified program ● Example: given information about the number of each subpart in each part, in a partsubpart hierarchy, find the total number of subparts of each part. ● A program to compute the above query would have to mix aggregation with recursion ● Howe...
84 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 930 | Lượt tải: 0
Advanced SQL Features (cont’d) ■ Merge construct allows batch processing of updates. ■ Example: relation funds_received (account_number, amount ) has batch of deposits to be added to the proper account in the account relation merge into account as A using (select * from funds_received as F ) on (A.account_number = F.account_number ) when ma...
58 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 909 | Lượt tải: 0
LAB 01 – Làm quen VB 6.0 Cài đặt Visual Basic 6.0 Khởi động VB 6.0. Di chuyển và sắp xếp lại các cửa sổ sau theo ý thích của bản thân – Project Explorer – Properties Window – Form layout Window – Toolbox Thiết kế form như hình bên
15 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 1103 | Lượt tải: 1
Joined Relations** ■ Join operations take two relations and return as a result another relation. ■ These additional operations are typically used as subquery expressions in the from clause ■ Join condition – defines which tuples in the two relations match, and what attributes are present in the result of the join. ■ Join type – defines how tu...
66 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 1021 | Lượt tải: 0
Bài tập -Vẽ sơ đồ biểu diễn thuật toán tìm trung bình cộng của dãy số a1, a2, , an - Vẽ sơ đồ biểu diễn thuật toán tìm TBC các số chẵn và chia hết cho 5 trong dãy số a1, a2, , an - Vẽ sơ đồ biểu diễn thuật toán đếm xem trong dãy số a1, a2, , an có bao nhiêu cặp có chỉ số liên tiếp (vd: a2, a3) thỏa điều kiện tích chúng chia hết tổng của chú...
18 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 1512 | Lượt tải: 0