Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
SQL Interview Scenarios for ETL & BI Developers Part 1
Rating: 4.4 out of 5(26 ratings)
210 students

SQL Interview Scenarios for ETL & BI Developers Part 1

SQL Interview Scenarios for ETL & BI Developers
Created bySaif Shaikh
Last updated 10/2024
English

What you'll learn

  • SQL Queries related to ETL & BI Interviews Part 1

Course content

1 section24 lectures2h 19m total length
  • Columns to Rows6:39

    Convert rows to columns in SQL by pivoting with case statements or aggregation, using a practical interview scenario to transform subject rows into maths, English, and science columns.

  • Rows to Columns5:12

    This lecture shows how to turn columns into rows from a data table, identify the columns to convert, apply aggregation where needed, and verify the result via a sorted order.

  • Multiply Column Values to Rows6:19

    Apply SQL to multiply two columns and expand rows, using analytic functions to generate repeated values for ETL and BI development scenarios.

  • Concatenate Email with given group6:59

    Learn to concatenate the second and third columns into a string separated by a pipe, using a within group list aggregate and substring to handle spaces and trailing separators.

  • Read Column Value & repeat it on rows5:45

    Demonstrates repeating a column value across rows with a level-based query, using connect by level, the max of the column, and a sequence to generate multiple output rows.

  • Convert Single Column to Multiple Columns6:04

    Convert a single column into multiple columns by using an analytic function with partition and rank, then pivot rows to columns with a case when expression.

  • Display each month start and end date up to last month of the year7:34

    Generate the first day of every month and the last day of every month for a 12-month period using SQL date functions and the level function.

  • Eradicate duplicate values based on travel distance5:11

    Eradicate duplicate values by ranking city names through ascii-based comparisons and case when logic to produce a two-column, three-row result based on travel distance.

  • Display current quarter data from a given date4:23

    Learn to display current quarter data from a given date by identifying the quarter's start and end dates and returning a complete current-quarter report using date calculations.

  • Display previous quarter data from a given date6:19

    Learn how to display the previous quarter data from a given date in SQL, using quarter truncation and date arithmetic to compute the start and end dates.

  • Query to find Previous & Next Month Start and End Dates5:43

    Compute previous and next month start and end dates from a date column using add months and date functions, including the last Thursday and last day of the next month.

  • Repeat rows based on column count4:42

    Learn how to repeat rows based on a quantity column to expand output, using a level-based approach and comparing ANSI 92 join methods with older syntax.

  • Merge Statement for Insert & Update15:41

    Learn how to use the merge statement to upsert data in ETL workflows, performing insert, update, and delete in a single operation based on matching conditions between source and target.

  • Cumulative Sum of all rows3:03

    Demonstrate calculating a cumulative sum with a window function over an ordered value column, using over and order by to accumulate row totals.

  • Find employee count reporting to Manager6:53

    Use a self join on the employees table to count how many staff report to each manager, producing employee and manager names with a report count.

  • Split word into rows containing single character3:38

    Split a word into multiple rows by character using by level and substring in SQL, demonstrated on India to generate one row per character for ETL and BI interviews.

  • Columns to Rows with characters4:23

    Learn to convert columns to rows in SQL by applying a simple union all approach and a scalable generic method, handling scenarios with hundreds of columns.

  • Difference between Rank & Dense_Rank6:23

    Explore the difference between rank and dense_rank in SQL using window functions to rank salaries within departments, handle ties, and generate sorted outputs for ETL and BI workflows.

  • Find row count and display on each rows5:15

    Learn to count row occurrences and display the result for each value in a single column using join-based methods and analytic window functions in SQL for ETL and BI contexts.

  • Display Start & End dates of Previous & Next Quarter6:09

    Determine start and end dates of the previous and next quarters using the current date, constructing a SQL query with first and last day calculations for quarterly boundaries.

  • Find Cricket Match Schedule5:42

    Explore generating cricket match schedules from two-column input with SQL lead and lag window functions, creating dynamic pairings like India versus Pakistan, Pakistan versus Australia, and Australia versus India.

  • Query to show all the alphabets in Small & Capital letters3:30

    Generate all uppercase and lowercase alphabets in SQL using ASCII values and a level-based analytic function, demonstrating how to produce A–Z and a–z in query results.

  • Find Read & Write Count & Display Values4:00

    Convert read, write, and execute flags to binary values using SQL case statements; build and populate a table, apply the logic, and display the resulting four-column output.

  • Display Filenames with converting columns to rows3:58

    Learn to convert columns to rows using an unpivot technique to transform a single-row input into multiple rows and display filenames.

Requirements

  • SQL Knowledge

Description

With this course you will get an exposure to answer interviewers on SQL queries.

I have tried to collate scenarios which i faced in interviews & trying to post on this platform so that it will be helpful for others if they face similar queries while attending their interview in ETL or BI domain.


Understanding of any SQL based DB is required. Try implementing with hands-on, prepare script for source & target tables with DML for source. Write the queries and test results. Understand how these queries are written. Wishing you a great success in SQL.


With this course you will get an exposure to answer interviewers on SQL queries.

I have tried to collate scenarios which i faced in interviews & trying to post on this platform so that it will be helpful for others if they face similar queries while attending their interview in ETL or BI domain.


Understanding of any SQL based DB is required. Try implementing with hands-on, prepare script for source & target tables with DML for source. Write the queries and test results. Understand how these queries are written. Wishing you a great success in SQL.


Have a great learning and if you have any new scenario share those in Q&A.

Will work on it and upload the solution on existing course.

Who this course is for:

  • ETL & BI Developers