we have two tables first one is EMPLOYEE
having EmpID, EmpNAME,
Second table is SALARY table
having id, salary
Write a query to get name of those person who having more
than 10000$ salary

Answers were Sorted based on User's Feedback



we have two tables first one is EMPLOYEE having EmpID, EmpNAME, Second table is SALARY table hav..

Answer / srikanth

select emp.name,salary.salary from emp,salary where
emp.id=salary.id and salary.salary>=10000

Is This Answer Correct ?    5 Yes 1 No

we have two tables first one is EMPLOYEE having EmpID, EmpNAME, Second table is SALARY table hav..

Answer / pandian.m

SELECT t1.EmpNAME FROM EMPLOYEE as t1
INNER JOIN SALARY as t2 ON t1.EmpID=t2.id
GROUP BY t1.EmpID HAVING t2.salary>10000

Is This Answer Correct ?    2 Yes 1 No

we have two tables first one is EMPLOYEE having EmpID, EmpNAME, Second table is SALARY table hav..

Answer / shahbaz

Try this one
this is the syntax....

SELECT EMPID, ENAME FROM EMPLOYEE INNER JOIN SALARY ON EMPID=ID AND SAL>600;


by kibria and shahbaz

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More PHP Interview Questions

What is a static method php?

0 Answers  


Explain about the connective abilities of the PHP?

0 Answers  


Is ruby on rails php?

0 Answers  


What is a static variable in php?

0 Answers  


How to find the length of a string?

0 Answers  






does PHP support foreign key and Rollback?yes or not.if not then why. how will you done these concept in php?

1 Answers   Avanigoradia, Primus Global,


What are php errors?

0 Answers  


write code to find the date difference b/w two given date using PHP not MYSQL function?

3 Answers   HyperQuality, Synctra Solutions,


Why shouldn't I use mysql_* functions in php?

0 Answers  


What is sql injection in php?

0 Answers  


What is $_ get in php?

0 Answers  


Explain the importance of the function htmlentities.

0 Answers  


Categories