9 Databases Flashcards

1
Q

What is a database?

A

A collection of data about objects stored in tables. It is application software used to store and manipulate data

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

What is a table?

A

A set of data about one type of object, made up of fields, in database

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

What is a field?

A

An individual piece of data stored about an object in a database

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

What is a record?

A

A collection of fields about one object, in a database

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

What are the core parts of a database?

A

Tables, fields, records (and maybe objects)

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

What does each field have?

A

A specific data type

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

What are the common database data types and what are their details?

A

Text / alphanumeric - any combination of letters, symbols and numbers, character - single letter, number or symbol, boolean - one of two values, integer - whole number, real - number with decimal part, date / time - a data and/or time

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

What is a primary key and what are its details?

A

A unique field in a database which uniquely identifies a record. It does not appear twice in different records

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

What is SQL (Structured Query Language) and what can it do?

A

A standard language used in databases to define tables, change tables, add data to tables, search for data from tables (query) and perform calculations using data from tables

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

What does a SELECT… FROM statement in SQL allow you to do?

A

Allows you to select a set of fields from a table. All data in each field will be returned

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

Do field and table names in SQL have to be exact?

A

Yes. It is case sensitive

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

What is the WHERE clause in a SELECT statement in SQL?

A

A clause which allows you to only select specific data which meets certain conditions

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

What is a logical operator in SQL and what are some examples?

A

A symbol that performs a comparison resulting in True or False. Can be =, <, <=, >, >=, <> (not equal to)

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

What is a Boolean operator in SQL and what are some examples?

A

A symbol that joins multiple logical comparisons. Can be AND (returns data meeting both conditions), OR (returns data meeting one or both conditions), NOT (returns data that doesn’t meet the condition)

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

When more than one condition is used in SQL, what is required?

A

Boolean operator

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