• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 12 pages
Summary

Inf3703 Summary Notes

Document preview thumbnail
Preview 2 out of 12 pages

INF3703 SUMMNOTES ON – DATABASE SYSTEMS INF3703/2012 Chapter 1 and 2 – just read as background not examined Chapter 3: The relational Database Model Properties: 1. A table is a two-dimensional structure composed of rows and columns 2. Each row (tuple) represents a single entity – duplicate rows are not allowed 3. Each column represent a attribute and has a name 4. Each cell (column/row) contain only an atomic value – a single data value 5. All values in a column must conform to the same data format 6. Each column has a specific range of values – attribute domain 7. The order of the rows and columns in immaterial to the DBMS 8. Each table must have a attribute of combination of attributes to uniquely identify each row Degree and cardinality - Cardinality of a table is the N rows (4 rows means cardinality of 4) - Degree is the number of columns in the table Keys - A key consist of one of more attributes that can be used to identify other attributes. Examples of keys are primary, super keys, candidate keys and secondary keys. - The role of the key is based on the concept known as ‘determination’ – use a key in table A to lookup of (determine) a value in table B. - The term functional dependence can be defined as the attribute A is functional dependant of B. - We might need more than one attribute to define a unique key also called multi-attribute or composite key. E.g. STU_NUM, STU_NAME - Superkey – any key that uniquely identify each row e.g. STU_NUM, STU_NAME - Candidate key – a superkey without redundancies e.g. STU_NUM - A foreign key (FK) is an attribute whose values match the primary key values in the related table - Secondary key is defined as a key that is use strictly for data retrieval Integrity rules 1. Entity integrity a. All primary keys are unique and no part of the primary key may be null b. Each row will have a unique identity and foreign key values can refer to as primary key values. E.g. No invoice has a duplicate number, or can be null, and uniquely identified by invoice number. 2. Referential integrity a. A foreign key may have a null entry. b. It is possible for an attribute not to have a corresponding value but impossible to have an invalid entry. The referential rule makes it possible to delete a row in one table whose primary key has mandatory values in another table. E.g. a customer might not have a sales representative yet but its impossible to have salesARY NOTES


Document information

Uploaded on
November 15, 2021
Number of pages
12
Written in
2021/2022
Type
Summary
$3.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
1416
Followers
669
Items
1140
Last sold
5 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.