2nd Highest Salary || Nth Highest Salary || LIMIT keyword in SQL - Part 4

  Рет қаралды 33,698

Naveen AutomationLabs

Naveen AutomationLabs

5 жыл бұрын

In this video, we will learn about how to find out 2nd highest salary and how to write a generic query to find out the nth highest salary from a table.
Learn:
-What is Max() function
-What is LIMIT Keyword
-How to find out 2nd highest salary using inner query and Max() function
-How to find out nth highest salary using LIMIT keyword
--What is TOP and ROWNUM in SQL.
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
kzfaq.info%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/COJqZUPB02rRd8w...
WebServices API Automation Tutorials:
vimeo.com/ondemand/webservice... Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
kzfaq.info%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/COJqZUPB02r5sB7...
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautomationlabs.com/p...
API Course: www.naveenautomationlabs.com/p... ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautomationlabs.com/p...
API Course: www.naveenautomationlabs.com/p...
-------------------------------
✔️SOCIAL NETWORKS
Facebook: / naveenqtpexpert
Twitter: / naveenkhunteta
Blog: www.naveenautomationlabs.com
--------------------------------
Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/naveenkhunteta
Google Pay: naveenanimation20@gmail.com
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة

Пікірлер: 22
@kavyahc2205
@kavyahc2205 5 жыл бұрын
Thank you...Very nice explanation.... Very useful... I have asked about this fetching highest column in my recent interview...
@sristipattar7651
@sristipattar7651 5 жыл бұрын
👍💐Informative video.
@arunpondhe7949
@arunpondhe7949 5 жыл бұрын
superb Explanation Thank You for guidance
@KrishnaPrasad-id1mp
@KrishnaPrasad-id1mp 4 жыл бұрын
Hi Naveen, Thanks for these videos. Kindly upload Foreign Key Constraint, Joins videos also.
@pradeepbisht7346
@pradeepbisht7346 5 жыл бұрын
thx naveen@@ plz make some interview question for ma nual testing@@
@meenup7232
@meenup7232 5 жыл бұрын
Hi Naveen, Thank you for such a nice video. just wanted to know how to write LIMIT command for second last salary for employee if we dont know the total number of rows .
@gayatriganyarpwar2090
@gayatriganyarpwar2090 5 жыл бұрын
Very nice and informative video. Could you please share video on joins. It will be of great help.
@hitiknegi6808
@hitiknegi6808 3 жыл бұрын
awesome :-)
@rekhachawla459
@rekhachawla459 4 жыл бұрын
Hello sir, i saw your SQL and automation videos they are really useful.sir i want you to make some videos on joins and other SQL queries that are asked in interviews
@naveenautomationlabs
@naveenautomationlabs 4 жыл бұрын
Sure I'll release them very soon.
@push_freebird6693
@push_freebird6693 Жыл бұрын
very nice vedio very helpful need joins vedio too!!!
@jatinpatel7443
@jatinpatel7443 3 жыл бұрын
Hi Naveen, you are doing amazing videos for all series . thank you for sharing you knowledge . how can i get this SQL note ?
@nalinaksheepanda1596
@nalinaksheepanda1596 5 жыл бұрын
I think, LIMIT is only supported for MySQL, I tried in Oracle 11g, it gives me error. In Oracle we can write following query to find nth salary, By Using function DENSE_RANK() : select * from ( select salary ,dense_rank() over (order by salary desc) ranking from employees ) where ranking = n ; OR By Using Co-related Subquery : select distinct salary from employees a where n = (select count(distinct(salary)) from employees b where b.salary >= a.salary) order by a.salary desc;
@04mamatha
@04mamatha 3 жыл бұрын
Hi naveen... Can u pls help me with this query.. Display the department name and total no of employees in each department...
@nagrajullasgokarnkar6366
@nagrajullasgokarnkar6366 5 жыл бұрын
Sir please make video on python automation
@jatinpatel7443
@jatinpatel7443 3 жыл бұрын
And one more question whenever you write "varchar(225)" what is meaning of (225)? is it limit of numbers or characters ?
@phanindra76
@phanindra76 3 жыл бұрын
it means size of characters,if we specify varchar(3) ,it means i can store size of 3 characters. eg : abi,ram, pop etc
@Muthati
@Muthati 3 жыл бұрын
Hi Naveen. I think your query will give the wrong result.if we have duplicate salary in the table
@harshit5698
@harshit5698 4 жыл бұрын
limit 3-1, 1; how it gives 3rd highest salary, 3-1 = 2 it should give 2nd highest salary. kindly clear my doubt naveen sir
@John12685
@John12685 3 жыл бұрын
Harshit do u know what is '1' doin here after , ?
@pranavkurkure6091
@pranavkurkure6091 3 жыл бұрын
@@John12685 1 is to specify that we want only one record of salary.
@John12685
@John12685 3 жыл бұрын
@@pranavkurkure6091 Oh alright pranav. I get it now. Thanku
What is PRIMARY KEY & NOT NULL Constraints in SQL - Part 5
30:29
Naveen AutomationLabs
Рет қаралды 19 М.
SQL Interview Question - Find Nth Highest Salary | LeetCode
30:40
Sumit Mittal
Рет қаралды 37 М.
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 7 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 78 МЛН
#4  INNER JOIN IN SQL
14:30
Naveen AutomationLabs
Рет қаралды 14 М.
Learn Agile and Scrum - Part 1
41:13
Naveen AutomationLabs
Рет қаралды 59 М.
#2 CROSS JOIN or CARTESIAN PRODUCT
15:31
Naveen AutomationLabs
Рет қаралды 14 М.
Как правильно выключать звук на телефоне?
0:17
Люди.Идеи, общественная организация
Рет қаралды 1,5 МЛН
PART 52 || DIY Wireless Switch forElectronic Lights - Easy Guide!
1:01
HUBAB__OFFICIAL
Рет қаралды 52 МЛН
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 13 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,7 МЛН