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 / shivaraj


select region from table1 where employeeid in (select
employeeid from table2 where age in (select max(age) from
table2))

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the types of indexes? : Sql server database administration

1179


How do I change my passwords (database, LDAP, and so on) without causing an outage?

1114


How to delete existing rows in a table?

1246


What are locks in sql?

1015


define and explain the differences between clustered and non-clustered indexes.

1253


How to create a Master database in SQL server ?

1142


What is difference between rownum and rowid?

956


What do you understand by sql server agent?

1026


Is it possible for a stored procedure to call itself or recursive stored procedure?

1003


How to list all user defined functions in the current database?

1118


What are the different types of cursor?

1149


Do you know hot add cpu in sql server 2008?

1004


What are the properties of the relational tables?

928


What is normalization of database?

1177


Explain stored procedure?

1108