Computer Science · Theme A: Concepts of computer science
A3.1 — Database fundamentals
Computer Science · SL / HL · syllabus-mapped notes
CS_A3.1.1
Relational databases: features, benefits, limitations
The named features of a relational database and reasoned benefits and limitations.
Full note — freeA relational database stores data in linked tables (relations). You must be able to explain its features, and to give reasons for its benefits and limitations, keeping the three lists distinct. Features Table : a set of rows (records) and columns (fields) holding data about one entity. Primary key : a column (or set of columns) that uniquely identifies each row in a table. Composite key : a primary key made of two or more columns combined to give uniqueness. Foreign key : a column that references the primary key of another table, creating a link between tables. Relationships : the logical links between tables (for example one-to-many) built using primary and foreign keys. Benefits Data integrity and data consistency : constraints and keys keep stored data accurate and in agreement across tables. Reduced data duplication and reduced redundancy : normalization stores each fact once, so updates do not have to be repeated. Concurrency control and reliable transaction processing : many users can work at once and transactions complete reliably. Data retrieval : a query language (SQL) retrieves and combines data quickly. Scalability : the system can grow to handle more data and users. Security features : access controls and permissions protect the data. Community support : mature, widely used systems have strong documentation and support. Limitations Rigid schema : the structure is fixed in advance and is awkward to change. Design complexity : designing normalized tables and relationships takes expertise. Big data scalability issues : very large volumes can strain a single relational system. Unstructured data handling and hierarchical data handling : text, media and tree-shaped data do not fit neatly into flat tables. Object-relational impedance mismatch : objects in program code do not map cleanly onto rows and columns. Do not confuse the three lists. Features are structural parts (keys, tables, relationships); benefits and limitations are consequences you must justify with a reason.
