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

Is drop table faster than truncate?

547


Why primary key is required?

551


Can we update views in sql?

531


What is composite primary key in sql?

520


What is auto increment?

580






What are the different ddl commands in sql?

576


Can a primary key be a foreign key?

573


Differentiate between % rowtype and type record.

727


What is sql injection owasp?

546


What are the parts of a basic sql query?

509


Is trigger a stored procedure?

500


What are the types pl/sql code blocks?

608


What is trigger types of trigger?

548


Can a varchar be a primary key?

534


What is a schema? How is it useful in sql servers?

591