databases T7 Flashcards

1
Q

uses of databases

A

used in business situations and back-end of many cloud services

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

examples of uses of databases

A

management information systems
customer and retail
websites
games
social media

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

define database

A

a structured way to store data so that it can be retrieved using queries

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

define a field

A

a single item of data in a column within a database

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

define a record

A

a collection of fields, a basic data structure

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

varchar

A

a variable length string

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

varchar

A

a variable length string

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

flat file database

A

a database with one table

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

primary key

A

a field that is unique for every record

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

relational database

A

database with multiple tables which are linked through their key fields

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

foreign key

A

a field in one table that is a primary key in another

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

why use relational databases

A

flat file databases can have a lot of redundant data so relational databases reduce inconsistencies and redundant data

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

redundant data

A

repetitions of the same data

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

inconsistent data

A

writing data in different formats

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

sql

A

structured query language

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

define query

A

a question asked about a database

16
Q

SELECT (field) query

A

this retrieves data from the database (used for searching)

17
Q

FROM (table)

A

stating which table you are retrieving data from

18
Q

WHERE (condition)

A

stating what condition you want the data to meet/how it is filtered

19
Q

ORDER BY (field) ASC/DESC

A

stating how you want the field ordered

20
Q

how to join data from two related tables

A

you need to match the foreign key to the primary key using WHERE

21
Q

INSERT INTO (table(fields)
VALUE (values)

A

adds a record to the table