1.3.2 - databases Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is meant by the term Primary Key?(1)

A

It is a field with a unique value. OR A unique Identifer.(1)

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

What is meant by the term Foreign Key?(1)

A

A field that links a primary key in a second table.(1)

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

What is meant by Referential Integrity?(1)

A

Database are consistent OR Each foregin Key links to a valid Primary Key.(1)

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

What Does A.C.I.D stand for? (4)

A

Atomicity (1) Consistency(1) Isolation (1) Durability(1)

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

What are the 3 types of Entity Relationship?(3)

A

One-to-One (1) Many-to-Many (1) Many-to-One(1)

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

What is Flat File Database ?(1)

A

A single table (2) or a 2D table (1)

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

What is a Referential Database?(1)

A

Multiple tables, linked by key fields (1)

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

What are 4 Methods to Exchange Data (4)

A

CSV(1) XTML(1) JSON(1) Electronic Data Interchange (1)

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

Why do we use SQL?(3)

A

Allows fast and efficient retrieval (1) deletion(1) and manipulation of data using simple commands.

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

What are the 4 Methods for Capturing Data? (4)

A

Manual Entry (1) Optical Character Recognition {OCR}(1) Magnetic Ink Character Recognition {MICR}(1) Optical Mark Recogntion {OMR}(1)

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

Give an Example of Manual Entry (1)

A

Focal Groups (1) Verbal Surveys (1)

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

Give an Example of O.C.R (1)

A

Forms(1) Car Registration(1) Google Street-View (1)

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

Give an Example of M.I.C.R (1)

A

Bank Cheques(1) Passports (1)

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

Give an Example of O.M.R (1)

A

Multiple Choice Exams(1) Lottery Tickects (1)

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

Why do we use Database Manipulation Languages?(5)

A

Specify Tables(1) Specifiy Fields(1) Specify Criteria(1) Specify Output Sorting(1) Use Boolean Expressions(1)

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

Define a Record (1)

A

A collection of fields about the same person or item in a database(1)

17
Q

Define a Field (1)

A

A category of information(1)

18
Q

What is a Composite Primary Key? (1)

A

A primary Key generated by combining fields of each record to gaurantee uniqueness(1)

19
Q

Compare Flat-File Databases to Relational Databases.(4)

A

Flat Files: Limited amount of Data(1) Limited Technical Expertise required to use Flat File databases(1) Data format difficult to change (1) Not very secure(1) Relational Database: Easy to add Data(1) Easy to link to other applications(1) Save space by reducing redundant data(1) Improves Data Consistency (1) Easy to change data Format(1) Easy to control access to data(1)

20
Q

What does Atomicity mean in A.C.I.D?(1)

A

A transaction can be fully complete or not complete. It cannot be partially complete.(1)

21
Q

What does Consistency mean in A.C.I.D?(1)

A

A change in the database must retain the overall state of the database.(1)

22
Q

What does Isolation mean in A.C.I.D?(1)

A

Transaction must not interrupt one another (1)

23
Q

What does Durability mean in A.C.I.D?(1)

A

Changes made must not be lost to system faliure.(1)

24
Q

Why Normalise Databases?(2)

A

Reduces Redundant Data(1) Improves Data Integrity(1)

25
Q

What the requirements for First Normal Form (1NF)? (3)

A

Field names must be unique(1)Data is Atomic (1) Has a primary key(1)

26
Q

What the requriements for Second Normal Form (2NF)? (2)

A

It is in 1NF(1) No Partial Dependencies (1)

27
Q

Define Dependency (1)

A

A field all other fields are dependant on.(1)

28
Q

Define Partial Dependecy (1)

A

Field depending on parts of the primary key.(1)

29
Q

What the requriements for Third Normal Form (3NF)? (2)

A

It is in 2NF(1) No Transitive Dependencies(1)

30
Q

What is Transitive Dependency?(2)

A

A Non-Key Dependency (1) A value of a field is determined by the value of another field that is not the Primary Key (1)

31
Q

What is a Link Table? (2)

A

A table used to resolve Many-to-Many relationships(1) Resolves Partial dependencies.(1)

32
Q

What does * mean in SQL? (1)

A

SQL wildcard meaning ALL(1)

33
Q

What does % mean in SQL?(1)

A

SQL wildcard meaning ANYTHING(1)

34
Q

What is the SQL for Adding new Data to table? (1)

A

Insert Into (field1,field2)Values (value1,value2)(1)

35
Q

What Statement in SQL deletes Data?(1)

A

DELETE FROM (1)

36
Q

What Statement in SQL joins Two Tables togehter?(1)

A

JOIN ON(1)

37
Q

What Statement in SQL Deletes a Table? (1)

A

DROP TABLE (1)

38
Q

Name 2 SQL commands?(2)

A

SELECT(1) FROM(1) WHERE(1) LIKE(1) AND(1) OR(1) DELETE(1) INSERT(1) DROP(1) JOIN ON (1)

39
Q

What is a secondary key? (2)

A

An indexed field (1) that allows for easier searching (1)