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 / anil gupta

select region, count(t1.size) from tab1 t1 inner join tab2
t2 on t1.eid = t2.eid where t1.size = 3 group by t2.region
order by count(t1.size) DESC and rownum = 1;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a sub-report?

140


How do indexes help, types?

937


Is it possible to run multiple publications and different type of publications from the same distribution database? : sql server replication

970


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

939


Why variables called the most powerful component of ssis?

1055


What are logical database components? : SQL Server Architecture

1013


How to find the list of fixed hard drive and free space on server?

1160


Tell me about normalization in DBMS.

980


What are out-of-range errors with date and time literals?

1011


How to change the password of a login name in ms sql server?

999


How to join two tables in a single query in ms sql server?

976


Explain following error properties?

994


What is a dataset and what are the different types of datasets?

136


Can I delete event logs?

911


What is built-in function?

978