返回卡包市场

4.10 - Fundamentals of databases

暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。

卡片总数: 6内容版本: v4公开卡包更新时间: 8/1/2026

卡片预览 (6 张)

#1
正面 (问题)

What is an entity in a database? (2 points)

背面 (解答)

Something used to represent an object in the real world that can be distinguished from other objects Can be a physical object (such as a person or a place) or a concept (such as an activity or a task) for which we need to record data in the database

#2
正面 (问题)

What is an attribute in a database? (2 points)

背面 (解答)

Something used to represent a property, a quality or a characteristic that describes an entity E.g. the name of an employee, or the date and time that a booking was submitted

#3
正面 (问题)

What are the 2 types of identifiers in a databse?

背面 (解答)

Entity identifier/key attribute - an attribute/set of attributes used to uniquely identify each instance of an entity Composite entity identifier - a set of the minimum number of possible key attributes combined together

#4
正面 (问题)

What are the 3 types of database relationships?

背面 (解答)

One-to-one - whenoneinstance of an entity is associated withonly oneinstance of another entity E.g. each school is run by one head teacher One-to-many - whenoneinstance of an entity is associated withmore than one instance of another entity E.g. each student books many appointments Many-to-many - whenmore than one instance of an entity is associated withmore than one instance of another entity E.g. many students are taught by many teachers

#5
正面 (问题)

Define ‘relational database’.

背面 (解答)

A database where separate tables are made for each entity, and relationships between entities are represented by foreign keys

#6
正面 (问题)

What are the 3 types of keys used in a database?

背面 (解答)

Primary key - a unique identifier that identifies each record in a table Composite primary key - a primary key made up from two or more other keys Foreign key - a linking attribute that joins two tables in a relational database by being a primary key in one and a foreign key in the other