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 / selvaraj v , anna university
SELECT * FROM EMP E,DEPTS D WHERE E.DEPT_ID=D.DEPT_ID AND
E.SALARY BETWEEN 2000 AND 3000 ORDER BY EMP_NO;
| Is This Answer Correct ? | 14 Yes | 4 No |
Post New Answer View All Answers
What is cursor status?
How can we solve sql error: ora-00904: invalid identifier?
When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?
does sql support programming? : Sql dba
What is pl sql and why it is used for?
Mention what is the plv (pl/vision) package offers?
what is unique key constraint? : Sql dba
In a distributed database system, can we execute two queries simultaneously?
How do I count rows in sql query?
What is the difference between explicit and implicit cursors in oracle?
How many sql statements are used?
What is the sql query to display the current date?
Can procedure in package be overloaded?
What is a relationship and what are they?
What is the use of function in sql?