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 / avaneesh bajoria

select top 1 t2.region , count(t1.tsize) as co from tsize
t1,region t2
where t1.empid = t2.empid
group by t2.region,t1.tsize
having t1.tsize = 3 order by co desc

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?

1195


Which command is used for user defined error messages?

1105


What is multi-statement table-value user-defined function?

1055


What is the difference between inner join and equi join?

1042


What are the types of containers in ssis?

1234


Why use “pivot” in sql server?

1179


What is checkpoint process in the sql server?

1074


What is the recommended total size of your memory optimized tables?

1005


Explain transaction server auto commit?

1090


How to connect of datebase with sql express.?

1146


What are the built in functions in sql server?

1028


Suppose you want to implement the one-to-many relationships while designing tables. How would you do it?

1002


What is a constant or literal in ms sql server?

1098


Can I use sql azure as a backup with log shipping or database mirroring?

156


Explain how you can configure a running aggregate in SSRS?

169