Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Define urlencode() and urldecode() used in php?

0 Answers  


How can you increase the maximum execution time of a script in php?

0 Answers  


How can we encrypt and decrypt a data present in a mysql table using mysql?

3 Answers   Microsoft,


Can we extend two classes in php?

0 Answers  


What is cookie and why do we use it?

0 Answers  


Explain the difference between array_merge() and array_combine()?

0 Answers  


Is server side a session?

0 Answers  


Would you initialize your strings with single quotes or double quotes?

4 Answers  


What is get and post method in php?

0 Answers  


What is php static function?

0 Answers  


How do you check if an arraylist is empty?

0 Answers  


What enctype is required for file uploads to work?

0 Answers  


Categories