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

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

What structure can you implement for the database to speed up table reads?

1236


What is sql server 2000 work load governor?

1161


You want to implement the many-to-many relationship while designing tables. How would you do it?

1050


What are data driven subscriptions?

115


Explain the use of containers in ssis and also their types?

1019


Name 3 ways to get an accurate count of the number of records in a table?

1088


What method is used by the Command classes to execute SQL statements that return single values?

1115


What is the function of inner join?

1127


What is a sql join?

1082


What is the current pricing model of SQL Azure?

104


Explain what is “asynchronous” communication in sql server service broker?

961


What is the difference RDBMS and Graph Database?

1093


What is cte (common table expression)?

1087


How do you delete duplicate records in sql server?

1127


What is difference between count (*) and count column?

950