can any one answer this query,thank you in advance

Table 1 has 2 columns: EmployeeId, T shirtsize(values can
be 1,2,3)
Table 2 has 2 columns: EmployeeId, Region
Write SQL to Find the region which has the largest number
of people with Tshirt size=3

Answer Posted / himesh mistry

select region
from table2 t2 JOIN table1 t1 ON (t1.eid = t2.eid and
t1.size = 3)
group by region

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can truncate be rolled back?

617


What is an entity-relationship diagram (erd)?

679


when you create a database how is it stored? : Sql server database administration

576


How to insert multiple rows with a subquery?

626


How can we migrate from SQL server to SQL Azure?

102






What are “unrepeatable reads”?

823


what is the difference between writing data to mirrored drives versus raid5 drives. : Sql server administration

622


do you know how to configure db2 side of the application? : Sql server database administration

681


Can we insert data into view sql server?

616


Can we insert data into a view?

698


Why use identity in sql server?

637


How can you check the level of fragmentation on a table?

684


define and explain the differences between clustered and non-clustered indexes.

689


What are the recovery models for a database?

702


How do I clean up sql server transaction log?

641