Introduction to Database Flashcards
What is Database?
-Is a collection of data or information which is stored in a logical and structured way.
-“A shared collection of logically related data (along with a description of this data), designed to meet the information needs of an organisation”
-A single repository of data that can be used simultaneously by many departments and users
-As well as holding the organisation’s operational data, the database holds a description of this data. For this reason, a database is also defined as a self-describing collection of integrated records. The description of the data, that is the meta data is known as the system catalogue or data dictionary
What is Database used for?
-To store
-To organise
-To manipulate data (adding, deleting, updating)
Examples of non-computerised database:
-Dictionaries
-Telephone directories
-Address books
Examples of computerised database
-Netflix
-Cellphone contacts
-Game library
-Amazon
-Facebook
Common database applications
-Banking
-Airlines
-Universities
-Sales
-Manufacturing
-Human resources
Some popular database software
-Oracle
-Microsoft SQL
-MySQL
-Microsoft Access
Database software is sometimes called:
-Database manager
-Database management system (DBMS)
Some of Data Models in DBMS
-Relational Model
-Hierarchical Model
-Object-Oriented Data Model
Relational Database Model
-A data model attempts to represent the data requirements of the organisation (or some part)
-It should provide an integrated collection of concepts for: describing data, relationships between data and constraints on the data used by an organisation.
-Each line or row in a table is called a Record
-Each should have a unique field that is called Primary Key
-The Primary Key of one entity is the Foreign Key in another entity.
Structural Components of Relational Models
-Field (Attribute)
-Record (Tuple)
-File (Relation)
-Domain
-Relational database
Field
-Each of these (name, address, etc.) is one piece of information about you
-Each of these different types of information is called a “Field”
Record
-All of the fields are put together to make a “record”
-A record is therefore all of the data about one person in a table
File
-All of the records are stored together in a “file”
-A file consists of a collection of particular records
Domains
-Every attribute in a relational database is associated with a domain
-It allows us to define the meaning and source of values that attributes can hold.
A field or a collection of fields is designated as the __________ to provide uniqueness
Primary key