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 / mai

Select Name
From Emp e inner join Dpt d
on d.dptid=e.dptid
Where sal>=2000 And sal<=3000
And dptname='x'

Is This Answer Correct ?    18 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to add a new column to an existing table in mysql? : Sql dba

591


Explain what is sql*plus?

672


Why is sql better than hql?

512


What is character functions?

560


define data blocks ? : Sql dba

552






What is column?

558


What is sql trigger example?

545


what are the differences among rownum, rank and dense_rank? : Sql dba

545


Can a select statement fire a trigger?

664


Is delete faster than truncate?

557


how to include character strings in sql statements? : Sql dba

562


what is union, minus and interact commands? : Sql dba

671


what's the difference between a primary key and a unique key? : Sql dba

514


what is isam? : Sql dba

584


Where is sql database stored?

525