How andrerd1026/ss2_202010816 works
1. Repository shape
- This repo is not a single application; it contains two practice exercises and a larger BI/data-warehouse project.
- The main architectural boundary is between analytical/data-processing work and reporting/visualization deliverables.
2. Practica 1: database querying exercise
- Practica1/ centers on a dataset about tsunamis: historial_tsumamis.csv.
- It includes a Python script (Practica1.py) plus paired SQL and text query artifacts:
- SQL/Aplicacion: model lifecycle scripts (Crear_modelo, Cargar_informacion, Extraer_informacion, Borrar_modelo).
- SQL/Consultas and Consultas/Consulta_*.txt: ten queries, likely the SQL logic and its documented results or descriptions.
- Architecturally, this is a local data-processing / relational querying workflow around one CSV source and one database model.
3. Practica 2: notebook-based analysis
- Practica2/Practica2.ipynb with datos.csv is a separate exploratory analysis / notebook workflow.
- There is no visible backend service or deployment target; the notebook is the main execution boundary, with the CSV as its input.
4. Proyecto: overall intent
- Proyecto/ is a business intelligence solution split into two phases:
- Fase 1: data ingestion and warehouse foundation.
- Fase 2: analytical model, dashboards, and reports.
- The structure strongly suggests a Microsoft stack built with SSIS / SQL Server / SSAS / SSRS / Power BI.
5. Fase 1: source ingestion and warehouse creation
- ArchivosEntradaSG/ contains the operational input files:
- .comp files for compras and .vent files for ventas.
- Scripts/ contains SQL for:
- Base1.sql, Base2.sql: base/source databases.
- DataWarehouse.sql: warehouse schema.
- ProyectoFase1/ProyectoFase1/Package.dtsx indicates an SSIS package used to move data from files into the database layer.
- This phase is the ETL boundary: flat files → database staging/source → data warehouse.
6. Fase 1 model documentation
- Modelo/ModeloDataWarehouse.pdf and Documentacion/ show that the warehouse structure was designed and documented explicitly.
- This is important for diagramming because the warehouse is not just code; it is a modeled analytical store with documented schema assumptions.
7. Fase 2: analytical semantic layer
- ProyectoFase2/ contains .dim, .cube, .dsv, and .partitions files, which points to an SSAS multidimensional model.
- There are paired subject areas for Compra and Venta, each with dimensions such as:
- Fecha, Producto, Sucursal, Geografia, Departamento, Categoria
- Shared dimensions also exist:
- Cliente, Proveedor, Vendedor
- The architecture here is a classic dimension/fact analytical layer built on top of the warehouse.
8. Data source views and cube partitions
- Vista_Compra.dsv, Vista_Venta.dsv, and ProyectoFase2.dsv define the logical source layer used by the cubes.
- Cubo_Compra.cube and Cubo_Venta.cube with .partitions indicate the analytical data is split into cube partitions, likely for performance and manageability.
- For a diagram, this is the layer between the relational warehouse and the BI consumers.
9. BI dashboards
- ProyectoFase2_BI/ contains two Power BI files:
- Dashboard_Compra.pbix
- Dashboard_Venta.pbix
- These are the visual consumption layer for business users, likely reading from the warehouse/semantic model rather than raw files.
10. Reporting Services layer
- ProyectoFase2_RS/ contains multiple .rdl report definitions for both compra and venta.
- This is a separate reporting delivery channel from Power BI, meaning the project supports both:
- interactive dashboards
- formal paginated reports
- In the architecture, RS sits on the same analytical data foundation but serves a different presentation use case.
11. Build/deployment artifacts
- bin, obj, .sln, .dtproj, .dwproj, .rptproj, .database, and related generated files show this repo is built through Visual Studio project systems rather than a general-purpose runtime.
- Deployment artifacts like .ispac, .asdatabase, and .configsettings confirm packaged deployment of ETL/SSAS components.
12. Main end-to-end flow
- The most important data path in the repo is:
- flat files in Fase 1 → ETL package → SQL base/warehouse → SSAS dimensions/cubes → Power BI dashboards and SSRS reports
- The earlier practice folders are isolated exercises and do not appear to feed the main project.
13. How to draw the architecture
- Use three clearly separated zones:
- Exercises: Practica1 and Practica2, each self-contained.
- Warehouse pipeline: input files, SQL scripts, SSIS package, warehouse database.
- Analytics/presentation: SSAS cubes/dimensions, Power BI, SSRS.
- The dominant boundary is between data ingestion/storage and analytical consumption.
Main entry points: ProyectoFase1.database Data Warehouse · Cubo_Compra.cube Cubes · historial_tsumamis.csv Tsunami CSV · Crear_modelo.sql DB Lifecycle
Components 17
Exercises
Self-contained practice assignments
- Tsunami CSV · Local dataset for Practica 1
Practica1/historial_tsumamis.csv - Query Script · Main procedural exercise driver
Practica1/Practica1.py - DB Lifecycle · Create, load, extract, and drop model scripts
Practica1/SQL/Aplicacion/Crear_modelo.sql - SQL Queries · Ten relational query definitions
Practica1/SQL/Consultas/CONSULTA1.sql - Query Notes · Documented query results and explanations
Practica1/Consultas/Consulta_1.txt - Analysis CSV · Input data for notebook analysis
Practica2/datos.csv - Notebook · Interactive exploratory analysis boundary
Practica2/Practica2.ipynb
Warehouse pipeline
ETL and relational foundation for the main project
- Input Files · Operational compra and venta files
Proyecto/Fase1/ArchivosEntradaSG/SGFood01.comp - ETL Package · Moves flat files into the database layer
Proyecto/Fase1/ProyectoFase1/ProyectoFase1/Package.dtsx - SQL Scripts · Source and warehouse schema creation
Proyecto/Fase1/Scripts/DataWarehouse.sql - Data Warehouse · Modeled analytical storage layer
Proyecto/Fase1/ProyectoFase1/ProyectoFase1/ProyectoFase1.database - DW Model · Documented warehouse model and assumptions
Proyecto/Fase1/Modelo/ModeloDataWarehouse.pdf
Analytics and delivery
Semantic model and end-user reporting
- Source Views · Logical relational views for cube builds
Proyecto/Fase2/ProyectoFase2/ProyectoFase2/ProyectoFase2.dsv - Dimensions · Compra, venta, and shared analytical dimensions
Proyecto/Fase2/ProyectoFase2/ProyectoFase2/Fecha_Compra.dim - Cubes · Compra and venta multidimensional cubes
Proyecto/Fase2/ProyectoFase2/ProyectoFase2/Cubo_Compra.cube - Power BI · Interactive business dashboards
Proyecto/Fase2/ProyectoFase2_BI/Dashboard_Compra.pbix - SSRS Reports · Formal report delivery for compra and venta
Proyecto/Fase2/ProyectoFase2_RS/ProyectoFase2_RS/Compra_Reporte1.rdl
Connections 15
- Tsunami CSV → Query Script: analyzed by · The tsunami dataset is processed in the Python exercise
- Tsunami CSV → DB Lifecycle: loaded by · Database lifecycle scripts ingest the local source
- DB Lifecycle → SQL Queries: enables · Created model is queried through the exercise SQL set
- SQL Queries → Query Notes: documented in · Query outputs and notes are paired
- Analysis CSV → Notebook: explored in · Notebook performs the analysis on the CSV
- Input Files → ETL Package: ingested by · Operational files feed the SSIS package
- SQL Scripts → Data Warehouse: creates · SQL scripts define the warehouse and source databases
- ETL Package → Data Warehouse: loads · ETL package populates the warehouse layer
- DW Model → Data Warehouse: documents · The warehouse design is explicitly modeled and documented
- Data Warehouse → Source Views: exposed through · Warehouse tables are surfaced as logical source views
- Source Views → Dimensions: shapes · Dimensions are built from the logical source layer
- Dimensions → Cubes: feeds · Cube structures are built from dimensional model assets
- Data Warehouse → Cubes: underlies · The warehouse is the relational foundation for the cubes
- Cubes → Power BI: consumed by · Power BI dashboards present the analytical results
- Cubes → SSRS Reports: reported by · SSRS reports read from the same analytical foundation