Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT Security DownloadsGitHub Release: ollama/ollama v0.34.4-rc0 (23.09.2026)(23.09.2026 um 02:53 Uhr)
Sichere ProgrammierungMy fact-checker said CONFIRMED about a group that doesn't exist(23.09.2026 um 02:13 Uhr)
Sichere ProgrammierungZero-Friction Payment Architectures for Global Scalability(23.09.2026 um 02:20 Uhr)
IT Security DownloadsGitHub Release: ollama/ollama v0.34.4-rc0 (23.09.2026)(23.09.2026 um 02:53 Uhr)
Sichere ProgrammierungMy fact-checker said CONFIRMED about a group that doesn't exist(23.09.2026 um 02:13 Uhr)
Sichere ProgrammierungZero-Friction Payment Architectures for Global Scalability(23.09.2026 um 02:20 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Database Normalization in Livesql

Normalization is one of the most important concepts in database design. In this blog, we’ll walk through normalizing a student-course-instructor dataset step by step — from 1NF to 3NF — using SQL CREATE TABLE and INSERT INTO state…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Normalization is one of the most important concepts in database design. In this blog, we’ll walk through normalizing a student-course-instructor dataset step by step — from 1NF to 3NF — using SQL CREATE TABLE and INSERT INTO statements.



Identify Anomalies

Insertion anomaly:

Can’t insert a new course unless a student enrolls.



Update anomaly:

If Dr. Kumar’s phone number changes, we must update multiple rows.



Deletion anomaly:

If student S02 drops the course, we lose info about the DBMS course entirely.



Convert to 1NF (First Normal Form)

Remove repeating groups, ensure atomic values.



Creation of table



Insertion of data



Output



Convert to 2NF (Second Normal Form)



Remove partial dependency (non-key attributes should depend on the whole key).



Create separate tables for Students, Courses, Instructors, Studentcourses.



Create table for Students





Insert values into the table



Output



Create table for Courses





Insertion of values





Output





Create table for Instructors





Insertion of values





Output





Create table for Studentcourses





Insertion of values





Output





Convert to 3NF (Third Normal Form)

Remove transitive dependency (non-key attributes shouldn’t depend on other non-keys).



👉 In our case, the InstructorPhone depends on Instructor, not directly on Course.

So we already separated Instructors, which makes this 3NF compliant.



Final tables in 3NF:




  • Students(StudentID, StudentName)

  • Instructors(Instructor, InstructorPhone)

  • Courses(CourseID, CourseName, Instructor)

  • StudentCourses(StudentID, CourseID)



Query Using JOINs





Simple Breakdown



By breaking down our initial table step by step:




  • 1NF → Atomic values

  • 2NF → Remove partial dependencies

  • 3NF → Remove transitive dependencies



We achieved a clean, normalized schema that eliminates anomalies and improves consistency.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Database Normalization in Livesql

Thematisch verwandte Begriffe: Database, Normalization, Livesql · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-17636 | IBM Financial Transaction Manager (FTM) for RedHat OpenShift could allow…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick