The First Lab
Basic Terms and Concepts in Database
(I) Homework Submission
About gsubmit:
(II) Basic Terms
(1) Data: (2) Metadata: (3) Database: (4) DBMS (Database Management System): (5) Database System: (6) Data Model: (7) Schema:
A set of values (numbers, characters, other formats).
A kind of data that describes other data.
A very large collection (of files) of organized and related data.
A software package/system that can be used to store, manage and retrieve data from databases that persist for long periods of time.
DBMS + data [+ applications].
A framework for describing data, data relationships, data semantics, and data constraints.
The structure of the database using a particular model.
(III) Relational Model and Relational Databases
(1) Relational Model: (2) Entity Relationship Model: (3) From Entity Relationship Model to Relational Model: (4) Relational Databases:
A database model based on first-order predicate logic.
An abstract conceptual data model used in software engineering to represent structured data.
Entity Relationship Model and Relational Model are different.
Translate from Entity Relational Model to Relational Model.
(IV) An Example of a Relation (Table)
id | name | year | rating | runtime | genre | earnings_rank |
---|---|---|---|---|---|---|
1300854 | Iron Man 3 | 2013 | PG-13 | 130 | A | 13 |
1690953 | Despicable Me 2 | 2013 | PG | 98 | N | 24 |
0770828 | Man of Steel | 2013 | PG-13 | 143 | A | 54 |
1453405 | Monsters University | 2013 | 104 | N | 64 | |
1905041 | Furious 6 | 2013 | PG-13 | 130 | A | 86 |
1623205 | Oz the Great and Powerful | 2013 | PG | 130 | V | 90 |
1408101 | Star Trek Into Darkness | 2013 | PG-13 | 132 | A | 96 |
0816711 | World War Z | 2013 | PG-13 | 123 | A | 135 |
0481499 | The Croods | 2013 | PG | 98 | N | 152 |
0848228 | The Avengers | 2012 | PG-13 | 143 | A | 3 |