Module 1 Β· Introduction to Database Management Systems
What data, information and databases are; why we moved from files to a DBMS; how a DBMS is organised inside; what makes a transaction safe; and how clients talk to a database server. Every idea is shown on our class database, university_lab.
- βΈ Tell data from information, and a database from a DBMS
- βΈ List the problems of file systems and how a DBMS solves each
- βΈ Explain the three levels of abstraction and data independence
- βΈ State and demonstrate the ACID properties
- βΈ Compare file-server, 2-tier and 3-tier client-server models
- βΈ Name the components of a DBMS
The inter schema of university_lab (8 tables + views), loaded with the Intermediate sample rows.
1.1 Data, Information, Database & DBMS
| Term | Simple meaning | In our class database |
|---|---|---|
| Data | A raw fact | the value 2024 in the join_year column |
| Information | Processed, meaningful data | β4 students joined in 2024β |
| Database | An organised collection of related data | university_lab β schemas public, inter, event |
| DBMS | Software that manages the database | PostgreSQL 17 |
A DBMS lets its users:
- Define the structure of data β
CREATE TABLE - Manipulate data β
INSERT,UPDATE,DELETE - Retrieve data β
SELECT - Control who may do what β
GRANT,REVOKE - Administer the database β backup, restore, tuning
Each row in inter.students is data β individual facts:
SELECT full_name, join_year
FROM inter.students
ORDER BY student_id;
full_name | join_year
-----------------+-----------
Aarav Menon | 2024
Diya Nair | 2024
Rohan Pillai | 2023
Fatima Rahman | 2024
Kevin Thomas | 2023
Ananya Krishnan | 2024Group and count the same rows and you get information an admissions office can act on:
SELECT join_year, COUNT(*) AS students_admitted
FROM inter.students
GROUP BY join_year
ORDER BY join_year;
join_year | students_admitted
-----------+-------------------
2023 | 2
2024 | 4The v_seat_availability view goes one step further β it turns enrollment rows into a decision: CS201 and DA301 are full; open another section?
SELECT course_code, semester, capacity, enrolled, seats_left
FROM inter.v_seat_availability
ORDER BY offering_id;
course_code | semester | capacity | enrolled | seats_left
-------------+-----------+----------+----------+------------
CS201 | 2024-Odd | 3 | 3 | 0
DA301 | 2024-Odd | 2 | 2 | 0
CS101 | 2024-Odd | 40 | 1 | 39
MA101 | 2024-Even | 30 | 0 | 30And the database and DBMS themselves:
-- the schemas inside university_lab (psql shortcut: \dn)
SELECT schema_name FROM information_schema.schemata
WHERE schema_name IN ('public', 'inter', 'event')
ORDER BY schema_name;
schema_name
-------------
event
inter
public
-- the DBMS that manages it
SELECT version();
-- PostgreSQL 17.7 on x86_64-windows, compiled by msvc-19.44.35221, 64-bit- βΈData β processing β information.
- βΈA database is the data; the DBMS is the software.
university_labis a database; PostgreSQL is the DBMS. - βΈOne database can hold many schemas; each schema holds tables, views and other objects.
- βΈA DBMS lets users define, manipulate, retrieve and control data, and administer the database.
1.2 From File System to DBMS
Picture a university before it had a database. The Academics section, the Accounts section and the Hostel office each keep a spreadsheet with the student's roll number, name and phone number β plus their own columns such as fees paid or room number. This leads to six classic problems:
Three copies β the phone numbers already disagree.
One copy; everything else refers to it by key. (enrollments exists in university_lab; payments and hostel show how other sections would join in.)
| Problem | In a file system | How the DBMS fixes it (university_lab) |
|---|---|---|
| Data redundancy | Diya's phone number is stored in three files. | Stored once in inter.students; other tables refer to her by student_id. |
| Data inconsistency | Accounts updates the phone; Hostel does not β the copies disagree. | One copy means nothing to disagree with; constraints such as UNIQUE (email) reject bad data. |
| Difficult data access | You must know which file holds the data and write a program to search 10,000 rows. | One SQL query, by table name β the DBMS finds the data. |
| Unauthorised access | Anyone who can open the marks file can change it. | Per-user permissions with GRANT / REVOKE (see 1.6). |
| No concurrent access | A file opened by one user is locked for everyone else. | Many sessions read and write at the same time (PostgreSQL uses MVCC). |
| No backup and recovery | A deleted or corrupted file means the data is gone. | pg_dump / pg_restore backups and automatic crash recovery. |
A file would happily accept a second student with the same email, or an enrollment for a student who doesn't exist. The DBMS will not:
INSERT INTO inter.students (full_name, email, join_year)
VALUES ('Aarav M', 'aarav@duk.ac.in', 2024);
ERROR: duplicate key value violates unique constraint "students_email_key"
DETAIL: Key (email)=(aarav@duk.ac.in) already exists.INSERT INTO inter.enrollments (student_id, offering_id)
VALUES (999, 1);
ERROR: insert or update on table "enrollments" violates foreign key constraint "enrollments_student_id_fkey"
DETAIL: Key (student_id)=(999) is not present in table "students".- βΈSix file-system problems: redundancy, inconsistency, difficult access, unauthorised access, no concurrency, no backup/recovery.
- βΈRedundancy causes inconsistency: many copies of the same fact drift apart.
- βΈA DBMS keeps one integrated copy of the data and controls every access to it.
1.3 Three Levels of Data Abstraction
- Physical (internal) level β the lowest level: how data is actually stored. Files and blocks on disk, file organisation, and access paths such as B+ tree indexes and hashing. Only the DBMS (and the DBA tuning it) works here.
- Logical (conceptual) level β what data is stored and how it is related: the tables, columns, data types, keys and constraints of the whole database. Database designers and DBAs work here.
- View (external) level β the highest level: the part of the database that a particular user sees. There can be many views of the same database; storage details are hidden completely.
SELECT pg_relation_filepath('inter.students');
pg_relation_filepath
----------------------
base/16386/16434 -- a file under the server's data directory (numbers differ on your machine) Table "inter.students"
Column | Type | Collation | Nullable | Default
------------+------------------------+-----------+----------+----------------------------------------------------
student_id | integer | | not null | nextval('inter.students_student_id_seq'::regclass)
full_name | character varying(100) | | not null |
email | character varying(120) | | not null |
join_year | integer | | not null |
dept_id | integer | | |
Indexes:
"students_pkey" PRIMARY KEY, btree (student_id)
"students_email_key" UNIQUE CONSTRAINT, btree (email)
Foreign-key constraints:
"students_dept_id_fkey" FOREIGN KEY (dept_id) REFERENCES inter.departments(dept_id) ON DELETE SET NULL
Referenced by:
TABLE "inter.enrollments" CONSTRAINT "enrollments_student_id_fkey" FOREIGN KEY (student_id) REFERENCES inter.students(student_id) ON DELETE CASCADE-- the view you created in class: courses with their department
SELECT dept_code, dept_name, course_id FROM inter.myfirstview ORDER BY course_id;
dept_code | dept_name | course_id
-----------+------------------+-----------
CS | Computer Science | 1
CS | Computer Science | 2
CS | Computer Science | 3
MA | Mathematics | 4
DA | Data Analytics | 5
-- a faculty member's view: just the class list
SELECT student, faculty FROM inter.v_offering_roster
WHERE course_code = 'CS201' ORDER BY student;
student | faculty
--------------+-----------------
Aarav Menon | Dr. Nisha Varma
Diya Nair | Dr. Nisha Varma
Kevin Thomas | Dr. Nisha VarmaDon't confuse three levels with three tiers
The three levels (physical, logical, view) describe how data is organised inside the DBMS. The three tiers of a client-server system (client, application server, database server) describe how the machines of an application are arranged β see 1.10.
- βΈPhysical = how data is stored; Logical = what data is stored; View = what a user sees.
- βΈMany views, one logical schema, one physical schema.
- βΈAbstraction hides storage details, which makes the database simpler to use and design.
1.4 Data Independence
| Type | You can changeβ¦ | β¦without changing | Difficulty |
|---|---|---|---|
| Physical data independence | the physical level β add an index, move files to another disk, change file organisation | the logical schema or any application | Easy β supported by almost every DBMS |
| Logical data independence | the logical level β add a column or a table, split a table | the views and the applications that use them | Harder β some logical changes do reach the users |
CREATE INDEX idx_enrollments_student ON inter.enrollments (student_id);ALTER TABLE inter.students ADD COLUMN phone VARCHAR(15);
SELECT student, course_code
FROM inter.v_offering_roster
ORDER BY student, course_code; -- still returns the same 6 rows
-- undo both changes when you are done
ALTER TABLE inter.students DROP COLUMN phone;
DROP INDEX inter.idx_enrollments_student;- βΈPhysical independence protects the logical schema from storage changes.
- βΈLogical independence protects views and applications from changes to tables.
- βΈPhysical independence is easier to achieve than logical independence.
1.5 Phases of Database Design
- Conceptual design β capture the requirements in a high-level model, usually an ER diagram (entities, attributes, relationships). It does not depend on any DBMS.
- Logical design β convert the ER diagram into the relational model: tables, columns, primary and foreign keys, normalised (typically up to 3NF).
- Physical design β implement the relations in a specific DBMS: exact data types, constraints, indexes and storage β the actual
CREATE TABLEscripts.
| Phase | What it looks like for enrollments |
|---|---|
| Requirement | βA student can enroll in many course offerings; an offering has many students; a student cannot enroll in the same offering twice.β |
| Conceptual | STUDENT β(enrolls in, M:N)β COURSE OFFERING |
| Logical | enrollments(enrollment_id PK, student_id FK β students, offering_id FK β course_offerings, enrolled_on), with (student_id, offering_id) unique |
| Physical | The PostgreSQL script below |
CREATE TABLE inter.enrollments (
enrollment_id SERIAL PRIMARY KEY,
student_id INTEGER NOT NULL REFERENCES inter.students(student_id) ON DELETE CASCADE,
offering_id INTEGER NOT NULL REFERENCES inter.course_offerings(offering_id) ON DELETE CASCADE,
enrolled_on DATE NOT NULL DEFAULT CURRENT_DATE,
UNIQUE (student_id, offering_id)
);Our lab sessions follow exactly these phases: requirements β ER model (conceptual) β schema design (logical) β DDL scripts (physical).
- βΈConceptual = ER model (what); Logical = relational tables and keys (structure); Physical = DBMS-specific DDL (how).
- βΈOnly the physical design depends on the DBMS product.
1.6 Features & Advantages of a DBMS
| Feature | What it means | In PostgreSQL / university_lab |
|---|---|---|
| Minimal redundancy, consistent data | Each fact is stored once (normalisation), so copies cannot disagree. | Departments are stored once in inter.departments; students, faculty and courses point to them. |
| Simplified data access | Ask for data by name, not by file location. | SELECT β¦ FROM inter.students β no file paths. |
| Multiple views of the data | Different users see different, tailored parts of the same data. | v_offering_roster for faculty, v_seat_availability for the admissions office. |
| Data security | Only authorised users can read or change data. | Roles plus GRANT / REVOKE β example below. |
| Data integrity | Rules keep invalid data out. | CHECK (capacity > 0), primary keys, foreign keys, NOT NULL. |
| Concurrent access | Many users work at the same time without corrupting data. | MVCC: readers never block writers. |
| Backup and recovery | Data survives mistakes and failures. | pg_dump / pg_restore, plus crash recovery from the WAL. |
CREATE ROLE faculty_reader LOGIN PASSWORD 'change-me';
GRANT USAGE ON SCHEMA inter TO faculty_reader;
GRANT SELECT ON inter.v_offering_roster TO faculty_reader;
SET ROLE faculty_reader; -- act as that user
SELECT course_code, student FROM inter.v_offering_roster
ORDER BY course_code, student LIMIT 3; -- allowed
course_code | student
-------------+-------------
CS101 | Aarav Menon
CS201 | Aarav Menon
CS201 | Diya Nair
SELECT * FROM inter.students; -- not allowed
ERROR: permission denied for table students
RESET ROLE; -- back to your own user# back up university_lab to a single archive file
pg_dump -U postgres -Fc -d university_lab -f university_lab.dump
# restore it (creates the database again)
pg_restore -U postgres -C -d postgres university_lab.dump- βΈAdvantages: less redundancy, consistency, easy access, multiple views, security, integrity, concurrency, backup and recovery.
- βΈEach advantage answers one file-system problem from 1.2.
1.7 DBMS vs RDBMS
| Point | DBMS (general, incl. early non-relational systems) | RDBMS |
|---|---|---|
| Data stored as | Files, hierarchies (trees) or networks of linked records | Tables of rows and columns |
| Relationships | Followed through pointers, or handled by the application | Represented by primary and foreign keys, enforced by the DBMS |
| Normalisation | Not applicable | Supported (1NF β 3NF β BCNF) |
| Integrity constraints | Limited | PRIMARY KEY, FOREIGN KEY, UNIQUE, CHECK, NOT NULL |
| Query language | Navigational, record-at-a-time programs | Declarative SQL, set-at-a-time |
| Users and scale | Often single-user or small | Multi-user, concurrent, large data volumes |
| History | 1960s β IDS (Charles Bachman), IBM IMS | 1970 β Coddβs relational model; 1970s β System R, Ingres |
| Examples | IBM IMS (hierarchical), IDMS (network), file-based systems | PostgreSQL, Oracle, MySQL, SQL Server, IBM Db2 |
PostgreSQL records every foreign key in its catalog β the relationships are part of the database, not hidden in programs:
SELECT conrelid::regclass AS child_table,
confrelid::regclass AS parent_table,
conname AS foreign_key
FROM pg_constraint
WHERE contype = 'f'
AND connamespace = 'inter'::regnamespace
ORDER BY conrelid::regclass::text, confrelid::regclass::text, conname;
child_table | parent_table | foreign_key
------------------------+------------------------+-------------------------------------
inter.course_offerings | inter.courses | course_offerings_course_id_fkey
inter.course_offerings | inter.faculty | course_offerings_faculty_id_fkey
inter.course_offerings | inter.semesters | course_offerings_semester_id_fkey
inter.courses | inter.departments | courses_dept_id_fkey
inter.enrollments | inter.course_offerings | enrollments_offering_id_fkey
inter.enrollments | inter.students | enrollments_student_id_fkey
inter.faculty | inter.departments | faculty_dept_id_fkey
inter.prerequisites | inter.courses | prerequisites_course_id_fkey
inter.prerequisites | inter.courses | prerequisites_prereq_course_id_fkey
inter.students | inter.departments | students_dept_id_fkeyGet the history right
Codd did not invent the DBMS. The first DBMSs (IDS, IMS) appeared in the 1960s and were navigational. Codd's 1970 paper introduced the relational model, which RDBMSs are built on. PostgreSQL descends from Berkeley's Ingres and POSTGRES projects.
- βΈRDBMS = DBMS + relational model (tables, keys, SQL).
- βΈEvery RDBMS is a DBMS; not every DBMS is relational.
- βΈCodd proposed the relational model in 1970.
1.8 Transactions & ACID Properties
COMMIT) or none of them does (ROLLBACK).A DBMS must guarantee four properties for every transaction, so that data stays correct even with many concurrent users and with system failures. Together they are called ACID:
| Property | Meaning | In one phrase | How PostgreSQL ensures it |
|---|---|---|---|
| Atomicity | All operations of the transaction happen, or none do. | All or nothing | A failed or rolled-back transaction is undone completely. |
| Consistency | A transaction takes the database from one valid state to another; no integrity rule is broken. | No rule broken | Constraints (PK, FK, CHECK, NOT NULL) plus correct application logic. |
| Isolation | Concurrent transactions do not see each otherβs unfinished changes; the result is as if they ran one after another. | Unfinished work is invisible | MVCC and isolation levels (default READ COMMITTED). |
| Durability | Once committed, changes survive crashes and power failures. | Committed means permanent | The write-ahead log (WAL) is flushed to disk at COMMIT. |
Switching courses is two steps β leave DA301, join CS101. If only the first step happened, Diya would lose her seat and have no course. That is why it must be one transaction.
Atomicity β a failing step undoes the whole transaction. Here the second step uses an offering that doesn't exist:
BEGIN;
DELETE FROM inter.enrollments -- step 1: leave DA301
WHERE student_id = (SELECT student_id FROM inter.students WHERE email = 'diya@duk.ac.in')
AND offering_id = (SELECT o.offering_id
FROM inter.course_offerings o
JOIN inter.courses c ON c.course_id = o.course_id
WHERE c.course_code = 'DA301');
-- DELETE 1
INSERT INTO inter.enrollments (student_id, offering_id) -- step 2: join offering 999 (no such offering)
VALUES ((SELECT student_id FROM inter.students WHERE email = 'diya@duk.ac.in'), 999);
-- ERROR: insert or update on table "enrollments" violates foreign key constraint "enrollments_offering_id_fkey"
COMMIT;
-- ROLLBACK <- PostgreSQL refuses to commit a failed transaction
SELECT course_code FROM inter.v_offering_roster WHERE student = 'Diya Nair' ORDER BY 1;
-- CS201, DA301 <- the DELETE was undone: Diya is still in DA301Now do it properly β both steps succeed, and COMMIT makes them permanent together:
BEGIN;
DELETE FROM inter.enrollments
WHERE student_id = (SELECT student_id FROM inter.students WHERE email = 'diya@duk.ac.in')
AND offering_id = (SELECT o.offering_id
FROM inter.course_offerings o
JOIN inter.courses c ON c.course_id = o.course_id
WHERE c.course_code = 'DA301');
INSERT INTO inter.enrollments (student_id, offering_id)
VALUES ((SELECT student_id FROM inter.students WHERE email = 'diya@duk.ac.in'),
(SELECT o.offering_id
FROM inter.course_offerings o
JOIN inter.courses c ON c.course_id = o.course_id
WHERE c.course_code = 'CS101'));
COMMIT;
SELECT course_code FROM inter.v_offering_roster WHERE student = 'Diya Nair' ORDER BY 1;
-- CS101, CS201Consistency β a rule the database will not let any transaction break:
UPDATE inter.course_offerings SET capacity = 0
WHERE course_id = (SELECT course_id FROM inter.courses WHERE course_code = 'CS101');
ERROR: new row for relation "course_offerings" violates check constraint "course_offerings_capacity_check"Isolation β open two psql windows and run these steps in order:
| Step | Window A | Window B |
|---|---|---|
| 1 | BEGIN; | |
| 2 | UPDATE inter.course_offerings SET capacity = 45 WHERE room = 'LH-3'; | |
| 3 | SELECT capacity FROM inter.course_offerings WHERE room = 'LH-3';β 40 (A has not committed) | |
| 4 | COMMIT; | |
| 5 | Run the same SELECT again β 45 |
Durability β PostgreSQL writes the WAL to disk before it reports COMMIT:
SHOW transaction_isolation; -- read committed
SHOW synchronous_commit; -- on (COMMIT waits until the WAL is safely on disk)Put the sample data back
The successful switch and the isolation steps change the sample data. To undo them, run the switch again with the course codes swapped (leave CS101, join DA301), and set the LH-3 capacity back to 40.
- βΈACID = Atomicity (all or nothing), Consistency (no rule broken), Isolation (unfinished work invisible), Durability (committed means permanent).
- βΈCommands:
BEGINstarts,COMMITsaves,ROLLBACKundoes. - βΈConsistency is shared work: the DBMS enforces declared constraints; the programmer writes correct transactions.
1.9 File-Server Model
File servers replaced the mainframe in the 1980s, on office networks. Besides files, the server also shared resources such as printers and large disks. The application's files may live on the server, but the application runs in the client machine's memory, on the client's processor.
students.xlsx
β 1 result row
| Advantages | Disadvantages |
|---|---|
| Low-cost entry point β just a shared disk on a network | All processing happens on the client, so every client needs a powerful machine |
| Flexible β add or remove computers and resources as needed | Whole files travel over the network β heavy network traffic |
| Simple to set up | Several users writing the same file causes locking problems and corruption; security is weak |
Suppose the department kept students.xlsx on a shared drive. To find one student's phone number, Excel on your PC downloads the entire file and searches it locally. If a colleague has it open, you get βfile is locked for editingβ β or worse, two people save and one person's changes are lost. Microsoft Access .accdb files on a shared folder work the same way.
- βΈFile server = shared storage only; the client does all the work.
- βΈMain drawbacks: heavy network traffic, powerful clients needed, poor multi-user control.
1.10 Client-Server Model
Sending a query and getting back a few result rows, instead of whole files, cuts network traffic dramatically. The server enforces security and integrity in one place, and many users can update the shared database at the same time. Clients and servers communicate using SQL or remote procedure calls (RPCs) over the network β PostgreSQL listens on TCP port 5432.
| 2-tier | 3-tier | |
|---|---|---|
| Layout | Client talks directly to the database server | Client β application server (middleware) β database server |
| Where the logic runs | User interface and application logic on the client | User interface on the client; business logic on the application server |
| Typical size | Small environments β tens of users | Large numbers of users |
| Example | psql or pgAdmin connected straight to PostgreSQL | Browser β student portal (web application) β PostgreSQL |
| Strengths | Simple to build | Scales better, more flexible, database never exposed to users |
| Weakness | Each client needs a direct database connection; hard to scale | More complex to develop |
The middleware in a 3-tier system can be an application server, a transaction-processing monitor or a message server. It handles queuing, application execution, scheduling and prioritisation of work, and connection pooling.
Client-server systems also scale in two directions. Horizontal scaling adds more clients or application servers with little performance impact. Vertical scaling moves to a bigger, faster server, or to several servers.
psql -h localhost -p 5432 -U postgres -d university_labSELECT current_user, current_database(), inet_server_addr(), inet_server_port();
current_user | current_database | inet_server_addr | inet_server_port
--------------+------------------+------------------+------------------
postgres | university_lab | ::1 | 5432
-- every connected client is a separate session on the server
SELECT pid, usename, application_name, client_addr, state
FROM pg_stat_activity
WHERE datname = 'university_lab';
-- open pgAdmin as well and run it again: you will see two clients- βΈClient sends SQL; server processes it; only the results come back.
- βΈ2-tier: client β DB server. 3-tier: client β application server β DB server.
- βΈHorizontal scaling = more machines; vertical scaling = a bigger machine.
1.11 Components of a DBMS
| Component | What it is | In our lab |
|---|---|---|
| Hardware | The physical devices: computers, disks, RAM, CPU, network and I/O channels. | Your lab PC or the server; PostgreSQL's data directory lives on its disk (SHOW data_directory;). |
| Software | The DBMS itself, plus the operating system, client tools and utilities. | PostgreSQL 17 server, psql, pgAdmin, pg_dump. |
| Data | The user's data and metadata β data about the data (structure, types, constraints, owners). | Rows in inter.students; metadata in information_schema and pg_catalog. |
| Procedures | Written instructions and rules for using and running the database. | Installing PostgreSQL, starting the service, creating users, the nightly backup, the restore drill. |
| Database access language | The language used to define, change, query and control data. | SQL β DDL, DML, DCL, TCL. |
| People | Those who design, run and use the database. | DBA, database designer, application developer, end users. |
SELECT column_name, data_type, is_nullable
FROM information_schema.columns
WHERE table_schema = 'inter' AND table_name = 'students'
ORDER BY ordinal_position;
column_name | data_type | is_nullable
-------------+-------------------+-------------
student_id | integer | NO
full_name | character varying | NO
email | character varying | NO
join_year | integer | NO
dept_id | integer | YESThe access language, by category β one example each from our database (Module 3 covers SQL in depth):
| Category | Purpose | Example |
|---|---|---|
| DDL β Data Definition | Define structure | CREATE TABLE inter.semesters (β¦); |
| DML β Data Manipulation | Read and change rows | SELECT * FROM inter.courses WHERE credits = 4; |
| DCL β Data Control | Permissions | GRANT SELECT ON inter.v_offering_roster TO faculty_reader; |
| TCL β Transaction Control | Group work into transactions | BEGIN; β¦ COMMIT; / ROLLBACK; |
- βΈFive components: Hardware, Software, Data, Procedures, Database access language (+ People).
- βΈMetadata is data about data, kept by the DBMS in its catalog (the data dictionary).
Module 1 at a glance
| Topic | One-line answer |
|---|---|
| Data vs information | Raw facts vs processed, meaningful data. |
| Database vs DBMS | The organised data vs the software that manages it. |
| Why a DBMS | It removes redundancy, inconsistency, hard access, unauthorised access, no concurrency, and no backup. |
| Three levels | Physical (how stored) Β· Logical (what is stored) Β· View (what a user sees). |
| Data independence | Change one level without changing the level above. Physical is easy; logical is harder. |
| Design phases | Conceptual (ER) β Logical (relations) β Physical (DDL). |
| RDBMS | A DBMS built on Coddβs 1970 relational model: tables, keys, SQL. |
| ACID | Atomicity, Consistency, Isolation, Durability. |
| File server | Shares files only; the client does all processing. |
| Client-server | The server processes SQL and returns results. 2-tier or 3-tier. |
| Components | Hardware, software, data, procedures, access language (+ people). |
Practice on university_lab
Information for a decision
EasyProve atomicity
MediumRead the metadata
MediumDemonstrate logical data independence
HardExam-style questions
- Define data and information, with an example of each.
- What is metadata?
- Expand ACID.
- Differentiate physical and logical data independence.
- What is a database instance? How is it different from a schema?
- Explain the drawbacks of the file system that led to the DBMS.
- Explain the three levels of data abstraction with a neat diagram.
- Explain the ACID properties with a suitable example.
- Compare the file-server model with 2-tier and 3-tier client-server models.
- Describe the components of a DBMS.
