Top 10 SQL Interview Question | Question With Answers | Most Asked Question| SQL Interview

  Рет қаралды 328,089

SmartSimplified

SmartSimplified

Күн бұрын

Пікірлер: 111
@soniayushmaan
@soniayushmaan 2 жыл бұрын
Hi in 06:25 you mentioned wrong salary as the highest. The highest one is 159000 but accidentally you termed 125000.
@venkateswarluguditi8461
@venkateswarluguditi8461 2 жыл бұрын
He says second highest salary..
@maheshmalekar6640
@maheshmalekar6640 2 жыл бұрын
@@venkateswarluguditi8461 Sir said in the video highest sal is 125000 and second highest is 112000 that's not correct Actually, 159000 is the highest and 125000 is the second highest.
@shontyvlog
@shontyvlog 2 жыл бұрын
Never give this ans in interview, this is not correct, ans should be like below. SELECT TOP 2 * FROM ( SELECT ROW_NUMBER () OVER (ORDER BY Salary DESC) AS RNUM1,* FROM TBL_ORDER ) AS TBL1 WHERE RNUM1 = 2
@borntoplay5848
@borntoplay5848 2 жыл бұрын
For 2nd highest salary Select * from emp where salary=(select max(salary) from emp where salary < select max(salary)from empl));
@abhishektiwari2092
@abhishektiwari2092 2 жыл бұрын
@@shontyvlog hi
@manasasahoo6485
@manasasahoo6485 2 жыл бұрын
Thank u so much for this vdo bro ❤️ from Puri, Odisha Jay Jagannath 🙏
@PatelBhaveshgo4glory
@PatelBhaveshgo4glory 2 жыл бұрын
We can get any salary(2nd - 3rd - 4th) by using a simple query. For example, If you want the second highest salary then n = 2 SELECT * FROM `employee` ORDER BY salary DESC LIMIT 1 OFFSET (n-1);
@step3roll805
@step3roll805 2 жыл бұрын
For 2nd highest salary Select* from employee where salary=(select max(salary) from student where salary
@angrezikguruji5691
@angrezikguruji5691 2 жыл бұрын
Yesh
@nileshmishra397
@nileshmishra397 2 жыл бұрын
Select* from emp where esal( select max(esal) from student where esal (select max(esal) from student) ;
@sadanandjori7952
@sadanandjori7952 2 жыл бұрын
You can use this - select e_salary from employee order by e_salary desc limit 1,1;
@mukulupadhyay4656
@mukulupadhyay4656 2 жыл бұрын
Very helpful video watched your OOPS video too thanks a lot.🙏
@MEGAMINDLIVE
@MEGAMINDLIVE 2 жыл бұрын
we can also delete an entire row of a table by using the DELETE command. so row sequence is the main difference between DELETE and TRUNCATE.
@mkbproduction
@mkbproduction 2 жыл бұрын
Along with The very major difference is rollback can't be applied on truncate And truncate is faster
@shreyash9357
@shreyash9357 2 жыл бұрын
For second max salary Select * from tblemployee where salary=(select max(e_salary) from tblemployee where e_salary
@shrutikorde3840
@shrutikorde3840 2 жыл бұрын
I like your way of teaching or guiding...... It really understandable..Thanks Sir🙂
@Kxlifts
@Kxlifts 2 жыл бұрын
Thanks sir well explained , its to useful for me
@mkbproduction
@mkbproduction 2 жыл бұрын
Select max(select salary from employee where salary< max(salary)) as 2nd_max_salary;. This is also correct na??
@awakenedsouls3206
@awakenedsouls3206 2 жыл бұрын
No ! First we will determine the inner query that will be select max salary from emp This way it will be first executed and max salary will be determined Then we will give an outer query That says Select max salary from emp where salary ( select max salary from emp ) This is the complete query as the solution In this first we determine the max salary and then we exclude it with the not equal to sign Now , in this way , if the max salary excluding the highest salary will be selected , that will be the second highest salary itself
@mkbproduction
@mkbproduction 2 жыл бұрын
@@awakenedsouls3206 thanks
@gauravgholave
@gauravgholave 2 жыл бұрын
Select max(e_salary) from employee where e_salary not in (select max(e_salary) from employee
@cseengineer2724
@cseengineer2724 2 жыл бұрын
Sir How to prepare for interview to power programmer sir
@Lifefocus-zg8ng
@Lifefocus-zg8ng 2 жыл бұрын
Thx @mridul bor keep it up,good job👍
@bhausogadade7659
@bhausogadade7659 2 жыл бұрын
Second highest salary Select max(salary) from emp where
@amankumaramar271
@amankumaramar271 2 жыл бұрын
Thank you so much sir g ❤️
@CodePressAcademy
@CodePressAcademy Жыл бұрын
Thanks a lot
@only_soulful_lyrics
@only_soulful_lyrics 2 жыл бұрын
You explained second highest salary wrong highest is 159000 and second is 125000
@cseengineer2724
@cseengineer2724 2 жыл бұрын
Any paid course available sir give me some ideas
@abhishek_j26
@abhishek_j26 2 жыл бұрын
Thanks.👌👍
@arpitatiwari3073
@arpitatiwari3073 2 жыл бұрын
Nice 😊😊
@karthikeyakagan4433
@karthikeyakagan4433 2 жыл бұрын
Select won't comes under the DML... Select comes under DQL (Data Query Language)... First prepare well before doing vedios on SQL
@mkbproduction
@mkbproduction 2 жыл бұрын
The SELECT statement is a limited form of DML statement in that it can only access data in the database. It cannot manipulate data in the database, although it can operate on the accessed data before returning the results of the query.
@ApnaRishabh
@ApnaRishabh 2 жыл бұрын
First learn the spelling of "Videos" well before commenting in any video.
@funcentral8199
@funcentral8199 2 жыл бұрын
@@ApnaRishabh💀🤣🤣
@I_am_smooth_as_butter
@I_am_smooth_as_butter 2 жыл бұрын
@@ApnaRishabh 😂😂😂😂
@rutukeshkashid5058
@rutukeshkashid5058 2 жыл бұрын
DRL NOT DQL🤣🤣
@pandu3320
@pandu3320 2 жыл бұрын
Hello sir. I have registered for Accenture Innovation Chllenge. Can you please suggest me some tips to win this challenge?
@Deepratan27
@Deepratan27 Жыл бұрын
What is natural and cross join this is also ask by interviewer
@TheBalanceLife
@TheBalanceLife Жыл бұрын
Select command does not come under DML sublanguage come under DQL sub language
@amrutapatil2251
@amrutapatil2251 2 жыл бұрын
Thank you
@vijendrabijalwan7936
@vijendrabijalwan7936 2 жыл бұрын
in case we wants to find 5th highest salary without subquery so can i find
@SouravGhosh-nm8ph
@SouravGhosh-nm8ph 2 жыл бұрын
select top 1 * from(select top 5 salary from employees order by salary desc) order by salary asc;
@NikhilKumar-yc5rt
@NikhilKumar-yc5rt 2 жыл бұрын
Nice explanation
@simranbanwait
@simranbanwait 2 жыл бұрын
thanks bhai
@sankeerthananamoju
@sankeerthananamoju 2 жыл бұрын
good one
@dark_legions2227
@dark_legions2227 2 жыл бұрын
Awesome..
@swatichauhan3260
@swatichauhan3260 2 жыл бұрын
Can i get some real scenario based questions. I want to know what type of queries are given and how to solve them
@surajashware5058
@surajashware5058 2 жыл бұрын
Telegram link not working.. brother
@piyushpatil5898
@piyushpatil5898 2 жыл бұрын
Bhaiyya Oracle Database 11G ka installation me problem aa raha hai please koi solution do na
@Vinay-lb8px
@Vinay-lb8px 2 жыл бұрын
Sir 21st i have cognizant technical interview plz make video sir
@technofreak-tl5zd
@technofreak-tl5zd Жыл бұрын
Telegram link is not working urs kindly send again
@Womenhealthchronicles
@Womenhealthchronicles 2 жыл бұрын
What type of jobs can we apply for after learning sql
@diya7502
@diya7502 2 жыл бұрын
You can go for data analytics field
@nileshmishra397
@nileshmishra397 2 жыл бұрын
U cal also learn in sql Html Basic than u can also apply in web developer for small it company
@Cricket-Adda....
@Cricket-Adda.... 2 жыл бұрын
Thank you bhai
@SmartSimplified1
@SmartSimplified1 2 жыл бұрын
Keep growing 👍
@jiteshtakkar8813
@jiteshtakkar8813 2 жыл бұрын
nice
@mahalakshmi4220
@mahalakshmi4220 2 жыл бұрын
Thank u sir❤
@agriculture.islife.6149
@agriculture.islife.6149 2 жыл бұрын
please be make sure dont go this fast its to fast unable to understand you
@Localplacesfromlocalpeople
@Localplacesfromlocalpeople 2 жыл бұрын
above questions - -Rdbms -Difference between order by and group by -pattern in a colm
@nileshmishra397
@nileshmishra397 2 жыл бұрын
If u all are question ans available from utub Or google
@sachinghutke9711
@sachinghutke9711 2 жыл бұрын
I have a scenario based question could u solve
@BTCIVArnavGaner
@BTCIVArnavGaner 2 жыл бұрын
my question here is that where cannot be used on aggregated data so how is it used here can anyone explain this?
@NeerajSingh-ns7ts
@NeerajSingh-ns7ts 2 жыл бұрын
civil
@dipankarsantra7785
@dipankarsantra7785 2 жыл бұрын
Telegram ade nahi ho raha he.
@autojagatwithvineet3053
@autojagatwithvineet3053 2 жыл бұрын
👍👍👍
@brijesh9452
@brijesh9452 2 жыл бұрын
Sir clr nhi aata h jo typ krte h?
@skmiraj6339
@skmiraj6339 2 жыл бұрын
Bhai Python ka v upload kardo
@SmartSimplified1
@SmartSimplified1 2 жыл бұрын
Sure
@skmiraj6339
@skmiraj6339 2 жыл бұрын
@@SmartSimplified1 thank you bhai
@ankushgupta8778
@ankushgupta8778 Жыл бұрын
😮😮
@v.t.s.ramthulasi1093
@v.t.s.ramthulasi1093 2 жыл бұрын
bro pls snd this question and answer pdff
@jitendrajaintwal6503
@jitendrajaintwal6503 2 жыл бұрын
Dml ka to sab aata h pr baaki ni
@hazardopop7378
@hazardopop7378 2 жыл бұрын
Tho jaake padh na
@rojalibiswal8975
@rojalibiswal8975 2 жыл бұрын
Highest salary to 159000 hay app125000 kiun bole
@Atulnavadiya
@Atulnavadiya 2 жыл бұрын
Aiveyi video bna diya lagta hai isne.
@vasantimisal3870
@vasantimisal3870 2 жыл бұрын
hi can i get pdf of these question n answers?
@Deepratan27
@Deepratan27 2 жыл бұрын
group by and DBMS तो हवा में ही उड़ा दिया
@floridan1238
@floridan1238 2 жыл бұрын
5:44 galat h
@shekharkarande9866
@shekharkarande9866 2 жыл бұрын
tjik se banaya kr vid
@Sonamkhan
@Sonamkhan 2 жыл бұрын
Hello sir, 14may ko mera interview hai. C# Dot Net K LIYE profile select hui h kya question puchenge kuch b nhi malum pls help me.
@sahilchauhan2489
@sahilchauhan2489 2 жыл бұрын
Yatharthrti mai kya
@theindiatech8461
@theindiatech8461 2 жыл бұрын
Sir python ke bhi important question per bhi video bana do 🙏please
@SmartSimplified1
@SmartSimplified1 2 жыл бұрын
kzbin.info/www/bejne/eZ3Xp6p4mb6UiLs
@AmanSharmaSem1
@AmanSharmaSem1 2 жыл бұрын
Can anybody help me to get job based on sql?
@Harsh-wz7lw
@Harsh-wz7lw Жыл бұрын
Konse state se ho?
@AmanSharmaSem1
@AmanSharmaSem1 Жыл бұрын
@@Harsh-wz7lw uttar pradesh
@Harsh-wz7lw
@Harsh-wz7lw Жыл бұрын
Apps or websites hoti h unpe apna resume daal do , mil jayegi koi na koi company
@Harsh-wz7lw
@Harsh-wz7lw Жыл бұрын
@@AmanSharmaSem1 m Chandigarh se hu agr yha ke hote to naam bta deta companies ke pr U.P se Chandigarh itni door kya job krni Vhi mil jayegi
@techxtreme7630
@techxtreme7630 2 жыл бұрын
hello sir can you help me for a query I have a 3 column in one table like C1, C2, C3 I want all column values add in only one column C1 and also replace special character as space
@abhijeetchougale3842
@abhijeetchougale3842 2 жыл бұрын
Select column 1+'-'+cloumn2+'-'+column3 as column from table
@madhavchavan7857
@madhavchavan7857 2 жыл бұрын
PLEASE CHECK QUE .5 THIS WRONG ANS
@prateeksaini7268
@prateeksaini7268 2 жыл бұрын
share the ppt man
@sannswaghmode
@sannswaghmode 2 жыл бұрын
Don't refer this video most of the concept explained in this video are wrong so don't misguide. Acquire proper knowledge before making video
@swatichauhan3260
@swatichauhan3260 2 жыл бұрын
Is someone working on sql? Plz help me
@Rahulkumar-ij6sl
@Rahulkumar-ij6sl 2 жыл бұрын
Yes i am ...you can ask me any time
@swatichauhan3260
@swatichauhan3260 2 жыл бұрын
@@Rahulkumar-ij6sl i want to know how excel n sql works together like how to bring data to sql and after formatting, how to export it
@DhanshreeTalekar-ld2tr
@DhanshreeTalekar-ld2tr Жыл бұрын
Koi job hogi to dilva do
@YesweMiddleclass
@YesweMiddleclass 2 жыл бұрын
Maximum salary galat hai
@nileshmishra397
@nileshmishra397 2 жыл бұрын
Select*from emp where esal=max(esal) from emp student where esal
@BholaG1984
@BholaG1984 2 жыл бұрын
Max salary was 159k
@venkateswarluguditi8461
@venkateswarluguditi8461 2 жыл бұрын
He says second 🥈 highest salary
@sahajbharathydrofarm4314
@sahajbharathydrofarm4314 2 жыл бұрын
Aaà
@unexploredindia199
@unexploredindia199 2 жыл бұрын
@mridul Your telegram channel link is not working
@ankitkalwar5570
@ankitkalwar5570 2 жыл бұрын
Nicely explained, thank you so much
@codewithdeepak45
@codewithdeepak45 2 жыл бұрын
thanks bhai
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
Война Семей - ВСЕ СЕРИИ, 1 сезон (серии 1-20)
7:40:31
Семейные Сериалы
Рет қаралды 1,6 МЛН
Solving SQL Interview Queries | Tricky SQL Interview Queries
37:22
The 25 SQL Questions You MUST Know for Data Analyst Interviews
32:47
KSR Datavizon
Рет қаралды 259 М.
Top 100 DBMS MCQ | Database Management System MCQ
53:23
KeyPoints Education
Рет қаралды 77 М.
Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF
28:34
Decomplexify
Рет қаралды 2,2 МЛН
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН