Database

studied byStudied by 0 people
0.0(0)
get a hint
hint

file base approach

1 / 15

Tags and Description

16 Terms

1

file base approach

The data is stored in one or more separate computers files

New cards
2

Relational database

Is a way of structuring information in tables, rows and columns.

New cards
3

What are the limitations of using a file based

  • Data redundancy (data is repeated in more than one file)

  • Data dependency (changes to data means changes to program accessing the data)

  • Lack of data integrity (entries that should be same can be different in different places)

  • Lack of data privacy (all users have access to all data if a single flat file)

New cards
4

What are the benefits of relational database instead of flat file?

  • Reduce data redundancy

  • Reduce data dependency

  • Improve data integrity

  • Improve data privacy

  • Program-data independence

  • Ability to create ad hoc queries (queries designed for a particular purpose)

New cards
5

Describe the features of relational database that address the limitations of files based approach

  1. Multiple tables are linked together

    • which reduces data redundancy

    • increase data integrity

    • referential integrity can be enforced

  2. Program data independence means that

    • structure of data can change and does not affect program

    • structure of program can change and does not affect data

  3. Complex queries can be more easily written

    • to find specific data

  4. Different user can be given different access rights

    • which improves security

  5. Different users can be given different views of the data

    • so they do not see confidential information and data privacy is maintained

New cards
6

Entity

The concept or object in the system that we want to model and store information about

New cards
7

Attributes

A data item, represented as a field within a table

New cards
8

Primary key

A unique identifier for each tuple

New cards
9

Foreign key

New cards
10

Describe the role of a primary and a foreign key in a database relationship?

  • primary key uniquely identifies each tuple

  • primary key can be used as a foreign key in another table

  • to form relation between the tables

New cards
11
New cards
12
New cards
13
New cards
14
New cards
15
New cards
16
New cards

Explore top notes

note Note
studied byStudied by 10 people
Updated ... ago
4.0 Stars(1)
note Note
studied byStudied by 6 people
Updated ... ago
4.0 Stars(1)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 15 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 14414 people
Updated ... ago
4.8 Stars(125)
note Note
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 150 people
Updated ... ago
5.0 Stars(6)

Explore top flashcards

flashcards Flashcard46 terms
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard33 terms
studied byStudied by 15 people
Updated ... ago
4.5 Stars(91)
flashcards Flashcard39 terms
studied byStudied by 12 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard31 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard33 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard30 terms
studied byStudied by 13 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard40 terms
studied byStudied by 27 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard33 terms
studied byStudied by 33 people
Updated ... ago
5.0 Stars(2)