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 a field in a database ? : Sql dba
how to use myisamchk to check or repair myisam tables? : Sql dba
Write a sql query to convert all character to uppercase after hypen.
What is sqlservr exe?
Advantages and disadvantages of stored procedure?
What is sql trigger example?
What are sql functions? Describe the different types of sql functions?
ERROR:Insert or update on table"accnt" violates foreign key constraints "acct_to_curr_symbol" DETAILS:KEY(accnt_curr_id)(-2)is not present in the table "curr_symbol" ......solve The Problem..
What is mutating sql table?
Mention what is the use of function "module procedure" in pl/sql?
What is a sql*loader control file?
What is rownum in sql?
What is basic structure of pl sql?
Can we use delete in merge statement?
what is heap table? : Sql dba