Thư viện tài liệu trực tuyến miễn phí dành cho các bạn học sinh, sinh viên
Insertion Insert more column data than desired Must know student number and offering number to insert a new course Update Change multiple rows to change one fact Must change two rows to change student class of student S1 Deletion Deleting a row causes other facts to disappear Deleting enrollment of student S2 in offering O3 causes loss of i...
36 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1294 | Lượt tải: 0
Identify entity types and attributes Determine primary keys Add relationships Determine connections Determine relationship cardinalities Simplify relationships
38 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 987 | Lượt tải: 0
Identification dependency M-N relationships with attributes Self identifying relationships M-way relationships Equivalence between M-N and 1-M relationships
46 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1216 | Lượt tải: 0
The GROUP BY clause is used to group rows to compute group-statistics. The syntax of GROUP BY command is: SELECT attribute name, aggregate function FROM table name GROUP BY attribute name;
41 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1241 | Lượt tải: 0
Uses the concepts of FDs, primary key Definitions: ◦ Prime attribute - attribute that is member of the primary key K ◦ Full functional dependency - a FD Y Z where removal of any attribute from Y means the FD does not hold any more
27 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1549 | Lượt tải: 0
For a set X of attributes, we call the closure of X (with respect to a set of functional dependencies F), noted X+, the maximum set of attributes such that XX+ (as a consequence of F) Consider the relation scheme R(A,B,C,D) with functional dependencies {A}{C} and {B}{D}. {A}+ = {A,C} {B}+ = {B,D} {C}+={C} {D}+={D} {A,B}+ = {A,...
22 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1467 | Lượt tải: 0
Example: The M:N relationship type WORKS_ON from the ER diagram is mapped by creating a relation WORKS_ON in the relational database schema. ◦ The primary keys of the PROJECT and EMPLOYEE relations are included as foreign keys in WORKS_ON and renamed PNO and ESSN, respectively. ◦ Attribute HOURS in WORKS_ON represents the HOURS attribute of ...
36 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1099 | Lượt tải: 0
Query languages: Allow manipulation and retrieval of data from a database. Relational model supports simple, powerful QLs: ◦ Strong formal foundation based on logic. ◦ Allows for much optimization. Query Languages != programming languages! ◦ QLs not intended to be used for complex calculations. ◦ QLs support easy, efficient access to ...
47 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1466 | Lượt tải: 0
In many cases an entity type has numerous subgroupings of its entities that are meaningful and need to be represented explicitly because of their significance to the database application. Ex: EMPLOYEE may be further grouped into: ◦ SECRETARY, ENGINEER, TECHNICIAN, Based on the EMPLOYEE’s Job ◦ MANAGER EMPLOYEEs who are managers ◦ SAL...
39 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1074 | Lượt tải: 0
Cơ sở dữ liệu - Chương 2: Nhập xuất dữ liệu Exporting anh importing data Package là đói ngjcoots lõi trong SQL server SSIC dùng để chuyển dữ liệu từ nguồn đến đích và trình tự xử lý dữ liệu
71 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1120 | Lượt tải: 0