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

What is the return type of executeupdate ()?

887


How to attach adventureworkslt physical files to the server?

1087


Can we insert data into a view?

1118


What is isolation levels?

1010


1 01 101 01010

2036


What objects does the fn_my_permissions function reports on? : sql server security

1020


What is index, cluster index and nonclustered index?

973


What is the maximum length of an alert name?

997


Is oracle faster than sql server?

934


Do you know what are pages and extents? : SQL Server Architecture

980


What is a not null constraint?

1007


what kind of lan types do you know? : Sql server database administration

964


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

971


Your table has a large character field there are queries that use this field in their search clause what should you do?

874


Explain SSRS Architecture?

195