filmov
tv
Scenario Based SQL Question | Solving Using SCD Type 2 Concept | SQL Interview Question
![preview_player](https://i.ytimg.com/vi/51ryMCf-fvU/maxresdefault.jpg)
Показать описание
In this video we will discuss a scenario based SQL problem. I will be solving it using Analytical function. You will learn how to use Lead analytical function with partition by clause and how to deal with data ranges in SQL.
Here is the ready script:
create table billings
(
emp_name varchar(10),
bill_date date,
bill_rate int
);
delete from billings;
insert into billings values
('Sachin','01-JAN-1990',25)
,('Sehwag' ,'01-JAN-1989', 15)
,('Dhoni' ,'01-JAN-1989', 20)
,('Sachin' ,'05-Feb-1991', 30)
;
create table HoursWorked
(
emp_name varchar(20),
work_date date,
bill_hrs int
);
insert into HoursWorked values
('Sachin', '01-JUL-1990' ,3)
,('Sachin', '01-AUG-1990', 5)
,('Sehwag','01-JUL-1990', 2)
,('Sachin','01-JUL-1991', 4)
#sql #scenariobased #interview
Here is the ready script:
create table billings
(
emp_name varchar(10),
bill_date date,
bill_rate int
);
delete from billings;
insert into billings values
('Sachin','01-JAN-1990',25)
,('Sehwag' ,'01-JAN-1989', 15)
,('Dhoni' ,'01-JAN-1989', 20)
,('Sachin' ,'05-Feb-1991', 30)
;
create table HoursWorked
(
emp_name varchar(20),
work_date date,
bill_hrs int
);
insert into HoursWorked values
('Sachin', '01-JUL-1990' ,3)
,('Sachin', '01-AUG-1990', 5)
,('Sehwag','01-JUL-1990', 2)
,('Sachin','01-JUL-1991', 4)
#sql #scenariobased #interview
most asked scenario based sql Interview question & answer | no of Records of 5 types of joins
SQL Scenario based interview Question | KSR Datavizon
Top 10 SQL Interview Queries | Popular SQL Queries for SQL Interview
Complex SQL 6 | Scenario based on join, group by and having clauses | SQL Interview Question
Top 10 SQL Interview Questions on Scenario based #sql #interview
This SQL Problem I Could Not Answer in Deloitte Interview | Last Not Null Value | Data Analytics
Famous SQL Interview Question | First Name , Middle Name and Last Name of a Customer
SQL JOINS Interview Question | What does different SQL Joins return?
Stedman SQL Podcast Ep. 4- Replication
Complex SQL 3 | Scenario based Interviews Question for Product companies
Practice SQL Interview Query | Big 4 Interview Question
Top 10 SQL interview Questions and Answers | Frequently asked SQL interview questions.
Top SQL interview Questions and Answers | Most Asked SQL Questions for Job interview
Scenario Based Question | Oracle Database SQL Tricky Interview Questions
Scenario Based SQL Question | Solving Using SCD Type 2 Concept | SQL Interview Question
Top 5 Advanced SQL Interview Questions and Answers | Frequently Asked SQL interview questions
A Simple and Tricky SQL Question | Rank Only Duplicates | SQL Interview Questions
SOLVE 5 SQL QUERIES IN 5 MINUTES (PART 1) | MASTER IN SQL | SQL INTERVIEW QUESTIONS
SQL Interview Questions and answers Part 25 | SQL Scenario based Interview Question and Answer
Solving SQL Interview Query using a 'VERY IMPORTANT SQL concept'
Complex SQL 2 | find new and repeat customers | SQL Interview Questions
Most Asked SQL JOIN based Interview Question | # of Records after 4 types of JOINs
Top 10 Scenarios Based Interview Questions of SQL Server Always ON || SQL AAG Interview Questions ||
TCS SQL Real Interview BY TCS Team! TCS Interview Recording Simulation! TCS Ninja Hiring
Комментарии