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 / litmus rav

If there is many to many relationship between two tables
then this will work,

you need to create thired table name A_B with attributes
eid references A(eid),sid references B(sid)

SELECT * FROM A,B,A_B WHERE A.eid=A_B.eid AND B.sid=A_B.sid
AND ORDER BY ename;

Is This Answer Correct ?    4 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

1247


Why should one not prefix user stored procedures with ‘sp_’?

1098


Please explain go command in sql server?

1111


explain extended properties

1036


How can I create a new template for import ? : sql server management studio

1113


Detail about query optimizer?

1156


What is the sql case statement used for? Explain with an example?

1039


Why are you getting errors when creating a new odbc dsn?

1287


what is a major difference between sql server 6.5 and 7.0 platform wise? : Sql server database administration

945


How can you start sql server in different modes?

1019


What are the advantages of using stored procedures?

1004


Tell me what do we need queues in sql service broker?

1050


Explain the difference between delete,drop and truncate in SQL Server?

1159


What is table value parameters (tvp)?

1148


Where do you find the default Index fill factor and how to change it?

1112