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
Is primary key always clustered index?
how many tables will create when we create table, what are they? : Sql dba
how to start mysql server? : Sql dba
what are aggregate and scalar functions? : Sql dba
what are all the common sql function? : Sql dba
define sql insert statement ? : Sql dba
Is inner join faster than left join?
what is bcp? When does it used? : Sql dba
What is the current version of sql?
If a cursor is open, how can we find in a pl/sql block?
What is the best sql course?
how to escape special characters in sql statements? : Sql dba
Do we need to rebuild index after truncate?
what is collation? : Sql dba
what is sql server agent? : Sql dba