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
Does group by remove duplicates?
How do I remove duplicates in two columns?
what is dbms? : Sql dba
what is schema? : Sql dba
how many tables will create when we create table, what are they? : Sql dba
what are aggregate and scalar functions? : Sql dba
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
what is collation? : Sql dba
What is the current version of postgresql?
What is the best sql course?
how to escape special characters in sql statements? : Sql dba
Can we use distinct and group by together?
what is bcp? When does it used? : Sql dba
If a cursor is open, how can we find in a pl/sql block?
how to start mysql server? : Sql dba