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 advantages of using stored procedures? : Sql dba

622


when is the use of update_statistics command? : Sql dba

504


What is the difference between delete and truncate commands?

517


How do I copy a table in sql?

519


What are the advantages of indexing?

527






What is difference between joins and union?

535


what is a field in a database ? : Sql dba

547


What is indexes?

550


What is the advantage of index in sql?

543


How do we use distinct statement? What is its use?

558


What does the hierarchical profiler does?

570


What are stuff and replace function?

578


Is sql similar to python?

538


Explain 3 basic parts of a trigger.

843


How much ram can sql express use?

515