consider a table which contain 4 columns,ename,eno,sal and
deptno, from this table i want to know ename who having
maximum salary in deptno 10 and 20.
Answer Posted / avinash
select ename from emp where sal in(select max(sal) from
emp) and deptno in(10,20)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to process query result in pl/sql?
tell me about various levels of constraint. : Sql dba
Explain the the update statement in sql?
What is record type in pl sql?
Write a sql query to find the names of employees that begin with ‘a’?
how to enter characters as hex numbers? : Sql dba
What is identity column in sql server?
What is an escape character in sql?
What is exit statement?
Why do we use sql constraints? Which constraints we can use while creating database in sql?
Explain the steps needed to create the scheduled job?
What are database links used for?
Can we use update in sql function?
what is the difference between rownum pseudo column and row_number() function? : Sql dba
Which tcp/ip port does sql server run?