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 are functions in sql?
Mention what does the hierarchical profiler does?
what is a foreign key ? : Sql dba
what is self-join? : Sql dba
how to analyze tables with 'mysqlcheck'? : Sql dba
what is a join? : Sql dba
how to select first 5 records from a table? : Sql dba
how do you control the max size of a heap table? : Sql dba
Why we use joins in sql?
What is delimiter sql?
What is an index in sql with example?
how can you create an empty table from an existing table? : Sql dba
What does bitemporal mean?
Define a temp table?
What is cursor and its types?