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

Can you explain full-text query in sql server?

1019


Can I work with several databases simultaneously? : sql server management studio

999


What is the difference between a unique key and primary key?

964


Explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

1173


what is a self join? Explain it with an example? : Sql server database administration

957


explain different types of cursors? : Sql server database administration

1097


How to recompile stored procedure at run time?

1082


What are subqueries in sql server?

1132


In which sql server version report builder introduced?

150


What is table level trigger?

1029


What is purpose of normalization?

955


What are the various editions of sql server 2017 that are available in the market?

895


What is difference statement and preparedstatement?

989


How to insert a new row into a table with "insert into" statements in ms sql server?

981


What is the difference between a function and a stored procedure?

1078