Giter Site home page Giter Site logo

sales-database's Introduction

IDEA EDU Course ...

Implemented in the Java SQL for Backend Developers Track of hyperskill.org's JetBrain Academy.

Project goal is to exercise SQL, as I tend to forget its syntax quicker than any other programming language. Also, translating ER-diagrams, creating triggers, views is not my usual daily work but helps me in the job still.

Project status

Project was completed on 27.08.23.

Repository Contents

Sources for all project tasks (5 stages).

Progress

22.08.23 Project started. IDEA-setup and first repo, setting up docker-compose.yml for a docker MySQL-image.

22.08.23 Stage 1 completed. Translating the given ER-diagram of six relations-connected tables into a DDL.

22.08.23 Stage 2 completed. Inserting some basic data into the tables using AFTER INSERT trigger to keep an inventory table in sync with sales. Add a clean script to be able to repeat all exercises.

23.08.23 Stage 3 completed. Create a composite index (which unfortunately does not help to solve the problem here). Then create a view to group total sales on model. Query this view.

26.08.23 Stage 4 completed. Create an employee report only on Sales Assistants, that calculates the employee's monthly sales bonus based on their share in the monthly company revenue. Quite complex query - here saved as report view - using WITH sub-selects, CASE statement and more.

27.08.23 Final Stage 5 completed. Create a model report - again saved as view - with some sales indicators as sales inventory ratio.

sales-database's People

Contributors

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