Transform and Analyze Data with Microsoft Fabric
Luis Silva
Solution Architect - Data & AI


publisher and genre.
publisher and genre now appear only once.publisher and genre in the Games table take up less space
OLTP transactional systems
Fact tables



-- [dim_videogames]: Videogames table
-- [dim_genres]: Genres table
-- [dim_publishers]: Publishers table
SELECT game_id, title, gen.genre, pub.publisher
FROM dim_videogames_norm vidg
JOIN dim_genres gen
ON vidg.genre_id = gen.genre_id
JOIN dim_publishers pub
ON vidg.publisher_id = pub.publisher_id
# [videogamesDF]: Videogames DataFrame
# [genresDF]: Genres DataFrame
# [publishersDF]: Publishers DataFrame
videogames1DF = videogamesDF.join(genresDF, ["genre_id"])
videogamesdenormDF = videogames1DF.join(publishersDF, ["publisher_id"])
videogamesdenormDF.select("game_id", "title", "genre_id", "publisher_id").show()

Transform and Analyze Data with Microsoft Fabric