Databases (Paper 2) Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a primary key?

A

A unique identifier for the records of the table

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

What are records in a table?

A

The rows

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

What are fields in a table?

A

Columns

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

What does SQL stand for?

A

Structured query language

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

What is the format of an SQL statement?

A

SELECT …
FROM ….
WHERE ….
ORDER BY ….

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

What is the format of an SQL statement when doing a count statement?

A

SELECT COUNT(….)
FROM ….
WHERE

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

What is the format of an SQL statement when doing a sum statement?

A

SELECT SUM(….)
FROM ….
WHERE ….

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

Which validation rules can you use on fields in a datatbase?

A

-Length check
-Format check
-Range check
-Presence check

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