How to find all the employees having same salary #shorts #sql #coding #sqlqueries #dataanalytics

preview_player
Показать описание
How to find all the employees having same salary #shorts #sql #coding #sqlqueries #dataanalytics #youtubeshorts #programming
Рекомендации по теме
Комментарии
Автор

WARNING if more than two employees have the same salary, the query can return duplicates. You should add a distinct

SwissGuru
Автор

WITH single_sal AS
(SELECT DISTINCT Salary
FROM Employee)
SELECT *
FROM Employee
WHERE Salary NOT IN single_sal;

alexcerny
Автор

Select * from table
Group by salary
Having count salary>1

chennakesavasreeramadas
Автор

Can we use the rank or dense rank function as if the salary will be same the rank will be assigned same.

himanshunandan
Автор

The two instances thing
FROM employee E1, employee E2
Is this possible in PostgreSQL?

vivekjoshi
Автор

Ok...but what type of query is this known as?

archishmanchoudhury
Автор

Bruh never heard of "group by" 😂😂

billyhagood
Автор

Lol, this won't work properly if 3 or more persons have the same salary. It gonna print lots of duplicate.

howhello
join shbcf.ru