SQL Interview Question Asked in INFOSYS | Mastering SQL 🔥🔥🔥 | Data Science Interview Questions

  Рет қаралды 3,984

CloudyML

CloudyML

Күн бұрын

Пікірлер: 6
@zaravind4293
@zaravind4293 2 жыл бұрын
select Id from (select weather.*,case when temp>lag(temp,1) over(order by id) then 1 else 0 end as newcol from weather) where newcolu=1; Above query also works fine
@yaswanthkumarreddyvalluru9303
@yaswanthkumarreddyvalluru9303 2 жыл бұрын
select w.id from(select id,[Date],temperature, lag(temperature) over(order by [Date]) as prevtemp from Weather) w where w.temperature>w.prevtemp CAN BE SOLVED USING LAG WINDOW FUNCTION
@vijay.s-ll1yq
@vijay.s-ll1yq 9 ай бұрын
with cte as (select *,lag(temp,1,temp) over (order by id) as compare_lag from weather) select id from cte where temp > compare_lag
@prashantsamant2730
@prashantsamant2730 2 жыл бұрын
Select id from (select * from weather case when temp > lag(temp , 1) over(order by id) then 1 else 0 end) as res where res = 1 ;
@vikasrajput226
@vikasrajput226 2 жыл бұрын
for 1 question you took aprox 15 mins.
@CloudyML
@CloudyML 2 жыл бұрын
Hi Vikas, this is for teaching purpose and we have shown 3 ways to solve this problem. That's why it took time.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Infosys SQL Interview Question
9:23
Cloud Challengers
Рет қаралды 45 М.
Solving a SQL Puzzle | Infosys SQL Interview Question
7:50
Ankit Bansal
Рет қаралды 20 М.
Infosys I Accenture I Wipro Campus Interview I Purvi Dwivedi I Arvind Singh Pemawat
31:45
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН