11. Databases Flashcards

1
Q

What are the drawback of storing data in one file and in folder?

A

Storing data in one file:
• Unsecure
• Inefficient
• Hard to find and delete
• Hard to correct
• Lack of control
Storing data in folders:
• Data becomes redundant. There is now a duplication across the files
• Data has to be rewritten if there will be a big change to its structure or data itself.
• Extracting big amounts of data would be a complex task

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

What is a primary key?

A

A primary key may be a single attribute or a combination of attributes that are unique to a particular table.

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

Secondary key vs Candidate key.

A

In some cases there may be more than one attribute for which unique values are guaranteed. In this case, each one is a candidate key and one will be selected as the primary key. A candidate key that is not selected as the primary key is then referred to as a secondary key

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

What is a Foreign key?

A

Foreign key - a primary key that is used from another table that is in relation with the used one

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

What is a query?

A

The query is the mechanism for extracting and manipulating data from the database.

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

What does DBMS provide?

A

The DBMS provides software tools through a developer interface. These allow for tables to be created and attributes to be defined together with their data types.

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

What is SQL?

A

SQL is the programming language provided by a DBMS to support all of the operations associated with a relational database.

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

What is DDL?

A

Data Definition Language (DDL) is the part of SQL provided for creating or altering tables. These commands only create the structure. They do not put any data into the database.

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

What is DML?

A

• Data Manipulation Language (DML):
1. Insert data into the tables when the database is created
2. Modification and removal of data in the database
3. The reading of data stored in the database

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

How is a row referenced in the table?

A

A tuple.

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

What is an attribute of a database?

A

In general, an attribute is a characteristic or a feature of data that corresponds to a column name in a table.

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

What is Relation?

A

Relation is a similarity between to things. A property that makes them relate to one another.

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