Code Monkey home page Code Monkey logo

tonirose92 / postgresql-data-integration-project Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 142 KB

The business report aims to determine the highest grossing postal codes within districts each quarter, which can be used by stakeholders to identify areas for opening new stores or stores that need to be reviewed for closure. The report involves data extraction, table creation, custom transformation, and trigger development using SQL.

postgresql

postgresql-data-integration-project's Introduction

PostgreSQL Data Integration Project

PostgresSQL project for WGU.

Project Description/Purpose

The purpose of this project is to create a data integration pipeline using PostgreSQL to help a hypothetical company determine the highest grossing postal code per quarter. By analyzing the revenue data, the company can make informed decisions about where to launch new stores.

Database Schema Design

The database consists of two tables:

  • sales_detailed2: contains detailed information about each rental transaction, including rental id, postal code, district, rental date, and sales amount.
  • sales_summary2: summarizes the rental transactions by postal code and quarter, including the total number of rentals and total sales amount.

PostgreSQL Code

The PostgreSQL code used in this project consists of six parts: creating the tables, extracting data and inserting it into the tables, creating a function to summarize the data, creating a trigger to refresh the summary table automatically, creating a procedure to refresh the detailed table, and executing the procedure to refresh the detailed and summary tables.

postgresql-data-integration-project's People

Contributors

tonirose92 avatar

Watchers

 avatar  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.