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 is left outer join in sql server joins?

998


What are a database and a data warehouse?

990


How to view the error log for any specific instance? : sql server database administration

1011


How to set database to be single_user in ms sql server?

987


What happens if you delete a table that is used by a view?

952


Which is the latest version of sql server and when it is released?

1062


What are the new features introduced in SQL Server 2000 (or the latest release of SQL Server at the time of your interview)? What changed between the previous version of SQL Server and the current version?

1037


How to count duplicated values in a column in ms sql server?

1023


What are different types of statements that are supported by sql?

998


How to convert numeric expression data types using the cast() function?

1023


Do you think BCNF is better than 2NF & 3NF? Why?

1239


List out the different types of locks available in sql server?

945


How do I find the sql server database version?

963


How to call stored procedure using http soap?

1025


What is truncate table?

910