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 fillfactor concept in indexes?

989


What are trace flags and mention a few common trace flags used with sql server?

1089


How to restore performance issues and how to check?

2006


What is trigger in salesforce?

984


List out some of the requirements to set up a sql server failover cluster?

1034


What is table constraint?

998


How can I tell if sql server is 32 or 64 bit?

967


Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication

1048


How connect excel to sql server?

1000


We need to perform what steps in the following order to work with a cursor?

1220


What is shared lock?

907


you have separate development and production systems you want to move a copy of a development database into production to do this, you do a backup on the development system and restore to the production system after a few minutes, you begin getting calls from several customers saying that they are denied access to the system why? : Sql server administration

988


Tell me can we use custom code in ssrs?

1005


What is mean by candidate key?

1012


What are sub reports and how to create them?

139