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 is oracle sql called?

673


How is a process of pl/sql compiled?

776


How many types of keys are there in sql?

756


What is a join query?

722


What is the basic structure of an sql?

755






what are the differences between require and include, include_once and require_once? : Sql dba

743


Is primary key is clustered index?

724


What is sql engine in oracle?

722


What is difference between pls_integer and integer?

711


What is the difference between count 1 and count (*) in a sql query?

667


Explain aggregate functions are available there in sql?

752


explain advantages of myisam over innodb? : Sql dba

802


How do you declare a user-defined exception?

718


1) Synonyms 2) Co-related Subquery 3) Different Jobs in Plsql 4) Explain Plan 5) Wrap 6) Query Optimization Technique 7) Bulk Collect 8) Types of index 9) IF primary key is created then the index created ? 10) Foreign Key 11) Exception Handling 12) Difference Between Delete and Trunc 13) Procedure Overloading 14) Grant Revoke 15) Procedure Argument types. 16) Functions. 17) Joins

1326


What does the argument [or replace] do?

807