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...

please can anyone answer this query

Table 1 has 2 columns: EmployeeId,Age
Table 2 has 2 columns: EmployeeId, Region
Write SQL to Find the region who has the oldest person

Answer Posted / monal

SELECT REGION FROM T2 T2 INNER JOIN
T1 T1 ON T1.EMPID = T2.EMPID INNER JOIN
(SELECT MAX(AGE) AGE FROM T1) TBLAGE ON T1.AGE = TBLAGE.AGE

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concept of view and Types of views in SQL server?

1034


Do you know spatial data types - geometry and geography in sql server 2008?

1085


Will sql server 2005 allow you to reduce the size of a column?

1054


What is the difference between push and pull subscription? : sql server replication

1274


What do you understand by integration services in sql server?

998


Which tcp/ip port does sql server run on? How can it be changed?

1079


Characterize join and name diverse sorts of joins?

1021


Define normalisation?

1155


what is a correlated sub-query? : Sql server database administration

988


If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?

1173


What does man by sql wildcard characters in sql server?

1102


what are user defined datatypes? : Sql server database administration

1013


How would you go about developing a ssrs report?

174


What is a benefit of using an after insert trigger over using a before insert trigger?

1030


What is history table in sql server?

1028