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

select t1.id, t2.region from table t1 left outer Join table2 t2
on t1.id=t2.id
where t1.id in (select id from table1 where age=(select
max(age) from table1))

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to enable tcp/ip protocol on a sql server?

1212


What is the use of sign function?

1196


What causes index fragmentation?

1045


What is a partitioned view?

1052


how can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role? : Sql server administration

1042


What is data compression? : sql server database administration

1017


Explain can SSRS reports Cache results?

161


What is a trigger in sql server?

1229


How do I start sql server agent automatically?

1027


What is 4nf in normalization form?

1062


How to use go command in "sqlcmd"?

1267


Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?

1453


Explain the difference between control flow and data flow?

1061


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

996


What are the new features are introduced in sql server 2012 reporting services?

160