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 Normalization and DE normalization

1114


What is update locks?

888


Explain the steps to create and execute a user-defined function in the sql server?

971


What is dbcc command in sql server?

1093


What does <> symbol mean?

975


What is service broker? : sql server database administration

996


Does group by or order by come first?

959


what is a traditional network library for sql servers? : Sql server database administration

958


How do you create an execution plan?

949


What is snapshot parameter in ssrs?

150


Why we use trigger in sql server with example?

962


State a few properties of relational databases?

1128


Does the order of columns in update statements matter?

914


What is rank function?

1033


What is a fan-out query in SQL Azure?

121