Editorial / Best Answer
Answered by:
Parished.D Chennai India
create table ee (eno int, ename varchar(200), sal int)
insert into ee values(1, 'a', 2000)
insert into ee values(2, 'b', 6000)
insert into ee values(3, 'c', 8000)
select ENO, ENAME, min(sal) AS SAL from ee group by eno,ename having min(sal) > 5000
Write sql query for retrieving employee names from employee table who are having salary greater than 5000 without using where clause?
Editorial / Best Answer
Answered by: Parished.D Chennai India
create table ee (eno int, ename varchar(200), sal int)
insert into ee values(1, 'a', 2000)
insert into ee values(2, 'b', 6000)
insert into ee values(3, 'c', 8000)
select ENO, ENAME, min(sal) AS SAL from ee group by eno,ename having min(sal) > 5000
Related Answered Questions
Related Open Questions