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

Is it safe to delete log files?

526


How to find Duplicate Records In table?

587


What are the differences between decimal and float in ms sql server?

564


Can we use where and having clause together?

510


What is function of ROLLUP ?

658






What is the order by used for?

622


How do I view a trc file?

505


What are the properties and different types of sub-queries?

565


How you can get a list of all the table constraints in a database? : Sql server administration

521


what are defaults? Is there a column to which a default can't be bound? : Sql server database administration

622


How to create view in stored procedure sql server?

507


What are approximate numeric data types in ms sql server?

591


What is the need for group functions in sql?

567


Why do we need different type of parameter?

548


How can we check the sql server version?

567