Skip to content

SQL implementation and schema design of a relational database for an e-commerce platform, including an ER diagram and five analytical reporting queries.

Notifications You must be signed in to change notification settings

JandoMario/UNI-Relational-Database-Design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Relational-Database-Design

SQL implementation and schema design of a relational database for an e-commerce platform, including an ER diagram and five analytical reporting queries.

EN: In this project, we designed a database system for an e-commerce platform. Our primary goal was to create a logical structure that would reliably record data about orders, products, and customers.

We started with a visual design of an ER Diagram describing the database entities and their cardinality. We then created Flowcharts that describe the main processes of the system. We implemented the entire schema in SQL and filled it with test data.

After implementation, we created a series of queries showing exemplary database filtering options.

  1. Customer Financial History: The query summarizes the customer's financial history, including the total amount spent and the number of orders.
  2. Customer Profile: The query combines basic information about the customer with their complete shipping and billing address.
  3. Product Popularity: The query determines the popularity of products by finding the total number of units sold for each item.
  4. Supplier Profile: The query will list the supplier's contact information for each product.
  5. Financial Summary: This query calculates the total profit and number of orders for a defined time period.

SK: V rámci projektu sme navrhli databázový systém pre elektronický obchod. Naším primárnym cieľom bolo vytvoriť logickú štruktúru, ktorá by spoľahlivo evidovala dáta o objednávkach, produktoch a zákazníkoch.

Začali sme vizuálnym návrhom schémy (ER Diagram) popisujúcim entity databázy a ich kardinalitu. Následne sme vytvorili Vývojové diagramy, ktoré popisujú hlavné procesy systému. Celú schému sme implementovali v jazyku SQL a naplnili testovacími údajmi.

Po implementácii sme vytvorili sériu dotazov, ukazujúce príkladné možnosti filtrovania databáze.

  1. Finančná história zákazníka: Dotaz zhŕňa finančnú históriu zákazníka, vrátane celkovej utratenej sumy a počtu objednávok.
  2. Profil zákazníka: Dotaz spája základné informácie o zákazníkovi s jeho kompletnou dodacou a fakturačnou adresou.
  3. Popularita produktov: Dotaz určuje popularitu produktov zistením celkového počtu predaných kusov pre každú položku.
  4. Profil dodávateľa: Dotaz vypíše kontaktné údaje dodávateľa ku každému produktu.
  5. Finančné Zhrnutie: Tento dotaz vypočíta celkový zisk a počet objednávok za definované časové obdobie.

About

SQL implementation and schema design of a relational database for an e-commerce platform, including an ER diagram and five analytical reporting queries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published