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...

Their are two tables 'A' and'B'.Table 'A' contains 3 columns
named 'eid','ename','dept'.
Table 'B'contains 3 columns
named'sid','designation','salary'.
We have to retrieve the names of employees working in the
same department,same designation and same salary.
Its urgent can anyone help me out in this problem.

Answer Posted / jayesh sonawane

this one correct try it:

SELECT
distinct
B.NAMES AS NAMES
B.SID
,B.DEPT AS DEPARTMENT
,B.SALARY AS SALARY
,B.DESIGNATION AS DESIGNATION

FROM TABLEB AS A join TABLEB AS b
on A.EID=B.SID and B.DEPT=A.DEPT and B.SALARY=A.SALARY and B.DESIGNATION =A.DESIGNATION
join TABLEA as taba on ON A.taba =B.SID

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Will sql server 2005 allow you to reduce the size of a column?

1056


Explain transaction server auto commit?

1090


What are null values in ms sql server?

1145


What are .mdf files?

1016


What is dml command?

1020


what is a self join? Explain it with an example? : Sql server database administration

1002


How to truncate the log in sql server 2012? : sql server database administration

1346


what's the information that can be stored inside a bit column? : Sql server database administration

1086


What is the difference between NOROW and LOCKROW?

2899


Do you know what are the steps to process a single select statement?

1018


What is the guest user account in sql server? What login is it mapped to it? : sql server security

1113


How to view existing indexes on an given table using sp_help?

1205


What is scd (slowly changing dimension)? : sql server analysis services, ssas

1052


Explain the dirty pages?

1050


What protocol does sql server use?

987