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 / swati pise
select top 1 * from table where dept_no in(10,20) order by
sal desc
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What has stored procedures in sql and how we can use it?
What is difference between hql and sql?
What is 19 null in sql?
Is sql developer case sensitive?
Can a trigger call a stored procedure?
Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints
what are the advantages and disadvantages of views in a database? : Sql dba
Do we need to create index on primary key?
How do I view a view in sql?
Explain the commit statement.
What are all the common sql functions?
Explain the advantages and disadvantages of stored procedure?
What is bind reference and how can it be created?
what are all the different types of indexes? : Sql dba
What are different types of tables in sql?