Understanding SQL Flashcards

1
Q

Database

A

a container (usually a file or set of files) to store organized data.

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

DBMS

A

Database Management System

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

Table

A

a structured list of data of a specific type.

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

Table names

A

– a combination of several things, including the database name and table name. Some databases also use the name of the name of the database owner as part of the unique name.

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

Schema

A

– information about database and table layout and properties.

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

Column

A

– a single field in table. All tables are made up of one or more columns.

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

Breaking Up Data

A

– when you break up data, the level of granularity is up to you and your specific requirements. For example, addresses are typically stored with the house number and street name together. This is fine, unless you might one day need to sort data by street name, in which case splitting house number and street name would be preferable.

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

Datatype

A
  • a type of allowed data. Every table column has an associated datatype that restricts (or allows) specific data in that column.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Datatype Compatibility

A

– names of datatypes in different DBMSs can be different. Keep it in mind.

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

Rows

A

– a record in a table.

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

Primary Key

A

– a column (or set of columns) whose values uniquely identify every row in a table.

Defined for every row (no NULL values)

Should never be modified or updated.

Should never be reused (If a row is deleted from the table, its primary key may not be assigned to any new rows in the table).

Always define Primary Keys to make data manipulation possible and manageable.

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