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 / manasa

SELECT e.name,d.dept from employee e INNERJOIN dept d ON e.deptid=d.deptid WHERE e.salary between 2000 AND 3000

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does truncate release storage space?

549


How can a pl sql block be executed?

524


Give the order of sql select?

604


What is difference sql and mysql?

527


How do I find duplicates in a single column in sql?

526






What is prepared statement in sql?

541


what is the difference between delete and truncate statement in sql? : Sql dba

539


Does oracle use sql?

508


What are the packages in pl sql?

566


How do I remove sql developer from windows 10?

501


What do you mean by stored procedures?

541


Are stored procedures compiled?

522


What are different joins used in sql?

548


What is a function in oracle pl sql?

532


Can a foreign key have a different name?

507