Based on the SQLD exam syllabusReport an error
In SQLD, Subject 1 is 10 of the 50 questions (20 points). Its weight is small, but scoring below 40% in any subject is a failure, so if you cannot get 8 points (4 questions) in Subject 1, you fail regardless of your Subject 2 score (source: the exam information in this track's README, confirmed at dataq.or.kr on 2026-11-03).
| Subject | Questions | Points | Failing line (below 40%) |
|---|---|---|---|
| Subject 1: Understanding Data Modeling | 10 | 20 | Below 8 points (fewer than 4 questions) |
| Subject 2: SQL Basics and Applications | 40 | 80 | Below 32 points (fewer than 16 questions) |
W1 Day 1 has four lists that are grouped into "three things." Answer choices that mix up the group name and the elements are wrong.
| Group | Elements | Where they get mixed up |
|---|---|---|
| Characteristics | Abstraction · Simplification · Clarification | Simplification means expressing easily, and clarification means expressing with one meaning |
| Perspectives | Data (What) · Process (How) · Interaction | The English for the interaction perspective is Interaction |
| Importance | Leverage · Conciseness · Data Quality | What to uphold |
| Cautions | Duplication · Inflexibility · Inconsistency | What to avoid |
Both concepts are three boxes going "from abstract to concrete," so they work well together in one question. They differ from the start in what they divide.
| Comparison | Modeling stages (W1 Day 2) | Three-level schema (W1 Day 2) |
|---|---|---|
| What it divides | The design process | The layers for viewing a finished DB |
| Names | Conceptual → Logical → Physical | External · Conceptual · Internal |
| Purpose of dividing | Stepwise concretization | Data independence |
| Count | One deliverable per stage | Several external, one conceptual and one internal |
Modeling stages Three-level schema
Conceptual core entities, External per-user/application
relationships, EA views (several)
↓ │ external/conceptual mapping → logical independence
Logical keys, attributes, Conceptual organization-wide
relationships fixed, integrated structure (one)
normalization │ conceptual/internal mapping → physical independence
↓
Physical tables, types, Internal storage structure,
indexes, performance indexes (one)Independence is judged by "what changes, and what is protected."
| Independence | What changes | What is protected | Shopping mall example |
|---|---|---|---|
| Logical | Conceptual schema | External schema | Even if you add a column to the customer table, the delivery screen stays the same |
| Physical | Internal schema | Conceptual schema | Even if you create an index and move the disk, the table structure and SQL stay the same |
⚠️ Pitfall: An answer choice that begins "Logical independence = even if the external schema changes…" is wrong. What changes in logical independence is the conceptual schema, and the external schema is the side that is protected.
Flipping the six characteristics of W1 Day 3 into "if even one is missing, it is not an entity" makes judging fast.
| Condition | Case where it fails |
|---|---|
| Information needed by the business | A set unrelated to the business |
| Identified by a unique identifier | There is no way to tell instances apart |
| Two or more instances | Only one record, like company information |
| Used by business processes | No business creates, reads, updates, or deletes it |
| Contains attributes | There are no attributes to describe it |
| At least one relationship | It is not connected to any entity |
It is often shortened to "tangible/intangible," but this track (W1 Day 3) divides into three, tangible, conceptual, event, as in the textbook. What falls under intangible is conceptual and event.
| Axis | Classification | Judging question | Shopping mall example |
|---|---|---|---|
| Tangibility | Tangible | Does it have a physical form? | Customer, product, warehouse |
| Conceptual | Is it information that is defined and used without a form? | Membership grade, product category, insurance product | |
| Event | Does it occur while carrying out business? | Order, payment, delivery | |
| Time of occurrence | Fundamental (key) | Does it arise independently without other entities? | Customer, product, employee, department |
| Main | Does it arise from a fundamental entity and become the center of the business? | Order, payment | |
| Transaction | Does it arise from two or more parents? | Order item, order change history |
An attribute is the smallest unit that cannot be divided further in meaning, and it holds only one attribute value per instance (W1 Day 4).
| Axis | Classification | Judging question | Example |
|---|---|---|---|
| Characteristic | Basic | Is it an original attribute that comes directly from the business? | Product name, order quantity |
| Designed | Is it a code or serial number newly created during design? | Order status code, order item serial number | |
| Derived | Is it calculated from other attributes? | Order total amount, cumulative purchase amount | |
| Entity composition | PK | Does it identify the instance? | Order number of an order |
| FK | Did it come in through a relationship with another entity? | Customer number of an order | |
| Regular | Is it neither PK nor FK? | Order date, payment amount | |
| Can it be divided? | Simple (single) | Can it not be divided further? | Order quantity |
| Composite | Can it be split into several units of meaning? | Address (city, district, neighborhood), customer name (surname, given name) | |
| How many values? | Single-valued | Is there one per instance? | Date of birth |
| Multivalued | Can there be several? | A customer's multiple delivery addresses |
A domain is the range of values an attribute can have, and it contains the data type, size, and constraints together. For example, order date, delivery date, and payment date share one "date" domain, and in the physical model it is implemented with the column type and CHECK and NOT NULL.
| Pair | Distinction | Example |
|---|---|---|
| Existence / Action | Is it connected by existence alone, or does it arise only when some action is performed? | An employee belongs to a department / a customer places an order |
| ERD / UML | ERD does not distinguish the two. UML distinguishes them with association (solid line) and dependency (dashed line) | |
| Cardinality / Optionality | How many instances of the counterpart (1:1, 1:M, M:N) / must it participate? | Customer–order 1:M, optional on the customer side |
IE Customer ┼──────────O< Order The optionality symbols (O, |) are attached to the opposite end
Barker Customer - - - -─────< Order Optionality is a solid (mandatory) or dashed (optional) line on one's own halfO in IE is at the target-side end, while the dashed line in Barker is on the reference-side half.# (identifier), * (mandatory), and o (optional) in front of attributes.| Criterion | Pair | Distinguishing question |
|---|---|---|
| Representativeness | Primary / Secondary | Is it used to form a reference relationship with other entities? |
| Whether generated | Internal / External | Did it create itself, or was it brought in through a relationship? |
| Number of attributes | Single / Composite | Is it one attribute or two or more? |
| Whether substituted | Natural / Surrogate | Did the business make it, or was it made artificially? |
Using the EMP example from W2 Day 1 as is, EMP.EMPNO is a primary, internal, single, natural identifier, and EMP.DEPTNO is an external identifier brought in from DEPT. The national ID number in the employee entity is a secondary identifier that distinguishes rows but is not used for references.
The four properties of a primary identifier are easy to use for separating answer choices if you remember them through violation examples.
| Property | What to uphold | Violation example |
|---|---|---|
| Uniqueness | Distinguishes every instance uniquely | Choosing ENAME because names do not overlap right now |
| Minimality | Uses only as many attributes as uniqueness needs | (EMPNO, ENAME) |
| Immutability | The value does not change often | Using a value that changes on department transfer as the key |
| Existence | A value must always be present (NOT NULL) | An employee row with no employee number |
(order number, product number) is the minimum with two.| Comparison | Identifying relationship | Non-identifying relationship |
|---|---|---|
| Parent PK in the child | Part of the primary identifier | A regular attribute |
| Child without parent | Cannot exist | Can exist (when the relationship is optional) |
| IE notation | Solid line | Dashed line |
| Example | Order → order item | DEPT → EMP |
| If you insist on only one | The child's key keeps getting longer | Joins increase to obtain upper-level values |
Normal forms are decided by the shape of functional dependencies (X → Y, where X is the determinant) (W2 Day 2). Ask the questions below from the top, and the first place a "yes" appears is the violated normal form.
① Does one cell hold several values (multivalued, repeating group)? Yes → violates 1NF
② Does a regular attribute depend on only "part" of a composite primary identifier? Yes → violates 2NF (partial functional dependency)
③ Does a regular attribute depend on another regular attribute? Yes → violates 3NF (transitive functional dependency)
④ Is there a determinant that is not a candidate key? Yes → violates BCNF
All no → satisfies BCNF (for 4NF multivalued dependency and 5NF join dependency, only the names and targets)| Entity (primary identifier) | Functional dependency | Judgment |
|---|---|---|
Order item (ORDER_NO, PROD_NO) + PROD_NAME | PROD_NO → PROD_NAME | Depends on part of the key → violates 2NF, split out into product |
Combined EMP and DEPT table (EMPNO) | EMPNO → DEPTNO, DEPTNO → DNAME, LOC | Transitive dependency → violates 3NF, split out into DEPT |
Enrollment (student_id, course) + professor | (student_id, course) → professor, professor → course | In 3NF, but the determinant professor is not a candidate key → violates BCNF |
(professor, course) and (student_id, professor).Denormalization is deliberately introducing duplication into a model that has finished normalization for the sake of query performance (W2 Day 3). Its price is the risk to integrity.
| Order | Step | Content |
|---|---|---|
| ① | Investigate targets | Range-processing frequency, bulk range processing, statistical processes, number of joins |
| ② | Consider other approaches | Views, clustering, index tuning, application processing |
| ③ | Apply denormalization | Table · column · relationship |
| Branch | Technique | Distinguished by purpose |
|---|---|---|
| Table merging | 1:1, 1:M, supertype/subtype merge | Remove the join of tables always viewed together |
| Table splitting | Vertical split (by column), horizontal split (by row) | Split to match the access range |
| Table addition | Duplicate, statistics, history, partial tables | Replication, pre-aggregation, keeping history |
| Column | Duplicate column, derived column, history table column addition, column by PK, column to guard against malfunction | A duplicate column reduces joins, a derived column reduces calculation |
| Relationship | Add a duplicate relationship | Shorten the join path |
| In the model | In SQL | Source note |
|---|---|---|
| Relationship (1:M) | FK, join condition E.DEPTNO = D.DEPTNO | W2 Day 4 |
| Optional relationship (department with no employees) | To see all departments, OUTER JOIN | W2 Day 4 |
| Hierarchical data model (self-reference) | Self join, hierarchical query | W2 Day 4 |
| Mutually exclusive (arc) relationship | The join target differs depending on the discriminator column value | W2 Day 4 |
| Mandatory on both sides | Bundle the two INSERTs into one transaction and COMMIT together | W2 Day 4 |
| Nullable attribute | Operation result is NULL, comparison result is UNKNOWN | W2 Day 5 |
MGR → EMPNO is an example, and the MGR of the top-level KING is NULL.NULL is "not determined," so it differs from 0 and blank. The behaviors asked about in Subject 1 are summarized in five.
| Situation | Result | Value seen with EMP |
|---|---|---|
SAL + COMM (COMM is NULL) | NULL | The totals of BLAKE and JAMES are empty |
WHERE COMM = NULL | 0 rows with no error | NULL employees are 10 with IS NULL |
COUNT(*) / COUNT(COMM) | All rows / excluding NULL | 14 / 4 |
AVG(COMM) / AVG(NVL(COMM, 0)) | The denominators differ | 550 / 157.142857 |
| SUM, AVG when all target values are NULL | NULL (not 0) | SUM(COMM) of departments 10 and 20 |
| Comparison | Natural identifier | Surrogate identifier |
|---|---|---|
| Who made it | The business (also called the original identifier) | The designer, artificially (serial number, etc.) |
| Key shape | Tends to be composite | A single column |
| Duplicate prevention | The PK blocks it directly | Duplicates allowed unless the natural columns have a separate constraint |
| Index | One for the PK | PK + UNIQUE on the natural columns, two |
| Inheritance by children | Several columns are passed down | Only one column is passed down |
ITEM_ID PK accepted the same (1001, 'P1') row twice, while the table with the natural identifier as PK rejected it with ORA-00001.Tomorrow we will organize Subject 2, SQL Basics and Applications, in the same way.
X → Y. BCNF requires every determinant to be a candidate key.Click a choice to reveal the answer and explanation.
Question 1
Which statement about the three-level schema and data independence is correct?
Question 2
In a shopping mall model, the order item entity arises from two parents, order and product. If you classify order item by time of occurrence, it is?
Question 3
The primary identifier of the course grade entity is (student_id, course_code), and every attribute is an atomic value. When the functional dependencies are (student_id, course_code) → grade and course_code → course_name, what is the lowest normal form this entity fails to satisfy?
Question 4
Which statement about surrogate identifiers is NOT correct?
Question 5
Which statement about denormalization is correct?