adspace


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,AGE, T1.EMPID FROM T2 INNER JOIN T1
ON T1.EMPID = T2.EMPID WHERE AGE = (SELECT MAX(AGE) FROM T1)

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

1139


What is a scheduled job or what is a scheduled task?

1044


Why we use the openxml clause?

1088


How efficient you are in oracle and SQL server?

1269


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1303


What is acid mean in sql server?

1257


Disadvantages of the indexes?

1232


Does view occupy space?

1033


what is spatial nonclustered index

1066


Why and when do stored procedure recompile?

1077


Where can you add custom error messages to sql server?

1220


What is a coalesce function?

1292


How to provide default values to function parameters?

1273


What is clustered index

1094


What is sql server query analyzer?

1137