suppose I have two table one Emp and other is dpt.
Emp table has a field ,dept id,name ,sal and dpt table has a
field dept id,dept name.
Now I want to find out the emplyee list whose sal is between
2000-3000 from dept x.

Answer Posted / om patel

SELECT E.ENAME FROM EMP E ,DEPT D WHERE E.DEPTNO=D.DEPTNO
AND SAL BETWEEN 2000 AND 3000 AND D.DNAME='X';

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba

633


Is coalesce faster than isnull?

613


How do you determine the current isolation level? : Transact sql

653


Why we use stored procedure instead of query?

617


What are commit, rollback, and savepoint?

660






How many parts of a pl sql block are optional?

612


What is over () in sql?

605


what is a constraint? : Sql dba

809


what is row? : Sql dba

830


What does subquery mean in sql?

625


Can we use pl sql in sql server?

635


What is a rank in sql?

610


What is a constraint?

654


how to install mysql? : Sql dba

683


Which sql statement is used to return only different values?

596