All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Challenges of Representing Hierarchical Movie Database Structures in SQL

By

todsacerdoti

8mo ago· 8 min readenInsight

Summary

The article discusses the challenges of representing hierarchical data from movie databases in SQL relational structures. It explains that movie data (directors, genres, actors, characters) has inherent hierarchical relationships that don't fit well into flat relational tables. The article highlights how different database pages organize the same data in different hierarchical orders (movie→actors vs actor→movies), making direct hierarchical storage problematic for SQL databases.

Key quotes

· 4 pulled
The data on the page is presented in a hierarchical structure
You can't sensibly fit all of this into a single flat structure like a relation
The order of the hierarchy isn't the same on both pages
So you can't just directly store the hierarchy in your database
Snippet from the RSS feed
Here are two pages from the internet movie database:

You might also wanna read