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 / saravanan p

select e.empid,e2.region from empAge1 e,empAge2 e2
where e.empid=e2.empid and e.age in(select max(age) from
empAge1)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain alternate key, candidate key and composite key in sql server?

895


Mention a few common trace flags used with sql server?

917


Explain collation?

1052


How to find table changes in sql server?

1098


Explain the disadvantages of cursors?

1124


What is raid? : SQL Server Architecture

1154


What is triggers and its types?

999


What are horizontal and vertical scaling?

170


explain different types of constraints? : Sql server database administration

943


What is difference between createstatement and preparedstatement?

1071


How to update multiple rows with one update statement in ms sql server?

1189


What is updatable resultset?

987


Explain candidate key, alternate key, and composite key?

981


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

934


Where are sql server user names and passwords stored in sql server?

1067