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
What is the difference between having clause and where clause?
What are sql commands?
What is varray in pl sql?
Can we create index on primary key?
Is pl sql useful?
what is a composite primary key ? : Sql dba
What are different types of queries in sql?
List different type of expressions with the example.
What is an alias command?
What is numeric function sql?
When to use inner join and left join?
how would you write a query to select all teams that won either 2, 4, 6 or 8 games? : Sql dba
explain the options of myisamchk to improve the performance of a table. : Sql dba
how can we submit a form without a submit button? : Sql dba
Is inner join same as self join?