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 / devendra sharma

select ID, region from tab1 where ID in
(select ID from tab2 where isnull(age,0)=(select max(age)
from tab2))

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to assign new column names in a view?

509


How many types of stored procedures are there in sql server?

562


What is a trace frag?

644


Explain a checkpoint?

538


What is a deadlock and what is a live lock?

578






application server is slow what may be the problem

1784


How to access the inserted record of an event?

574


Do you know what is similarity and difference between truncate and delete in sql?

577


Explain how to integrate the ssrs reports in application?

522


What is 1nf 2nf and 3nf?

493


how to restart sql server in single user mode? How to start sql server in minimal configuration mode? : Sql server database administration

460


What is data file in computer?

544


How many types of functions are there in sql server?

463


How raid can influence database performance?

576


How to get a list of columns in a view using the "sp_columns" stored procedure?

618