8 databases Flashcards

(23 cards)

1
Q

limitations of a file based approach

A
  • storage space is wasted when data items are duplicated by the separate applications and some data is redundant
  • data can be altered by one application and not by another, it becomes inconsistent
  • enquiries depend on the structure of the data so data is not independent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

benefits of a relational database

A
  • storage space is not wasted as data items are only stored once, meaning no redundant data
  • data altered in one application is available in another, so data is consistent
  • enquiries are not dependent on the structure of the data, so data is independent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is a candidate key?

A

an attribute in a table that could be a primary key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is a primary key?

A

a unique identifier for a table, it is a special case of a candidate key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is a foreign key?

A

a set of attributes in one table that refer to the primary key in another table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is a relationship?

A

its formed when one table in a database has a foreign key that refers to a primary key in another table in the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is referential integrity?

A

the database must not contain any values of a foreign key that are not matched to the corresponding primary key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

E-R diagram

A

visual representation of how the entities in a database are related

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

normalization

A

the process of organizing data to be stored in a database into two or more tables and relationships between the tables, so that data redundancy is minimized

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is first normal form, second and third

A

1NF - entities do not contain repeated groups of attributes
2NF - entities are in 1NF and any non-key attributes depend upon the primary key. there are no partial dependencies
3NF - entities are in 2NF and all non-key attributes are independent. the table contains no non-key dependencies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

DBMS

A

systems software for the definition, creation and manipulation of a database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

data management

A

the organization and maintenance of data in a database to provide the information required

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

data dictionary

A

a set of data that contains metadata (data about other data) for a database
- e.g. table name, field name, primary key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

data modelling

A

the analysis and definition of the data structures required in a database and to produce a data model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

logical schema

A

a data model for a specific database that is independent of the DBMS used to build that database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

access rights

A

the permissions given to database users to access, modify or delete data

17
Q

developer interface

A

feature of a DBMS that provides developers with the commands required for definition, creation and manipulation of a database

18
Q

SQL

A

the structured query language used with relational databases for data definition and data modification

19
Q

query processor

A

feature of a DBMS that processes and executes queries written in SQL
- allows user to enter criteria
- searches for data that meets entered criteria

20
Q

Data definition language (DDL)

A

a language used to create, modify and remove the data structures that form a database
commands:
-CREATE DATABASE
- ALTER TABLE
- PRIMARY KEY
-FOREIGN KEY…REFERENCES…

21
Q

Data manipulation language

A

a language used to add, modify, delete and retrieve the data stored in a relational database
commands:
- select from
- where
- order by
- group by
- inner join
- sum
- count
- avg
- insert into
- delete from
- update

22
Q

field

A

column in a table

23
Q

entity

A

anything that data can be stored about