Git Product home page Git Product logo

dvd-rental-star-schema's Introduction

DVD Rental Star Schema

This project converts a DVD rental relational database schema to a star schema using SQL. The star schema is a data model that is optimized for data warehousing and business intelligence. It is an effective way to represent complex data relationships in a more intuitive and easily readable format.

Tables

The star schema has four dimension tables and one fact table.

Dimension Tables

  1. DimDate: This table holds information about the date of each transaction. It contains the date key, date, year, quarter, month, day, week, and information on whether the date falls on a weekend.
  2. DimCustomer: This table contains information about each customer. It includes the customer key, customer ID, first and last name, email, address, district, city, country, postal code, phone, and information on whether the customer is active.
  3. DimFilm: This table holds information about each film. It includes the film key, film ID, title, description, release year, language, original language, rental duration, length, rating, and special features.
  4. DimStore: This table contains information about each store. It includes the store key, store ID, address, district, city, country, postal code, manager's first and last name, and the start and end dates of the store's operations.

Data Insertion

The data is inserted into the tables using the SQL code provided in the project. The data is extracted from the relational database tables and transformed into the star schema tables. The data is then loaded into the star schema tables using the INSERT statement.

Conclusion

The star schema provides a more intuitive and effective way to represent complex data relationships. By converting the DVD rental relational database schema to a star schema, it becomes easier to understand the relationships between the data and perform analysis. This project demonstrates how to create a star schema using SQL and insert data into the tables.

dvd-rental-star-schema's People

Contributors

kishlayjeet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.