Posts

DBT Sources, Seeds & Analyses | Data Build Tool Demo with Real World Examples

############  seeds\salestargets.csv  ############  StoreID,SalesTarget 1876,260000 1396,290000 1146,305000 1107,345000 1384,350000 1155,300000 1913,300000 1882,345000 1289,300000 1005,375000 ############  models\storeperformance.sql  ###########  SELECT     OS . StoreID ,     SUM ( OFACT . Revenue ) AS ActualSales ,     SUM ( ST . SalesTarget ) AS TargetSales FROM     {{ ref ('orders_stg') }} OS JOIN     {{ ref ('orders_fact') }} OFACT ON OS . OrderID = OFACT . OrderID JOIN     {{ ref (' salestargets ') }} ST ON ST . StoreID = OS . StoreID GROUP BY 1 ############   analyses\StoreRevenue.sql  ############  SELECT     OS . StoreID ,     SUM ( OFACT . Revenue ) AS TotalRevenue FROM     {{ ref ('orders_stg') }} OS JOIN     {{ ref ('orders_fact') }} OFACT ON OS . OrderID = OFACT . OrderID GROUP BY 1 ############   mod...

SNOWFLAKE TABLES HANDS-ON LAB

------------------------------------------------------------------------------------------------------- --SNOWFLAKE TABLES HANDS-ON LAB  (ALL COMMANDS ARE AVAILABLE IN THE LINK PROVIDED INT HE DESCRIPTION)-- ------------------------------------------------------------------------------------------------------- -- SET THE ROLE & WAREHOUSE USE ROLE ACCOUNTADMIN ; USE WAREHOUSE COMPUTE_WH ; -- CREATE & USE DATABASE AND SCHEMAS CREATE DATABASE IF NOT EXISTS SLEEK_OMS ; CREATE SCHEMA IF NOT EXISTS SLEEK_OMS . L1_LANDING ; USE DATABASE SLEEK_OMS ; USE SCHEMA L1_LANDING ; -- CREATE PERMANENT TABLE CREATE TABLE EMPLOYEE_PER (   ID INT ,   NAME STRING ,   AGE INT ,   SALARY DECIMAL (10, 2) ); -- CREATE TEMPORARY TABLE CREATE TEMPORARY TABLE EMPLOYEE_TMP (   ID INT ,   NAME STRING ,   AGE INT ,   SALARY DECIMAL (10, 2) ); -- CREATE TRANSIENT TABLE CREATE TRANSIENT TABLE EMPLOYEE_TRN (   ID INT ,   NA...

SNOWFLAKE STAGES HANDS-ON -- DATA LOADING AND UNLOADING LAB

---------------------------------------------------------------------------------- -- SNOWFLAKE STAGES HANDS-ON   -- DATA LOADING AND UNLOADING LAB   -- ----------------------------------------------------------------------------      --- ---> set the Role use role ACCOUNTADMIN ; ---> set the Warehouse use warehouse COMPUTE_WH ; ---> create Database and Schemas create database SLEEK_OMS ; create schema L1_LANDING ; ---> Use Database and Schemas use database SLEEK_OMS ; use schema L1_LANDING ; ---> Create Tables create table if not exists DATES_DIM ( date date , day varchar ( 3 ), month varchar ( 10 ), year varchar ( 4 ), quarter int null , dayofweek varchar ( 10 ), weekofyear int ); create table if not exists CUSTOMERS_DIM ( customerid varchar ( 10 ), firstname varchar ( 50 ), lastname varchar ( 50 ), email varchar ( 100 ), phone varchar ( 100 ), address varchar ( 100 ), city varchar ( 50 ), sta...

Snowflake overview and its unique Architecture

  Hello Data Pros, Welcome to our exciting new learning series focused on Snowflake! In this blog, we'll provide an overview of Snowflake, and break down its unique architecture! Let’s dive right  in, and  explore the product that has revolutionized the way organizations manage their data!   So  what exactly is Snowflake! and why is there so much hype surrounding it!   Well, I would define Snowflake as a cloud-based data platform, offered as a convenient Software as a Service solution.   Each component of this definition holds significant importance!   Let's begin with the cloud-based aspect. Many database systems available today were initially created for on-premises applications, and subsequently altered for cloud environments! On the other hand, Snowflake was born in the cloud! this inherent cloud-native aspect, enables Snowflake to seamlessly integrate with a wide array of other cloud services.   Next, let's dig into the concept of a data...

About us

Welcome to SleekData, the ultimate hub for all things data! Whether you're a data enthusiast, analyst, engineer, scientist or aspiring data professional, you've come to the perfect place. On this channel, we dive deep into the world of data technologies, helping you unlock insights and make informed decisions. We strongly believe that learning should be simple, free, and designed to save your valuable time. And that's exactly why we've started this new initiative on a mission to make in-demand high paying data skills accessible to everyone. If you could share our video/channel with your friends, we would be so grateful! Join us as we explore the power of Azure, AWS, Bigdata, dbt (data build tool), Snowflake, Databricks, Terraform, Power BI, and more. So, if you're ready to level up your data skills and unleash the full potential of your data stack, hit that subscribe button and ring the notification bell. Let's embark on this exciting learning adventure together...

Apache Airflow Taskflow API | Airflow Decorators

  Hello Data Pros, welcome back to another episode of our Apache Airflow series! Today,  we're  taking a deep dive into the world of Task flow API!   The Task flow API was introduced to Airflow, starting from version 2.0, aiming to simplify the  dag  authoring experience by significantly reducing the number of code lines needed by developers! this also makes the code more modular, understandable and easily maintainable!   The  Taskflow  API was built based on the concept of Python decorators!  So  to understand  Taskflow  API, you first need to know the basics of decorators.   Think of a decorator as a special function that takes another function as its input and returns a modified version of that original function.   It's  like wrapping a gift: the decorator adds extra features to the original function.   Decorator is applied using the @ symbol, above a function definition.   In our case...