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 do I count rows in sql?

553


What is sql in java?

541


Who is the owner of mysql database?

545


Is mariadb a nosql database?

532


What is trigger in pl sql with examples?

514






what is 'mysqld'? : Sql dba

538


What is mutating trigger?

572


explain advantages of myisam over innodb? : Sql dba

595


What is sequence in sql?

501


What are all the different normalization?

555


What is the difference between rename and alias?

699


what is data manipulation language? : Sql dba

525


What does bitemporal mean?

589


what are the advantages of using stored procedures? : Sql dba

610


how many tables will create when we create table, what are they? : Sql dba

535