databases
使用闪卡高效复习COMPUTER-SCIENCE科目知识点
共计闪卡
20张
闪卡自测
What is a database?
所有闪卡
闪卡 1
问题
What is a database?
查看答案
答案
A database is an organised collection of data
闪卡 2
问题
Define the term field.
查看答案
答案
A field is one piece of information relating to one person, item or object.
闪卡 3
问题
What is a record in a database?
查看答案
答案
A record is a collection of fields relating to one person, item or object.
闪卡 4
问题
True or False? A field is represented by a row in a database table.
查看答案
答案
False. A field is represented by a column in a database table.
闪卡 5
问题
Define validation rule.
查看答案
答案
A validation rule controls what data can be entered into a field.
闪卡 6
问题
What is a length check?
查看答案
答案
A length check is a validation that checks the number of characters entered into a field.
闪卡 7
问题
True or False? A presence check ensures a field cannot be left blank.
查看答案
答案
True. A presence check ensures a field cannot be left blank.
闪卡 8
问题
What is a data type?
查看答案
答案
A data type is the type of data that can be held in a field and is defined when designing a table.
闪卡 9
问题
State two examples of common data types.
查看答案
答案
Examples of common data types are: Numeric, Character/string, Date/time, Boolean.
闪卡 10
问题
What is the advantage of using a database over a text file for large amounts of data?
查看答案
答案
A database allows easy storage, retrieval, and management of information for large amounts of data.
闪卡 11
问题
What is a primary key?
查看答案
答案
A primary key is a unique field that can be used to identify a record in a table.
闪卡 12
问题
True or False? A primary key must be numeric.
查看答案
答案
False. A primary key can be any data type, as long as it uniquely identifies each record.
闪卡 13
问题
Define foreign key.
查看答案
答案
A foreign key is a field in a table that refers to the primary key in another table.
闪卡 14
问题
What is the purpose of a foreign key?
查看答案
答案
A foreign key is used to link tables and create relationships.
闪卡 15
问题
True or False? Every table must have a primary key.
查看答案
答案
True. Every table must have a primary key to uniquely identify each record
闪卡 16
问题
What field would make a good primary key?
查看答案
答案
CustomerID
闪卡 17
问题
Define record in database terminology.
查看答案
答案
A record is a group of related fields, representing one data entry.
闪卡 18
问题
What is a field in database terminology?
查看答案
答案
A field is a single piece of data in a record.
闪卡 19
问题
True or False? The primary key can be composed of multiple fields.
查看答案
答案
True. The primary key can be composed of multiple fields, known as a composite key.
闪卡 20
问题
State an example of a typical primary key in a school database.
查看答案
答案
A typical primary key in a school database would be: Student_ID