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 / ram

select region from tab2 where empid in(select empid from
tab1 where tshirtsize=3)

Is This Answer Correct ?    1 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do triggers work?

994


Do you know what is sql service broker?

1161


What are the different types of join?

1239


What are the different ways you can create databases in sql server?

1155


What are the different index configurations a table can have?

1008


What does ss stand for sexually?

1143


Can you roll back the ddl statement in a trigger?

1021


Explain about protocol layer present in SQL server?

1292


What is difference between views and stored procedures?

1029


What is the difference between getdate and sysdatetime?

1060


Can we insert data if clustered index is disabled?

986


How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?

2051


How to create and drop temp table in sql server?

1100


What is the difference between drop table and truncate table?

974


What does it mean to normalize a database and why would you do it?

1024