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 / devendra sharma

select ID, region from tab1 where ID in
(select ID from tab2 where isnull(age,0)=(select max(age)
from tab2))

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to determine the service pack currently installed on sql server? : Sql server database administration

1026


Find nth lowest salary or get nth lowest salary?

1081


How to turn off warning messages during php execution?

1106


How to get @@error and @@rowcount at the same time?

1083


What do you mean by sql server agent?

1040


1)what is the difference between Reinitializing a Subscription and synchronization the subscription? 2)when to use reinitializing ? 3)when to use synchronization? 4)when adding table or deleting a table what to do?(reinz.. or syn) 5)when adding a column what to do?

2167


What are the different authentication modes in sql server?

1167


in the physical file layout, where should the transaction log be stored in relation to the data file?

1041


How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?

176


Explain what is the use of custom fields in report?

957


What are the disadvantages of primary key and foreign key in SQL?

1151


can a database be shrunk with users active? : Sql server administration

1063


Why do we use functions?

957


What is logon trigger?

1157


Tell me what is log shipping?

1032