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

SELECT REGION FROM T2 T2 INNER JOIN
T1 T1 ON T1.EMPID = T2.EMPID INNER JOIN
(SELECT MAX(AGE) AGE FROM T1) TBLAGE ON T1.AGE = TBLAGE.AGE

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What protocol does sql server use?

519


Do you know clustered and non-clustered index?

528


please differentiate between delete and truncate?

560


What is the purpose of optimization?

544


What is the difference RDBMS and Graph Database?

629






Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?

582


What are a scheduled jobs?

536


What are different backups available in sql server?

606


Can we store videos inside the sql server table?

519


Explain following error properties?

559


What is user-defined scalar function?

557


What sql server means?

562


Define outer join?

536


What is raid? : SQL Server Architecture

593


What is the difference between insensitive and scroll cursor?

578