Databases (Paper 2) Flashcards
1
Q
What is a primary key?
A
A unique identifier for the records of the table
2
Q
What are records in a table?
A
The rows
3
Q
What are fields in a table?
A
Columns
4
Q
What does SQL stand for?
A
Structured query language
5
Q
What is the format of an SQL statement?
A
SELECT …
FROM ….
WHERE ….
ORDER BY ….
6
Q
What is the format of an SQL statement when doing a count statement?
A
SELECT COUNT(….)
FROM ….
WHERE
7
Q
What is the format of an SQL statement when doing a sum statement?
A
SELECT SUM(….)
FROM ….
WHERE ….
8
Q
Which validation rules can you use on fields in a datatbase?
A
-Length check
-Format check
-Range check
-Presence check