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

How to return the second 5 rows in ms sql server?

1006


Write a Select Query to display title for each group of records, which are collected with Compute Clause? Like titlefield column-A column-B ..... ..... ..... Sum ... titlefield column-A column-B ..... ..... ..... Sum ...

1991


what is hash nonclustered index

910


What are cursors in ms sql server?

1111


What is the use of for clause?

1037


How to find index size for each index on table?

964


Determine when an index is appropriate?

1018


How to use the inserted and deleted pseudo tables?

916


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

880


How to use wildcard characters in like operations in ms sql server?

1065


explain declarative management framework (dmf) in sql server 2008?

950


How do you start single user mode in clustered installations?

905


Do you know concepts and capabilities of sql server?

1008


List some major differences between triggers and stored procedures?

857


Explain the Ways to improve the performance of a sql azure database?

80