With Ties - Query would have returned one more row with an equal salary to the last row's salary if that salary number matches. In this case, it didn't so it returns 5 rows only.
Option A tested in DB.
If the salary contain like the below example:
id Salary
1 12000
2 15000
3 16000
4 16000
5 17000
in this case, with ties option return extra rows
select id,salary
from emp
order by salary
fetch first 3 rows with ties;
o/p:
1 12000
2 15000
3 16000
4 16000
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ArslanAltaf
2 months agoArth1989
5 months, 4 weeks agozangado
7 months, 1 week agolucemqy
8 months agoShrimathi
11 months, 3 weeks agoWingL
12 months agozouve
1 year agoCMjer
1 year, 1 month ago