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

Why stored procedure is better than query?

501


How does rowid help in running a query faster?

961


Explain the purpose of %type and %rowtype data types with the example?

545


Why do we use sql constraints? Which constraints we can use while creating database in sql?

541


What is a table partition?

583






Define a temp table?

545


What does a pl/sql package consist of?

510


What pl/sql package consists of?

629


What are the three forms of normalization?

520


What does := mean in pl sql?

548


What is record type in pl sql?

533


What is duration in sql profiler trace?

547


Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints

638


what are local and global variables and their differences? : Sql dba

529


What is trigger and how to use it in sql?

529