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

How to define output parameters in stored procedures?

527


What is use of except clause? How does it differ from not in clause?

556


What is the full form of dql?

515


Do you know spatial data types - geometry and geography in sql server 2008?

580


How can a user-defined datatype be created?

544






How you can minimize the deadlock situation?

555


What does <> symbol mean?

551


Can we use having clause without group by?

556


What is exporting and importing utility?

610


What is the language structure to add a record to a table?

581


Name and describe few console utilities for ssrs?

249


What are the different types of Indexes available in SQL Server?

519


How does a profiler work?

518


What is create statement?

531


Explain cdc and sql injection?

549