Database Fundamentals Flashcards

(50 cards)

1
Q
  1. Main difference between primary key and foreign key? (Options: Foreign keys faster; Primary more important; PK can be NULL; PK uniquely identify records, FK reference PKs)
A

Primary keys uniquely identify records in their own table; foreign keys reference primary keys in other tables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. Correct schema development order? (Options: Physical→Conceptual→Logical; Physical→Logical→Conceptual; Conceptual→Logical→Physical; Logical→Conceptual→Physical)
A

Conceptual → Logical → Physical

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. Cardinality represents? (Options: Numerical relationship; Size; Data type; Speed)
A

Numerical relationship between entities

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. Students & Courses relationship? (Options: None; One-to-many; Many-to-many; One-to-one)
A

Many-to-many

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. How many primary keys per table? (Options: Unlimited; Zero; Two; One)
A

One

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. Social media relational limitation? (Options: Rigid schema; Lack security; Cannot create relationships; Poor support)
A

Rigid schema and unstructured data handling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. Relationship needing junction table? (Options: Many-to-many; One-to-one; All; One-to-many)
A

Many-to-many

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. Eliminates transitive dependencies? (Options: 2NF; Cannot eliminate; 3NF; 1NF)
A

Third Normal Form (3NF)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. Overall logical structure without implementation? (Options: Physical; Implementation; Logical; Conceptual)
A

Conceptual schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. PublisherID in Books table? (Options: Primary; Candidate; Foreign; Composite)
A

Foreign key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. Diamond in ERD represents? (Options: Attribute; Entity; Relationship; Primary key)
A

Relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. Attribute is? (Options: Relationship; Key; Table; Characteristic/property)
A

Characteristic or property of an entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. Email data type? (Options: BOOLEAN; DATE; INT; VARCHAR)
A

VARCHAR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  1. Partial-key dependency? (Options: No PK; Missing FK; Non-key depends on part of composite PK; Incomplete PK)
A

Non-key attribute depends on part of a composite primary key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  1. Entity? (Options: Distinct object; Query; Column; Relationship)
A

Distinct object or concept about which data is stored

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  1. Concatenated key similar to? (Options: Composite; Foreign; Candidate; Primary)
A

Composite key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q
  1. Denormalization? (Options: Always error; Intentional redundancy; Remove normal forms; No use)
A

Intentionally introducing redundancy to improve query performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q
  1. Multiple values in one cell violates? (Options: Atomicity 1NF; Integrity; Referential integrity; Functional dependency)
A

Atomicity (1NF)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q
  1. Relational DB limitation? (Options: Unstructured data difficulty; Cannot create relationships; No security; Cannot store structured)
A

Difficulty handling unstructured data with unpredictable formats

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q
  1. Best primary key in Students? (Options: Name; StudentID; GradeLevel; Email)
A

StudentID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q
  1. Eliminates partial-key dependencies? (Options: 2NF; 1NF; 3NF; Cannot eliminate)
A

Second Normal Form (2NF)

22
Q
  1. VARCHAR vs TEXT? (Options: VARCHAR max length; TEXT faster; No difference; VARCHAR numbers only)
A

VARCHAR has a specified maximum length; TEXT does not have strict length limits

23
Q
  1. Atomic values required by? (Options: 4NF; 3NF; 1NF; 2NF)
A

First Normal Form (1NF)

24
Q
  1. Country–Capital relationship? (Options: Many-to-many; One-to-one; None; One-to-many)
25
25. B-tree index & SSD specified in? (Options: Physical; Logical; Conceptual; Abstract)
Physical schema
26
26. Reduced redundancy means? (Options: Fewer users; Less security; Multiple backups; Minimize repetition)
Minimizing unnecessary repetition of data
27
27. Student–ID card relationship? (Options: One-to-one; Many-to-one; Many-to-many; One-to-many)
One-to-one
28
28. Teacher teaches multiple courses? (Options: Many-to-one; One-to-one; One-to-many; Many-to-many)
One-to-many
29
29. Modality indicates? (Options: Data type; # tables; Required/optional; Speed)
Whether a relationship is required (mandatory) or optional
30
30. Data type for $19.99? (Options: BOOLEAN; VARCHAR; DECIMAL; INT)
DECIMAL
31
31. Graduated yes/no data type? (Options: BOOLEAN; VARCHAR; DATE; INT)
BOOLEAN
32
32. Age data type? (Options: INT; BOOLEAN; VARCHAR; TEXT)
INT
33
33. NOT valid primary key? (Options: GradeLevel; ISBN; Email unique; StudentID)
GradeLevel
34
34. Foreign key definition? (Options: References PK; Second important; Rarely used; From another DB)
A column that references the primary key of another table
35
35. One-to-many FK placement? (Options: Junction; Customers; Orders; Both)
In the Orders table
36
36. Ovals in ERD? (Options: Entities; Relationships; Tables; Attributes)
Attributes
37
37. Authors & Books structure? (Options: Authors only; Authors, Books, Junction; Authors & Books; Books only)
Authors, Books, and AuthorBooks junction table
38
38. StudentID→Zip→City dependency? (Options: Partial-key; Transitive; None; Direct)
Transitive dependency
39
39. Multiple users without conflict benefit? (Options: Concurrency control; Scalability; Support; Integrity)
Concurrency control
40
40. Transitive dependency occurs when? (Options: Non-key depends on non-key; Too many columns; PK depends on FK; FK depends on PK)
A non-key attribute depends on another non-key attribute
41
41. Logical schema excludes? (Options: Storage locations/indexes; Relationships; Column names/types; Table names)
Specific storage locations and DBMS-specific indexes
42
42. TRUE about primary keys? (Options: Duplicates allowed; NULL allowed; Must uniquely identify; Multiple PKs allowed)
Primary keys must uniquely identify each record
43
43. FlightNumber + Date key? (Options: Composite; Primary; Secondary; Foreign)
Composite key
44
44. Valid prescription references demonstrate? (Options: Scalability; Integrity; Support; Reduced redundancy)
Data integrity
45
45. Goal of normalization? (Options: Eliminate relationships; Reduce redundancy & improve integrity; Slower queries; Increase redundancy)
To reduce data redundancy and improve integrity
46
46. Denormalization appropriate when? (Options: Frequent updates; Banking system; Never; Read-intensive analytics)
In a read-intensive analytics system with complex multi-table joins
47
47. Purpose of Enrollments table? (Options: Demographics; Replace Students; Course descriptions; Create M:M relationship)
To create a many-to-many relationship between Students and Courses
48
48. Primary purpose of primary key? (Options: Uniquely identify record; Store important data; Create relationships; Sort alphabetically)
To uniquely identify each record in the table
49
49. Purpose of ERD? (Options: Visualize entities; Look professional; Slow development; Not useful)
To visualize entities, attributes, and relationships before implementation
50
50. Entity symbol in ERD? (Options: Triangle; Rectangle; Diamond; Circle/Oval)
Rectangle