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

select top 1 Count(r.Empid) as Ct,r.regionId from Emp_Region
r inner join Emp_Tshirt t on r.Empid= t.EmpId
where t.T_size=3 group by r.regionId order by Ct desc

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #temp and @table variable in SQL server?

1039


Differentiate between sql temp table vs table variable?

850


What command must you use to include the not null constraint after a table has already been created?

1082


Can sql servers link to other servers like oracle?

807


What are blobs, tables, and Queues? Is SQL is the standard way to query blobs, tables, and queues?

135


what is the information that can be stored inside a bit column? : Sql server database administration

925


Explain why variables called the most powerful component of ssis?

1024


How to transfer a table from one schema to another?

965


What are the types of stored procedures in an sql server?

955


you have separate development and production systems you want to move a copy of a development database into production to do this, you do a backup on the development system and restore to the production system after a few minutes, you begin getting calls from several customers saying that they are denied access to the system why? : Sql server administration

944


Does partitioning improve performance?

930


can we have a nested transaction? : Sql server database administration

1023


Where actually sql azure database is hosted?

161


What is a select query statement in ms sql server?

1024


What are the different types of backups avaialabe in sql server 2005?

985