DDA Test

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/45

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:29 PM on 6/10/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

46 Terms

1
New cards

Atomic (ACID)

Transactions are executed completely or not at al

2
New cards

Consistency (ACID)

Transactions maintain the database’s integrity constrains (DBMS have set of rules that ensure that the data in the database is accurate, consistent, and reliable)

3
New cards

Isolated (ACID)

A transaction cannot influence or see the incomplete effects of another concurrent transaction

4
New cards

Durable (ACID)

Once a transaction is declared complete (COMMIT), its results will not get lost regardless of system failures

5
New cards

Primary key

1 or more attributes that uniquely determine a record in a table

6
New cards

Foreign key

Attributes in a table that form a reference to the primary key of another table

7
New cards

Facts

Numerical properties (measures), combined with a formula (like SUM or AVG) at a specific granularity

8
New cards

Dimensions

Attributes that characterize the facts, typically textual, which can have hierarchical groupings (e.g. County —> city)

9
New cards

Roll-up

An operation that decreases detail by aggregating data

10
New cards

Drill-down

An operation that increases detail to show final granularity

11
New cards

OLTP

Handles day-to-day transactions, highly normalized (reduces redundancy), Queries: Simple, fast, write-heavy

12
New cards

OLAP

Performs complex data analysis and reporting, denormalize (e.g. star schemas and cubes), Queries: Complex, read-heavy

13
New cards

Inner Join

Returns only rows that match in both tables based on the condition

14
New cards

Left Join

Returns all rows from the left table, and matching rows from the right table (or NULLs)

15
New cards

Right Join

Returns all rows from the right table, and matching rows from the left table (or NULLs)

16
New cards

Full Outer Join

Returns all rows from both tables, filling with NULLs where there is no match

17
New cards

Cross Join

Returns the Cartesian product of all rows (all possible combinations). Occurs if a WHERE join condition is forgotten

18
New cards

Self Join

Joins a table with itself using table aliases to compare rows within the same table

19
New cards

Aggregate functions

Functions like AVG(), COUNT(), MAX(), MIN(), and SUM() computes values over multiple rows

20
New cards

WHERE vs HAVING

WHERE filters data before aggregation, HAVING filters groups after aggregation

21
New cards

CREATE TABLE

Defines new table with columns and data types

22
New cards

ALTER TABLE

Modifies an existing table structure (e.g. adding a column)

23
New cards

UPDATE

Modifies existing records based on a SET condition

24
New cards

Conceptual Design

Creating an Entiy-Relationship (ER) model using UML

25
New cards

Logical Design

Translating the UML schema into an actual table structure with primary and foreign keys

26
New cards

Realisation

Preparing data, creating tables in SQL, and filling the in

27
New cards

Normalized Design

Every dimension gets it’s own separate table, referencing the fact table via foreign keys

28
New cards

Inlined Design

Dimension attributes are stored directly inside the fact table, bypassing the need for separate tables.

Use inlined designs when: a dimension has few possible values, short string lengths, in not reused across other cubes, represents an easily computable value like a data

29
New cards

Routes

Define hoe the application responds to client requests for specific endpoints via HTTP methods like GET and POST

30
New cards

Views (Templates)

Engines like EJS separate presentation from application logic
Embedding server-side Javascript code between <% %> tags to dynamically generate HTML

31
New cards

GET

Sends form data via the URL and is strictly for data retrieval

32
New cards

POST

Sends data hidden in the HTTP request body and is used for inserts, updates, or deletes

33
New cards

Client-side rendering (CSR)

The server sends the data and the code that will generate the visualization/chart from the data to the client. The client then executes the code it received on the data it received to generate the chart.
Favorable when the processing power of the server is a concern

34
New cards

Server-side rendering (SSR)

Executes the code on the chart data and send the results (a visualization) to the client.

35
New cards

Union

Combines the results of 2 queries (A⋃B)

36
New cards

Intersect

Returns only elements present in both query results (A∩B)

37
New cards

Except

Returns all elements from the 1st query that are not in the 2nd (A\B)

38
New cards

Cartesian Product

Matching every tuple in set A with every tuple in set B (A×B)

39
New cards

Standard Views

Visual tables defined by a query
Do not store data themselves, but provide security, data abstraction, and a simplified schema for specific applications

40
New cards

Updatable Views

Views can only be updates if they maintain a direct 1-to-1 lossless mapping to a base table
No joins, aggregate functions, or derived columns can be present

41
New cards

Materialized Views

Physical tables that actually store the results of a query on disk

They are much faster for reading live data but require manual refreshing and are highly utilized in OLAP environments for data cubes

42
New cards

Indexes - Purpose

Hidden data structure that speed up query retrieval but slow down data modification operations (inserts, updates, deletes)

43
New cards

B-Trees

Balanced trees that keep keys in sorted order, making them highly efficient for range queries (between, <, >, order by)

44
New cards

Composite indexes

Follow the ‘most-left prefix‘ principle
If an index in on (last_name, first_name, city), querying only by first name will skip the index

45
New cards

Normalization

Organizes relational tables into normal forms (1NF, 2 NF, 3NF) strictly to reduce data redundancy and maintain integrity
NF: normal form

46
New cards

NoSQL

Databases like document stores or key/ value stores
They abandon strict relational schemas and normalized structures in favor of maximum flexibility, speed, and raw scalability